/* Jupiter Distribution — feuille de style unique.
   Identité : bleu roi (principal) et orange (actions fortes, alertes modérées).
   Priorité au téléphone, puis tablette, puis ordinateur.
   Cibles tactiles : 44 × 44 px minimum. */

:root {
  --blue-900: #0b2a7a;
  --blue-700: #1546c0;
  --blue-600: #2158de;
  --blue-100: #e5edfd;
  --blue-50: #f4f7fe;

  --orange-600: #e2670a;
  --orange-500: #f97316;
  --orange-100: #ffedd9;

  --green-600: #0f8a5f;
  --green-100: #dcf5ea;
  --red-600: #cc2b2b;
  --red-100: #fde5e5;
  --amber-600: #b57d00;

  --ink: #16203a;
  --ink-soft: #4a566f;
  --ink-muted: #78859e;
  --line: #dde4f0;
  --line-soft: #eaeff8;
  --surface: #ffffff;
  --canvas: #f6f8fc;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(16, 33, 74, 0.06);
  --shadow-m: 0 4px 16px rgba(16, 33, 74, 0.08);
  --shadow-l: 0 12px 34px rgba(16, 33, 74, 0.12);

  --tap: 44px;
  --sidebar-w: 250px;
  --bottom-nav-h: 66px;

  --font: "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--blue-700); }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Le focus doit rester visible : l'application est utilisable au clavier. */
:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- démarrage */

.boot-splash {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(41, 96, 226, .55), transparent 60%),
    radial-gradient(90% 70% at 50% 104%, rgba(249, 115, 22, .22), transparent 60%),
    linear-gradient(160deg, #0a2350, var(--blue-900) 58%, #091d51);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.boot-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-mark {
  position: relative;
  width: 104px; height: 104px; padding: 9px; border-radius: 28px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 24px 54px rgba(3, 12, 44, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: boot-pop .7s cubic-bezier(.2, .9, .3, 1.2) both,
             boot-pulse 2.6s .8s ease-in-out infinite;
}
.boot-mark::after {
  content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 164, 255, .38), transparent 70%);
}
.boot-mark img { width: 100%; height: 100%; display: block; border-radius: 20px; }
.boot-name {
  color: #fff; font-weight: 800; font-size: 1.24rem; letter-spacing: .3px;
  animation: boot-rise .55s .12s ease both;
}
.boot-bar { width: 116px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.boot-bar span {
  display: block; width: 40%; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .35), #fff);
  animation: boot-slide 1.15s ease-in-out infinite;
}
@keyframes boot-pop { 0% { transform: scale(.82); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes boot-rise { 0% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes boot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@keyframes boot-slide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(290%); }
}
@media (prefers-reduced-motion: reduce) {
  .boot-mark { animation: none; }
  .boot-name { animation: none; }
  .boot-bar span { animation: none; width: 100%; }
}

/* ------------------------------------------------------------------ connexion */

.login-screen {
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(135% 80% at 100% 0%, rgba(33, 88, 222, .08), transparent 55%),
    radial-gradient(120% 70% at 0% 100%, rgba(249, 115, 22, .06), transparent 55%),
    linear-gradient(155deg, #f4f7ff, var(--surface));
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 26px calc(34px + env(safe-area-inset-bottom));
  width: 100%;
}
.login-form-wrap { width: 100%; max-width: 420px; margin: 0 auto; }

.login-visual { display: none; }

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 54px; height: 54px; padding: 4px; border-radius: 16px;
  background: #fff;
  color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center; letter-spacing: 0.5px;
  box-shadow: 0 10px 24px rgba(16, 33, 74, .13);
  overflow: hidden; flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-tagline { font-size: 0.76rem; color: var(--ink-muted); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.68rem; font-weight: 700; color: var(--orange-600);
}

.login-brand { margin-bottom: 6px; }
.login-copy { margin: 30px 0 22px; }
.login-copy h1 { font-size: clamp(1.65rem, 4vw, 2.05rem); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.035em; }
.login-copy p { color: var(--ink-soft); font-size: 1rem; }
#loginForm {
  padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 44px rgba(16, 33, 74, .10);
}
#loginForm .field { margin-bottom: 18px; }
#loginForm .field > span { font-size: .88rem; }
#loginForm .button-full { margin-top: 6px; min-height: 54px; }

.login-forgot { margin-top: 14px; text-align: center; }
.login-lang { margin-top: 22px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.login-lang-sep { color: var(--line); }
.demo-hint strong { color: var(--blue-700); }

/* ------------------------------------------------------------------ formulaires */

.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block; font-size: 0.83rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
}
.field-hint { font-size: 0.76rem; color: var(--ink-muted); margin-top: 5px; }
.required-hint { display: block; }
label.field:has(:required) > span:first-child::after,
.field-required > span:first-child::after {
  content: " *"; color: var(--red-600); font-weight: 800;
}

input:not([type]), input[type="text"], input[type="password"], input[type="number"], input[type="search"],
input[type="date"], input[type="tel"], input[type="email"], input[type="file"],
select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 82px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
input:disabled, select:disabled, textarea:disabled {
  background: var(--blue-50); color: var(--ink-muted); cursor: not-allowed;
}
input[readonly], textarea[readonly] {
  background: var(--blue-50); color: var(--ink-soft); cursor: not-allowed;
}
input.invalid, select.invalid { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: 0.78rem; margin-top: 5px; font-weight: 600; }

/* Champ monétaire : le suffixe HTG est toujours visible. */
/* Champ de mot de passe : l'œil se pose dans le champ, à droite. Le rembourrage
   réserve sa place pour que le texte ne passe jamais dessous. */
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  color: var(--ink-muted); padding: 0; min-height: 0;
}
.password-eye:hover { background: var(--line-soft); color: var(--ink); }
.password-eye:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.password-eye svg { width: 19px; height: 19px; }

.money-field { position: relative; }
.money-field input { padding-right: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.money-field::after {
  content: "HTG";
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); pointer-events: none;
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-grid-12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.textarea-address { min-height: 96px; }
.textarea-long { min-height: 132px; }
.cash-amount-field .money-field { max-width: 240px; }
.cash-amount-field input { font-size: 1.12rem; font-weight: 800; }
.field-flex-wide { flex: 2 1 260px; }
.field-flex-xs { flex: 0 1 140px; }
.field-flex-sm { flex: 0 1 190px; }
.form-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.form-actions .button { flex: 1 1 auto; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: var(--tap); padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row .switch-label { font-size: 0.9rem; font-weight: 600; }
.switch-row .switch-note { font-size: 0.76rem; color: var(--ink-muted); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--blue-700); }

/* ---------------------------------------------------------------------- boutons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: var(--radius-s);
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.06s;
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.button-primary { background: var(--blue-700); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--blue-900); }

.button-accent { background: var(--orange-500); color: #fff; }
.button-accent:hover:not(:disabled) { background: var(--orange-600); }

.button-secondary { background: var(--surface); color: var(--blue-700); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: var(--blue-600); background: var(--blue-50); }

.button-ghost { background: transparent; color: var(--ink-soft); }
.button-ghost:hover:not(:disabled) { background: var(--blue-50); color: var(--blue-700); }

.button-danger { background: var(--red-600); color: #fff; }
.button-danger:hover:not(:disabled) { background: #a81f1f; }

/* Recherche client conçue pour une base volumineuse. */
.buyer-customer-field { position: relative; }
.selected-customer { min-width: 0; flex: 1 1 220px; }
.customer-walk-in { display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
.customer-selected-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 10px; border: 1px solid var(--blue-100);
  border-radius: var(--radius-s); background: var(--blue-50);
}
.customer-selected-card span { display: flex; flex-direction: column; min-width: 0; }
.customer-selected-card small { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-search-results {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  max-height: 280px; overflow: auto; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-l);
}
.customer-results-heading {
  padding: 6px 10px 7px; color: var(--ink-muted); font-size: .72rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.customer-result {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); text-align: left; cursor: pointer;
}
.customer-result:hover, .customer-result:focus-visible { background: var(--blue-50); outline: 2px solid var(--blue-600); }
.customer-result span, .customer-result-empty { color: var(--ink-soft); font-size: .82rem; }
.customer-result-empty { padding: 14px; text-align: center; }

/* Promotions visibles sans masquerquer le prix ni le stock. */
.badge-promotion { background: #fff0d8; color: #a64b00; border-color: #ffd08a; }
.tile-price del { color: var(--ink-soft); font-size: .78em; font-weight: 500; margin-right: 4px; }
.line-name { display: flex; flex-direction: column; }
.line-promotion { color: #a64b00; font-size: .72rem; font-weight: 700; margin-top: 2px; }
.cell-promotion { color: #a64b00; font-size: .78rem; font-weight: 700; }
.promotion-popup-list { display: grid; gap: 10px; }
.promotion-popup-item { padding: 14px; border: 1px solid #ffd08a; border-radius: 12px; background: #fffaf2; }
.promotion-popup-item strong { display: block; margin: 8px 0 3px; }
.promotion-popup-item p { color: var(--ink-soft); }
.promotion-product-list { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.promotion-product-option { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 8px; cursor: pointer; }
.promotion-product-option:hover { background: var(--blue-50); }
.promotion-product-option span { display: flex; flex-direction: column; }
.promotion-product-option small { color: var(--ink-soft); }
.transfer-line { align-items: flex-end; }
.table-actions { display: flex; gap: 10px; align-items: center; }

.button-full { width: 100%; }
.button-small { min-height: 36px; padding: 6px 12px; font-size: 0.83rem; }

.icon-button {
  width: var(--tap); height: var(--tap); min-width: var(--tap);
  display: grid; place-items: center;
  border: 0; border-radius: var(--radius-s); background: transparent;
  color: var(--ink-soft); font-size: 1.2rem; cursor: pointer;
}
.icon-button:hover { background: var(--blue-50); color: var(--blue-700); }
.icon-button svg { width: 21px; height: 21px; }
/* Icône trait alignée sur la ligne de texte (bannières, libellés). */
.inline-ic { display: inline-flex; vertical-align: -0.16em; }
.inline-ic svg { width: 1.05em; height: 1.05em; }

.text-button {
  background: none; border: 0; padding: 6px 2px; min-height: 32px;
  color: var(--blue-700); font-family: inherit; font-size: 0.85rem;
  font-weight: 700; cursor: pointer;
}
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--red-600); }

/* --------------------------------------------------------------------- coquille */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  display: none;
  width: var(--sidebar-w); flex: none;
  background: var(--surface); border-right: 1px solid var(--line);
  flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-top { padding: 18px 16px; border-bottom: 1px solid var(--line-soft); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.sidebar-bottom { padding: 12px 10px; border-top: 1px solid var(--line-soft); }

.nav-group-label {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-muted); font-weight: 700; padding: 12px 10px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: var(--tap); padding: 9px 11px; margin-bottom: 2px;
  border: 0; border-radius: var(--radius-s); background: transparent;
  color: var(--ink-soft); font-family: inherit; font-size: 0.9rem;
  font-weight: 600; text-align: left; cursor: pointer;
}
.nav-item:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-item.active { background: var(--blue-700); color: #fff; }
.nav-item .nav-icon { width: 22px; flex: none; display: grid; place-items: center; }
.nav-item .nav-icon svg { width: 20px; height: 20px; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--orange-500); color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 99px;
}
.nav-item.active .nav-badge { background: #fff; color: var(--orange-600); }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  padding-top: calc(10px + env(safe-area-inset-top));
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title .page-kicker { font-size: 0.68rem; color: var(--ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.topbar-title h2 { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }

/* Indicateur de connexion : cliquable pour lancer une synchronisation, donc
   dimensionné comme une vraie cible tactile (44 px). */
.connection-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 5px 12px; border: 0; border-radius: 99px;
  font-family: inherit; font-size: 0.73rem; font-weight: 700; white-space: nowrap;
  background: var(--green-100); color: var(--green-600); cursor: pointer;
}
.connection-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.connection-pill.is-offline { background: var(--orange-100); color: var(--orange-600); }
.connection-pill.is-syncing { background: var(--blue-100); color: var(--blue-700); }
.connection-pill .label { display: inline; }

/* Avatar : bouton d'accès au compte (identité, mot de passe, langue, déconnexion).
   Dimensionné comme une cible tactile. */
.avatar {
  width: var(--tap); height: var(--tap); border: 0; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; font-family: inherit;
  font-weight: 800; font-size: 0.8rem; flex: none; cursor: pointer;
}
button.avatar:hover { background: var(--blue-600); color: #fff; }

.page { padding: 16px 14px calc(var(--bottom-nav-h) + 26px); max-width: 1240px; min-width: 0; width: 100%; margin: 0 auto; }
.page:focus { outline: none; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: 1.32rem; margin: 4px 0 3px; }
.page-head p { color: var(--ink-soft); font-size: 0.88rem; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head-actions-only { align-items: center; justify-content: flex-end; margin-bottom: 12px; }
.page-head-actions-only .page-head-actions { margin-left: auto; }
.page-head-actions-only:not(:has(.page-head-actions > *)) { display: none; }

/* Accueil : identité claire et information utile dès l'ouverture. */
.dashboard-welcome {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding: 15px 17px; border: 1px solid var(--blue-100); border-radius: var(--radius-m);
  background: linear-gradient(110deg, var(--blue-50), #fff 75%);
}
.dashboard-welcome-mark {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 13px; background: var(--blue-700); color: #fff; font-weight: 800;
}
.dashboard-welcome-title { color: var(--ink); font-weight: 800; font-size: 1.04rem; }
.dashboard-welcome-text { color: var(--ink-soft); font-size: .84rem; margin-top: 3px; }

/* Barre de navigation basse (téléphone et tablette) : 5 entrées maximum. */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 14px rgba(16, 33, 74, 0.06);
}
.bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--bottom-nav-h); border: 0; background: none;
  color: var(--ink-muted); font-family: inherit; font-size: 0.68rem; font-weight: 700;
  cursor: pointer; position: relative; padding: 6px 2px;
}
.bottom-nav button .nav-icon { display: grid; place-items: center; line-height: 1; }
.bottom-nav button .nav-icon svg { width: 23px; height: 23px; }
.bottom-nav button.active { color: var(--blue-700); }
.bottom-nav button.active::before {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%;
  height: 3px; border-radius: 0 0 4px 4px; background: var(--blue-700);
}
.bottom-nav .nav-badge {
  position: absolute; top: 8px; right: 50%; margin-right: -20px;
  background: var(--orange-500); color: #fff; font-size: 0.6rem;
  font-weight: 800; padding: 1px 5px; border-radius: 99px;
}

/* Feuille « Plus » : les entrées qui ne tiennent pas dans la barre basse. */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(16, 32, 58, 0.45); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 86vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow-l);
  animation: sheet-up 0.18s ease-out;
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-top {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 13px 14px 8px; border-bottom: 1px solid var(--line-soft); flex: none;
}
.sheet-top h2 { font-size: 1rem; }
.sheet-handle {
  position: absolute; width: 42px; height: 4px; top: 7px; left: 50%;
  transform: translateX(-50%); border-radius: 99px; background: var(--line);
}
.sheet-content { overflow-y: auto; min-height: 0; padding: 14px; }
.sheet-footer {
  flex: none; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -5px 14px rgba(16, 33, 74, .05);
}
.sheet-footer .list-row { width: 100%; }
.sheet:focus { outline: none; }

/* ----------------------------------------------------------------------- cartes */

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-s); min-width: 0;
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.card-head h3 { font-size: 1rem; }
.card-head .eyebrow { margin-bottom: 2px; }
.card-head h3 .card-icon {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px;
  border-radius: 7px; background: var(--blue-100); color: var(--blue-700); font-size: 0.78rem;
  vertical-align: -5px;
}
.card-head h3 .card-icon svg { width: 14px; height: 14px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.metric {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-m); padding: 13px; box-shadow: var(--shadow-s);
}
.metric .metric-label { font-size: 0.72rem; color: var(--ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; max-width: calc(100% - 30px); }
.metric .metric-value { font-size: 1.24rem; font-weight: 800; margin-top: 5px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric .metric-note { font-size: 0.74rem; color: var(--ink-muted); margin-top: 3px; }
.metric .metric-icon {
  position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-size: 0.85rem; background: var(--blue-100); color: var(--blue-700);
}
.metric .metric-icon svg { width: 15px; height: 15px; }
.metric.accent { border-color: var(--orange-100); background: linear-gradient(160deg, #fffaf4, #fff); }
.metric.accent .metric-value { color: var(--orange-600); }
.metric.accent .metric-icon { background: var(--orange-100); color: var(--orange-600); }
.metric.primary { border-color: var(--blue-100); background: linear-gradient(160deg, var(--blue-50), #fff); }
.metric.primary .metric-value { color: var(--blue-700); }
.metric.stock .metric-icon { background: var(--green-100); color: var(--green-600); }

/* --------------------------------------------------------------------- tableaux */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 520px; }
thead th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); font-weight: 700; padding: 9px 10px;
  border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
tbody td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
/* La 1re colonne (nom/raison sociale) ne doit pas se compresser au point de
   retourner à la ligne à chaque mot ; les colonnes suivantes défilent plutôt
   horizontalement via .table-wrap. */
tbody td:first-child, thead th:first-child { min-width: 160px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--blue-50); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-strong { font-weight: 700; }
.cell-muted { color: var(--ink-muted); font-size: 0.82rem; }

/* --------------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  background: var(--blue-100); color: var(--blue-700);
}
.badge-success { background: var(--green-100); color: var(--green-600); }
.badge-warning { background: var(--orange-100); color: var(--orange-600); }
.badge-danger { background: var(--red-100); color: var(--red-600); }
.badge-neutral { background: var(--line-soft); color: var(--ink-soft); }
/* L'information ne repose jamais sur la seule couleur : un symbole l'accompagne. */
.badge::before { font-size: 0.72rem; }
.badge-success::before { content: "✓"; }
.badge-warning::before { content: "!"; }
.badge-danger::before { content: "✕"; }

/* --------------------------------------------------------------- utilisateurs */

.user-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.user-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); cursor: pointer; transition: background 0.12s;
}
.user-row:hover { background: var(--blue-50); }
.user-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.3px;
}
.user-avatar[data-role="owner"] { background: linear-gradient(140deg, var(--blue-600), var(--blue-900)); }
.user-avatar[data-role="sales_manager"] { background: linear-gradient(140deg, var(--orange-500), var(--orange-600)); }
.user-avatar[data-role="seller_driver"] { background: linear-gradient(140deg, #1caa7e, var(--green-600)); }
.user-avatar[data-role="stock_manager"] { background: linear-gradient(140deg, #6b5bd2, #403191); }
.user-avatar.is-archived { background: var(--line); color: var(--ink-muted); }
.user-info { flex: 1; min-width: 0; }
.user-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-name { font-weight: 700; color: var(--ink); }
.user-meta { color: var(--ink-muted); font-size: 0.82rem; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.role-pill {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.role-pill[data-role="owner"] { background: var(--blue-100); color: var(--blue-700); }
.role-pill[data-role="sales_manager"] { background: var(--orange-100); color: var(--orange-600); }
.role-pill[data-role="seller_driver"] { background: var(--green-100); color: var(--green-600); }
.role-pill[data-role="stock_manager"] { background: #eeeaff; color: #4d3aa3; }
.user-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* ------------------------------------------------------------------ états vides */

.empty-state { text-align: center; padding: 34px 18px; color: var(--ink-muted); }
.empty-state .empty-icon { font-size: 2rem; opacity: 0.4; display: block; margin-bottom: 8px; }
.empty-state strong { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 4px; }
.empty-state span { font-size: 0.84rem; }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, #f4f7fd 50%, var(--line-soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
  border-radius: var(--radius-s); height: 15px; margin-bottom: 9px;
}
.skeleton-card { min-height: 104px; height: auto; margin: 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spinner {
  width: 18px; height: 18px; border: 2.5px solid var(--blue-100);
  border-top-color: var(--blue-700); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- bandeaux */

.banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-m);
  font-size: 0.86rem; font-weight: 600; margin-bottom: 14px;
}
.banner-info { background: var(--blue-50); color: var(--blue-900); border: 1px solid var(--blue-100); }
.banner-warning { background: var(--orange-100); color: #8a4304; border: 1px solid #fcd9b0; }
.banner-danger { background: var(--red-100); color: var(--red-600); border: 1px solid #f7c9c9; }
.banner-success { background: var(--green-100); color: var(--green-600); border: 1px solid #b9e8d3; }
.banner .banner-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }

.toast-stack {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
  width: calc(100% - 28px); max-width: 460px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; border-radius: var(--radius-m);
  background: var(--ink); color: #fff; font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-l); animation: toast-in 0.2s ease-out;
}
.toast.success { background: var(--green-600); }
.toast.error { background: var(--red-600); }
.toast.warning { background: var(--orange-600); }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------------- modales */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(16, 32, 58, 0.5); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal {
  width: min(100%, 620px); max-width: 620px; min-width: 0; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-l); animation: sheet-up 0.18s ease-out;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-size: 1.1rem; }
.modal-wide { max-width: 860px; }

/* ---------------------------------------------------------------- point de vente */

.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.pos-layout > * { min-width: 0; }
#cartSlot { min-width: 0; }
#buyerSection .field > div { min-width: 0; }
#customerSelect { width: auto; min-width: 0; }
.buyer-customer-field { margin-bottom: 14px; }
.buyer-customer-search { margin: 6px 0 8px; }
.buyer-customer-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.buyer-customer-label .field-hint { margin: 0; }
.buyer-customer-controls { display: flex; gap: 8px; align-items: flex-start; }
.buyer-customer-controls #customerSelect { flex: 1; }
.buyer-customer-controls #quickCustomer { flex: none; white-space: nowrap; }

.search-field { position: relative; margin-bottom: 12px; }
.search-field input { padding-left: 38px; }
.search-field .search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); pointer-events: none; font-size: 0.95rem;
}

.chip-row {
  display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; scroll-snap-type: x proximity;
}
.chip-row::-webkit-scrollbar, .tabs::-webkit-scrollbar { height: 5px; }
.chip-row::-webkit-scrollbar-thumb, .tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.chip-row > *, .tabs > * { scroll-snap-align: start; }
.scroll-hint { display: none; margin: -2px 0 6px; color: var(--ink-muted); font-size: .72rem; }
.chip {
  min-height: 36px; padding: 6px 13px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-family: inherit; font-size: 0.82rem; font-weight: 700;
  white-space: nowrap; cursor: pointer; flex: none;
}
.chip.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px;
  align-content: start; min-width: 0; overflow-x: hidden;
}
.product-tile {
  position: relative; display: flex; flex-direction: column; gap: 5px; text-align: left;
  min-height: 116px; padding: 12px 42px 12px 12px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-m); font-family: inherit; color: inherit; min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-tile:hover:not(:disabled) { border-color: var(--blue-600); box-shadow: var(--shadow-m); }
.product-tile.selected { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-100); }
.product-tile:disabled { opacity: 0.55; cursor: not-allowed; }
.product-tile .tile-name {
  /* Trois lignes, pas deux : « Caisse Boisson maltée 24 × 355 ml » est un nom
     courant ici, et le tronquer laissait deux articles voisins impossibles à
     distinguer sur l'écran de vente.
     `flex-shrink: 0` est indispensable : sans lui la hauteur minimale de la
     tuile comprimait le nom à deux lignes quoi qu'en dise le line-clamp, et la
     tuile refusait de grandir pour la troisième. */
  flex: 0 0 auto;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  font-weight: 700; font-size: 0.86rem; line-height: 1.3;
}
/* Le badge « PROMO » se range sur la ligne du prix : en bloc séparé il occupait
   une rangée entière et poussait le nom hors de la tuile. */
.product-tile .tile-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; min-width: 0; line-height: 1.15; }
.product-tile .tile-price .badge-promotion { font-size: .62rem; padding: 1px 6px; }
.product-tile .tile-price-old { color: var(--ink-soft); font-size: .72rem; font-weight: 500; white-space: nowrap; }
.product-tile .tile-price-current { color: var(--blue-700); white-space: nowrap; }
.product-tile .tile-price { color: var(--blue-700); font-weight: 800; font-size: 0.95rem; margin-top: auto; font-variant-numeric: tabular-nums; }
.product-tile.has-promotion { min-height: 132px; }
.product-tile .tile-stock { font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; }
.product-tile .tile-stock.low { color: var(--orange-600); }
.product-tile .tile-stock.out { color: var(--red-600); }
.tile-add {
  position: absolute; top: 10px; right: 9px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--blue-100); color: var(--blue-700); font-size: 1.25rem; font-weight: 800;
}
.product-tile.selected .tile-add { background: var(--blue-700); color: #fff; }
.tile-quantity {
  position: absolute; z-index: 1; top: -7px; right: -7px; min-width: 24px; height: 24px;
  display: grid; place-items: center; padding: 0 6px; border-radius: 99px;
  background: var(--orange-500); color: #fff; border: 2px solid var(--surface);
  font-size: .7rem; line-height: 1; font-weight: 800;
}

.cart-panel {
  display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, var(--blue-50), #f8faff 72%);
  border-color: var(--blue-100);
}
.cart-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#toggleCartView { display: none; }
.cart-body { min-width: 0; }
.cart-checkout {
  position: sticky; bottom: -16px; z-index: 2; margin: 0 -16px -16px; padding: 0 16px 16px;
  background: var(--surface); border-top: 1px solid var(--line-soft);
  box-shadow: 0 -8px 18px rgba(16, 33, 74, .05);
}
.checkout-summary { min-width: 0; }
.checkout-summary .received-field .money-field { max-width: none; margin-left: 0; }
.checkout-payment { min-width: 0; }
.cart-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cart-line {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  background: var(--surface); min-width: 0;
}
.cart-line:hover { border-color: var(--line); }
.cart-line .line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.cart-line .line-name {
  font-weight: 700; font-size: 0.9rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-line .line-total {
  font-weight: 800; font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums;
  flex: none; border: 0; background: none; font-family: inherit; padding: 0;
}
button.line-total { cursor: pointer; border-bottom: 1.5px dashed var(--line); line-height: 1.2; }
button.line-total:hover { color: var(--blue-700); border-bottom-color: var(--blue-600); }
.cart-line .line-total.is-override { color: var(--orange-600); }
button.line-total.is-override { border-bottom-color: var(--orange-500); }
/* Grille 3 colonnes (quantité | conditionnement | retrait) : tient sur une
   seule rangée même dans un panier étroit, sans jamais repasser à la ligne. */
.cart-line .line-controls {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 6px; min-width: 0;
}

/* Compteur de quantité groupé, compact mais confortable au doigt. */
.qty-stepper {
  display: flex; align-items: center; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface);
}
.qty-stepper button {
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 1.15rem; font-weight: 700; color: var(--blue-700); cursor: pointer;
}
.qty-stepper button:hover { background: var(--blue-50); }
.qty-stepper input {
  width: 40px; height: 36px; min-height: 0; padding: 0; text-align: center; font-weight: 700;
  border: 0; border-inline: 1px solid var(--line); -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Conditionnement de vente : liste déroulante compacte, en ligne. */
.line-unit {
  width: 100%; max-width: 140px; height: 36px; min-height: 0; padding: 0 8px; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--surface);
  font-family: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}
.line-unit-static { font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); justify-self: start; }

.line-remove {
  width: 36px; height: 36px; flex: none; border: 0; background: none; border-radius: var(--radius-s);
  color: var(--ink-muted); font-size: 0.95rem; cursor: pointer; display: grid; place-items: center;
}
.line-remove:hover { background: var(--red-100); color: var(--red-600); }

.cart-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0; border-top: 2px solid var(--line);
}
/* Aides de saisie discrètes dans l'encaissement : elles ne doivent pas voler la
   place de la liste d'articles. */
.cart-checkout .received-field .field-hint { font-size: 0.72rem; line-height: 1.3; }
.cart-checkout .payment-hint { font-size: 0.72rem; margin: 2px 0 8px; }
.cart-total-row .total-label { font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.cart-total-row .total-value { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.change-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 11px 13px; border-radius: var(--radius-s);
  background: var(--green-100); color: var(--green-600); font-weight: 800; margin-bottom: 12px;
}
.change-row .change-value { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.received-field { margin-bottom: 8px; }
.received-field .money-field { max-width: 260px; margin-left: auto; }
.received-field input { font-size: 1.1rem; font-weight: 800; }
.payment-hint { text-align: center; margin: 0 0 8px; }

.mobile-cart-bar {
  position: fixed; z-index: 39; left: 10px; right: 10px;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 8px);
  padding: 7px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-m);
  background: var(--blue-900); box-shadow: var(--shadow-l);
}
.mobile-cart-bar > button {
  width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer;
}
.mobile-cart-bar > button:disabled { opacity: .62; cursor: default; }
.mobile-cart-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mobile-cart-summary strong { font-size: .78rem; color: rgba(255,255,255,.74); }
.mobile-cart-summary span { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mobile-cart-action { font-size: .86rem; font-weight: 800; white-space: nowrap; }
.pos-cart-sheet .sheet { max-width: 680px; max-height: 92dvh; margin-bottom: 0; }
.pos-cart-sheet .sheet-content { padding: 0; }
.pos-cart-sheet .mobile-sheet-cart {
  display: flex; max-height: none; overflow: visible; padding: 14px;
  border: 0; border-radius: 0; box-shadow: none;
}
.pos-cart-sheet .mobile-sheet-cart > .card-head .eyebrow { display: none; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1.5px solid var(--line); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 12px; }
.segmented button {
  min-height: var(--tap); border: 0; background: var(--surface);
  font-family: inherit; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.segmented button.active { background: var(--blue-700); color: #fff; }
.segmented button[aria-pressed="true"] { background: var(--blue-700); color: #fff; }
.segmented button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--orange-500); outline-offset: -3px; }

/* ------------------------------------------------------------------ listes */

.list { display: flex; flex-direction: column; gap: 9px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-m);
  background: var(--surface); cursor: pointer; text-align: left;
  font-family: inherit; color: inherit; width: 100%;
}
.list-row:hover { border-color: var(--blue-600); background: var(--blue-50); }
.list-row .row-main { flex: 1; min-width: 0; }
.list-row .row-title { font-weight: 700; font-size: 0.9rem; }
.list-row .row-sub { font-size: 0.78rem; color: var(--ink-muted); margin-top: 2px; }
.list-row .row-end { text-align: right; flex: none; }
.list-row .row-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
/* Icône en tuile dans la feuille « Plus » : lecture immédiate, façon app standard.
   La tuile reste neutre pour convenir aussi bien à une icône bleue qu'à la
   déconnexion en rouge (couleur portée par currentColor). */
.list-row > .nav-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--line-soft); color: var(--ink-soft);
}
.list-row > .nav-icon svg { width: 20px; height: 20px; }
.list-row:hover > .nav-icon { background: #fff; color: var(--blue-700); }

/* Les alertes ont une action, un badge et une date : sur téléphone, ces
   éléments passent sous le texte au lieu de lui voler toute sa largeur. */
.alert-row { align-items: flex-start; }
.alert-row-icon { flex: none; font-size: 1.2rem; line-height: 1.3; }
.alert-row-main { overflow-wrap: anywhere; }
.alert-row-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 9px; }
.alert-row-date { flex-basis: 100%; margin-top: 0 !important; }
.alert-row-action { white-space: normal; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 11px; }
.rank-index {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; font-size: 0.76rem; font-weight: 800;
}
.rank-item .rank-main { flex: 1; min-width: 0; }
.rank-item .rank-name { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { height: 5px; border-radius: 99px; background: var(--line-soft); margin-top: 5px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue-700); }
.rank-item .rank-value { font-size: 0.82rem; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }

/* -------------------------------------------------------------------- graphique */

.chart-scroll { overflow-x: auto; padding: 2px 0 5px; }
.chart { position: relative; min-width: max(100%, calc(var(--chart-points) * 56px)); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 166px; }
.bars .bar-column { flex: 1; display: flex; height: 100%; flex-direction: column; align-items: center; gap: 5px; min-width: 48px; }
.bars .bar-value {
  width: 100%; height: 28px; display: flex; align-items: flex-end; justify-content: center;
  font-size: .62rem; line-height: 1.05; color: var(--ink-soft); font-weight: 800;
  text-align: center; white-space: nowrap;
}
.bars .bar-track { height: 112px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars .bar {
  width: 100%; max-width: 34px; min-height: 3px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  border-radius: 5px 5px 0 0; position: relative;
}
.bars .bar.today { background: linear-gradient(180deg, var(--orange-500), var(--orange-600)); }
.bars .bar-label { font-size: 0.63rem; color: var(--ink-muted); font-weight: 700; white-space: nowrap; }
.chart-trend {
  position: absolute; z-index: 2; pointer-events: none; left: 0; right: 0; top: 33px;
  width: 100%; height: 112px; overflow: visible;
}
.chart-trend polyline {
  fill: none; stroke: var(--orange-600); stroke-width: 5; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(81, 45, 0, .18));
}

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line-soft);
}
.pager-summary { font-size: .8rem; color: var(--ink-muted); font-weight: 700; }
.pager-actions { display: flex; gap: 7px; }
.pager .button:disabled { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------------- divers */

.stat-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.stat-line:last-child { border-bottom: 0; }
.stat-line .stat-label { font-size: 0.85rem; color: var(--ink-soft); }
.stat-line .stat-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-line.emphasis { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; }
.stat-line.emphasis .stat-value { font-size: 1.1rem; color: var(--blue-700); }

/* États financiers : lecture rapide sur ordinateur et défilement maîtrisé sur mobile. */
.statement-list {
  border: 1px solid var(--line-soft); border-radius: var(--radius-m);
  padding: 5px 14px; background: var(--blue-50);
}
.statement-list .stat-line { padding: 11px 0; }
.statement-list .statement-subtotal { border-top: 2px solid var(--line); margin-top: 4px; padding-top: 13px; }
.statement-list .statement-subtotal .stat-value { color: var(--blue-700); }
.statement-list .statement-total { border-top: 2px solid var(--blue-700); margin-top: 5px; padding-top: 13px; }
.statement-list .statement-total .stat-label,
.statement-list .statement-total .stat-value { color: var(--blue-900); font-size: 1rem; font-weight: 800; }
.financial-submetrics { margin-bottom: 14px; }
.financial-submetrics .metric-value { font-size: 1.08rem; }
.financial-tabs { margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin-bottom: 0; flex: 1 1 148px; }
.filters .button { flex: none; }
.stock-filters .field { min-width: 145px; }
.stock-cost-hint { flex: 1 1 100%; margin: -4px 0 5px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.detail-label { color: var(--ink-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.detail-notes { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.detail-notes p { margin: 5px 0 0; color: var(--ink-soft); white-space: pre-wrap; }

.tabs {
  display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  scroll-snap-type: x proximity;
}
.tab {
  min-height: 42px; padding: 8px 14px; border: 0; background: none;
  border-bottom: 3px solid transparent; margin-bottom: -1.5px;
  font-family: inherit; font-size: 0.88rem; font-weight: 700;
  color: var(--ink-muted); cursor: pointer; white-space: nowrap;
}
.tab.active { color: var(--blue-700); border-bottom-color: var(--blue-700); }

/* `display` porté par une classe (.field, .button…) l'emporte sur la valeur par
   défaut de l'attribut `hidden` : sans cette règle, `element.hidden = true`
   n'avait aucun effet visible et les champs conditionnels restaient affichés. */
[hidden] { display: none !important; }

.file-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
/* Le sélecteur générique `input[type="file"]` plus bas impose width:100% et
   min-height:var(--tap) ; il est plus spécifique qu'une simple classe et
   étirait ce champ masqué sur toute la largeur de la page, qui se mettait
   alors à défiler latéralement. On repasse devant lui avec input.file-… */
input.file-input-hidden {
  position: absolute; width: 1px; height: 1px; min-height: 0;
  opacity: 0; pointer-events: none; padding: 0; border: 0;
}
tr.clickable:focus-visible { outline: 3px solid var(--blue-600); outline-offset: -3px; }

@media (max-width: 639px) {
  .login-screen { display: block; overflow-y: auto; }
  .login-panel { justify-content: flex-start; min-height: 100svh; padding: 32px 18px calc(28px + env(safe-area-inset-bottom)); }
  .login-brand { justify-content: center; }
  .login-copy { margin: 26px 0 18px; text-align: center; }
  .login-copy h1 { font-size: 1.85rem; }
  #loginForm { padding: 22px 18px; border-radius: 18px; }
  .scroll-hint { display: block; }
  .page-head .eyebrow { display: none; }
  .page-head-actions-only .page-head-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .field-flex-wide, .field-flex-xs, .field-flex-sm { flex: 1 1 100%; }
  .alert-page-actions { width: 100%; display: flex; }
  .alert-page-actions .button { flex: 1 1 145px; white-space: normal; }
  .alert-row { flex-wrap: wrap; gap: 10px; }
  .alert-row-main { flex: 1 1 auto; min-width: 0; }
  .alert-row .alert-row-end { flex: 1 1 100%; width: 100%; justify-content: flex-start; padding-left: 34px; text-align: left; }
  .alert-row-action { flex: 1 1 auto; min-width: 0; text-align: left; }
  .alert-row-date { flex-basis: auto; margin-left: auto !important; text-align: right; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .financial-submetrics { grid-template-columns: 1fr 1fr; }
  .financial-tabs .tab { padding-left: 11px; padding-right: 11px; }
  .stock-filters .field { flex: 1 1 100%; }
  .stock-filters .button { flex: 1 1 145px; }
  .stock-table-wrap { margin: 0; padding: 0; overflow: visible; }
  .stock-table { display: block; min-width: 0; }
  .stock-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .stock-table tbody, .stock-table tr, .stock-table td { display: block; width: 100%; }
  .stock-table tbody tr {
    margin-bottom: 10px; padding: 9px 12px; border: 1px solid var(--line-soft);
    border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow-s);
  }
  .stock-table tbody td {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    min-width: 0 !important; padding: 7px 0; text-align: right; white-space: normal;
    border-bottom: 1px solid var(--line-soft);
  }
  .stock-table tbody td:last-child { border-bottom: 0; }
  .stock-table tbody td::before {
    content: attr(data-label); flex: 0 0 42%; color: var(--ink-muted);
    font-size: .72rem; font-weight: 700; text-align: left; text-transform: uppercase;
    letter-spacing: .03em;
  }
  .stock-table tbody td > * { max-width: 58%; }
  .stock-table tbody td > div { text-align: right; }
}

@media (max-width: 1023px) {
  .pos-layout { padding-bottom: 84px; }
  #cartSlot { display: none; }
  .pos-catalog-tools {
    position: sticky; z-index: 8; top: calc(64px + env(safe-area-inset-top));
    margin: -8px -8px 8px; padding: 8px 8px 0;
    background: var(--surface); border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 430px) {
  .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .page-kicker { display: none; }
  .connection-pill { min-height: 38px; padding: 4px 8px; }
  .topbar-actions { gap: 3px; }
  .pager { align-items: stretch; flex-direction: column; }
  .pager-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .pager-actions .button { width: 100%; }
  .buyer-customer-controls { flex-direction: column; }
  .buyer-customer-controls #customerSelect,
  .buyer-customer-controls #quickCustomer { width: 100%; }
  .buyer-customer-label { align-items: flex-start; flex-direction: column; gap: 2px; }
}

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: 8px; top: 20px; bottom: 0;
  width: 2px; background: var(--line-soft);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-100); border: 3px solid var(--blue-700); flex: none; z-index: 1; }
.timeline-body { flex: 1; min-width: 0; }
.timeline-title { font-size: 0.87rem; font-weight: 700; }
.timeline-meta { font-size: 0.76rem; color: var(--ink-muted); }

.receipt {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius-m); padding: 16px; font-variant-numeric: tabular-nums;
}
.receipt-head { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.86rem; }
.receipt-total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; font-weight: 800; font-size: 1rem; }
.receipt-section { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-muted); margin: 14px 0 6px; }
.receipt-section:first-child { margin-top: 0; }
.receipt-banner { text-align: center; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.03em;
  color: #fff; background: var(--red-600); border-radius: var(--radius-s); padding: 8px; margin-bottom: 12px; }
.receipt.is-ticket { max-width: 300px; margin: 0 auto; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.receipt.is-ticket .receipt-head strong { font-size: 0.95rem; }
.receipt.is-ticket .receipt-line { font-size: 0.8rem; }

.success-hero { text-align: center; padding: 26px 18px; }
.success-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center; font-size: 2.3rem;
}
.success-hero h1 { font-size: 1.35rem; margin-bottom: 6px; }
.success-amount { font-size: 2.1rem; font-weight: 800; color: var(--blue-700); font-variant-numeric: tabular-nums; margin: 10px 0; }

.permission-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.permission-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: var(--radius-s);
}
.permission-row .permission-label { font-size: 0.85rem; font-weight: 600; }
.permission-row select { width: auto; min-width: 132px; }

/* ------------------------------------------------------------------ tablette */

@media (min-width: 640px) {
  .page { padding: 20px 20px calc(var(--bottom-nav-h) + 30px); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .field-col-12 { grid-column: span 12; }
  .field-col-9 { grid-column: span 9; }
  .field-col-8 { grid-column: span 8; }
  .field-col-7 { grid-column: span 7; }
  .field-col-6 { grid-column: span 6; }
  .field-col-5 { grid-column: span 5; }
  .field-col-4 { grid-column: span 4; }
  .field-col-3 { grid-column: span 3; }
  .field-size-xs { max-width: 140px; }
  .field-size-sm { max-width: 220px; }
  .field-size-md { max-width: 320px; }
  .field-size-lg { max-width: 560px; }
  .form-actions .button { flex: 0 0 auto; }
  .connection-pill .label { display: inline; }
  .permission-grid { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-l); }
  .sheet { border-radius: var(--radius-l); margin-bottom: 20px; }
  .sheet-backdrop { align-items: center; padding: 20px; }
  h1 { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------- ordinateur */

@media (min-width: 1024px) {
  .sidebar { display: flex; }
  .bottom-nav { display: none; }
  .page { padding: 24px 26px 40px; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .dashboard-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
  .pos-layout { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: stretch; }
  .pos-catalog {
    display: flex; flex-direction: column; height: calc(100dvh - 150px);
    min-height: 500px; max-height: 760px;
  }
  .pos-catalog-tools { flex: none; padding-bottom: 4px; }
  .pos-catalog .product-grid { overflow-y: auto; min-height: 0; padding: 1px 5px 5px 1px; }
  .pos-layout #cartSlot { position: sticky; top: 78px; align-self: start; }
  .pos-layout .cart-panel {
    height: calc(100dvh - 150px); max-height: calc(100dvh - 150px); overflow: hidden;
  }
  .pos-layout .cart-panel > .card-head { flex: none; }
  .pos-layout .cart-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    scrollbar-gutter: stable;
  }
  .pos-layout .cart-checkout { position: static; flex: 0 0 auto; }
  .pos-layout .cart-checkout { padding-top: 14px; }
  .pos-layout .checkout-summary {
    display: block; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
  }
  .pos-layout .checkout-summary .cart-total-row {
    min-width: 0; padding: 10px 0 14px; border-top: 0; align-items: center; gap: 12px;
  }
  .pos-layout .checkout-summary .total-label,
  .pos-layout .checkout-summary .total-value { white-space: nowrap; }
  .pos-layout .checkout-summary .received-field {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
    align-items: center; column-gap: 16px; row-gap: 0; margin: 0;
  }
  .pos-layout .checkout-summary .received-field > span:first-child { margin: 0; }
  .pos-layout .checkout-summary .received-field .money-field { grid-column: 2; grid-row: 1; }
  .pos-layout .checkout-summary .received-field .field-hint { grid-column: 2; max-width: 260px; }
  .pos-layout .checkout-payment { padding-top: 14px; }
  .pos-layout .cart-checkout .payment-hint { margin-bottom: 7px; }
  .pos-layout .cart-checkout #submitSale { min-height: 52px; }
  .pos-layout .cart-lines { gap: 10px; margin-bottom: 16px; }
  .pos-layout .cart-line { padding: 12px 13px; gap: 10px; }
  .pos-layout .cart-line .line-head { gap: 14px; }
  .pos-layout .cart-line .line-name { font-size: .93rem; }
  .pos-layout .cart-line .line-total { font-size: 1rem; }
  .pos-layout .pos-catalog .product-grid {
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable;
  }
  .pos-layout .qty-stepper button,
  .pos-layout .qty-stepper input,
  .pos-layout .line-unit,
  .pos-layout .line-remove { height: 40px; }
  .pos-layout .qty-stepper button { width: 40px; }
  .pos-layout .qty-stepper input { width: 44px; }
  .pos-layout .line-remove { width: 40px; }
  .pos-layout #toggleCartView:not(.hidden) { display: inline-flex; }
  .pos-layout .cart-panel-expanded { height: auto; max-height: none; overflow: visible; }
  .pos-layout .cart-panel-expanded .cart-body { flex: none; overflow: visible; }
  .pos-layout .cart-panel-expanded .cart-checkout { position: static; }
  .mobile-cart-bar { display: none; }
  .toast-stack { bottom: 22px; }
  .login-screen { grid-template-columns: minmax(400px, .82fr) minmax(480px, 1.18fr); }
  .login-panel { padding: 56px clamp(40px, 5vw, 80px); }
  .login-form-wrap { margin: 0; max-width: 400px; }

  .login-visual {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px clamp(48px, 6vw, 96px); color: #fff; text-align: center;
    position: relative; overflow: hidden;
    background:
      radial-gradient(92% 60% at 50% 6%, rgba(58, 116, 246, .5), transparent 60%),
      linear-gradient(155deg, #163fae, var(--blue-900) 62%, #0a1f57);
  }
  .login-visual::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
      radial-gradient(360px 360px at 84% 86%, rgba(249, 115, 22, .34), transparent 70%),
      radial-gradient(300px 300px at 12% 20%, rgba(122, 166, 255, .22), transparent 70%);
  }
  .login-visual-inner {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
    animation: login-hero-in .7s cubic-bezier(.2, .8, .3, 1) both;
  }
  .login-hero-mark {
    position: relative; width: 120px; height: 120px; padding: 11px; border-radius: 32px;
    background: #fff; display: grid; place-items: center;
    box-shadow: 0 30px 64px rgba(3, 14, 52, .5), 0 0 0 1px rgba(255, 255, 255, .05);
  }
  .login-hero-mark::after {
    content: ""; position: absolute; inset: -32px; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 178, 255, .32), transparent 70%);
  }
  .login-hero-mark img { display: block; width: 100%; height: 100%; border-radius: 22px; object-fit: contain; }
  .login-hero-name { margin-top: 26px; font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
  .login-hero-tagline { margin-top: 11px; max-width: 360px; font-size: 1.02rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
  .login-visual-foot {
    position: absolute; bottom: 30px; left: 0; right: 0; z-index: 1; text-align: center;
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
  }
  @keyframes login-hero-in { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: none; } }
  .page-head h1 { font-size: 1.5rem; }
  .table-wrap { margin: 0; padding: 0; }
}

@media (min-width: 1280px) {
  /* Le panier reste assez large pour afficher quantité, conditionnement et actions. */
  .pos-layout { grid-template-columns: minmax(0, 1.4fr) minmax(430px, .9fr); }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  /* Sur un desktop étroit, le total et le montant reçu restent lisibles. */
  .pos-layout .checkout-summary .received-field { display: block; }
  .pos-layout .checkout-summary .received-field > span:first-child { margin-bottom: 6px; }
  .pos-layout .checkout-summary .received-field .money-field { max-width: 260px; }
  .pos-layout .checkout-summary .received-field .field-hint { max-width: 260px; }
}

@media (min-width: 1280px) {
  .sidebar.collapsed { width: 72px; }
  .sidebar.collapsed .brand-name,
  .sidebar.collapsed .brand-tagline,
  .sidebar.collapsed .nav-item span:not(.nav-icon),
  .sidebar.collapsed .nav-group-label { display: none; }
  .sidebar.collapsed .nav-item { justify-content: center; }
}

@media print {
  .sidebar, .bottom-nav, .topbar, .page-head-actions, .toast-stack { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
