/* Fallah — module « Mon stock » (مخزوني). Couleur du module : turquoise. Animations douces, coupées si le téléphone le demande. */

/* ---------- Carte d'accueil de Fallah ---------- */
.tool-card.stock-primary {
  grid-column: 1 / -1; min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 18px;
  border: 0; color: #fff; background: linear-gradient(135deg, #2fd0b4, #0b8c78); box-shadow: 0 12px 26px rgba(11, 140, 120, .28);
}
.tool-card.stock-primary::after { width: 8rem; height: 8rem; right: -2.5rem; top: -3rem; background: #fff; opacity: .12; }
.tool-card.stock-primary strong { margin: 0; color: #fff; font-size: 1.15rem; }
.tool-card.stock-primary small { display: block; color: #e3fbf6; font-size: .82rem; }
.tool-card.stock-primary .tool-copy { min-width: 0; }
.tool-card.stock-primary .tool-icon.tool-icon-3d { width: 3.9rem; height: 3.9rem; border-radius: 17px; box-shadow: 0 8px 18px rgba(0, 80, 66, .35); }
.tool-card.stock-primary .tool-arrow { width: 1.4rem; fill: none; stroke: #fff; stroke-width: 2.5; }
@media (max-width: 420px) { .tool-card.stock-primary .tool-icon.tool-icon-3d { width: 3.5rem; height: 3.5rem; } }

/* ---------- En-tête de l'écran ---------- */
#stock { --tint: #d2f5ee; --edge: #7fd6c4; --glow: rgba(11, 140, 120, .18); --sk: #0b8c78; --sk-dark: #075e51;
  background: linear-gradient(180deg, color-mix(in srgb, #d2f5ee 55%, var(--paper) 45%) 0, var(--paper) 360px); }
#stock .catalogue-header { background: linear-gradient(180deg, rgba(255, 252, 246, .97), color-mix(in srgb, #d2f5ee 55%, #fffaf2 45%)); border-bottom: 2px solid var(--edge); }
#stock .catalogue-header > div { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; min-width: 0; }
#stock .catalogue-header > div::before { content: ""; grid-row: 1 / span 2; width: 2.7rem; height: 2.7rem; border-radius: 12px; background: url(/assets/ui/stock.svg) center / cover no-repeat; box-shadow: 0 5px 12px var(--glow); }
#stock .catalogue-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
#stock-root { padding-bottom: 130px; }

/* ---------- Animations ---------- */
@keyframes sk-up { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sk-grow { from { width: 0; } }
@keyframes sk-pulse { 0% { box-shadow: 0 0 0 0 var(--pc, rgba(229, 57, 53, .45)); } 70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
@keyframes sk-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sk-mic { 0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .5), 0 14px 30px rgba(229, 57, 53, .35); } 70% { box-shadow: 0 0 0 22px rgba(229, 57, 53, 0), 0 14px 30px rgba(229, 57, 53, .35); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0), 0 14px 30px rgba(229, 57, 53, .35); } }
.sk-in-anim { animation: sk-up .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  .sk-in-anim, .sk-gauge i, .sk-pulse, .sk-b-out, .sk-mic.on, .sk-dot { animation: none !important; }
}

/* ---------- Boutons communs ---------- */
.sk-primary, .sk-secondary, .sk-ghost { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-height: 54px; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; font: inherit; font-weight: 900; font-size: 1.02rem; cursor: pointer; text-align: center; }
.sk-primary { border: 0; color: #fff; background: linear-gradient(135deg, #22c3a6, #0b8c78); box-shadow: 0 10px 22px rgba(11, 140, 120, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.sk-primary:active { transform: scale(.985); }
.sk-secondary { border: 2px solid #8fdccd; color: var(--sk-dark, #075e51); background: #f0fbf8; }
.sk-ghost { border: 2px dashed #e0cfb5; color: #8a6d4b; background: transparent; font-weight: 800; min-height: 46px; }
.sk-filebtn.disabled { opacity: .6; pointer-events: none; }
.sk-linkbtn { border: 0; background: none; color: var(--sk, #0b8c78); font: inherit; font-weight: 900; padding: 0; cursor: pointer; }
.sk-hint { margin: 4px 0 12px; color: #6f6455; font-size: .9rem; line-height: 1.45; }
.sk-empty { margin: 18px 0; padding: 18px; border: 2px dashed #e7d9c1; border-radius: 16px; color: #8a7b66; text-align: center; }
.sk-local { margin: 22px 0 0; color: var(--sk, #0b8c78); font-size: .8rem; font-weight: 800; text-align: center; }
.sk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 10px; font-size: 1.05rem; font-weight: 900; color: #2b2119; }
.sk-h-link button { border: 0; background: none; color: var(--sk, #0b8c78); font: inherit; font-size: .82rem; font-weight: 900; cursor: pointer; }
.sk-sub { margin: 14px 0 8px; font-size: .9rem; font-weight: 900; color: #3b3027; }
.sk-card { margin: 14px 0 0; padding: 14px; border: 1px solid #eadcc4; border-radius: 18px; background: #fffdf8; box-shadow: 0 8px 20px rgba(70, 48, 15, .06); }
.sk-card h4 { margin: 0 0 10px; font-size: .95rem; }
.sk-notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff6dc; border: 1px solid #f3d27a; color: #6d5212; font-size: .88rem; line-height: 1.45; }
.sk-notice button { display: inline; border: 0; background: none; color: #a26a00; font: inherit; font-weight: 900; cursor: pointer; padding: 0; }
.sk-allgood { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: #e9f8ee; color: #1f7a43; font-weight: 800; text-align: center; }

/* ---------- Accueil du module ---------- */
.sk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sk-stat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid #c9efe6; border-radius: 18px;
  background: linear-gradient(160deg, #fff, #effbf8); text-align: start; font: inherit; cursor: pointer; overflow: hidden; box-shadow: 0 8px 18px rgba(11, 140, 120, .1); }
.sk-stat span { grid-row: 1 / span 2; font-size: 1.6rem; }
.sk-stat b { font-size: 1.35rem; font-weight: 900; color: #10261c; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-stat small { color: #6f6455; font-size: .74rem; font-weight: 700; }
.sk-stat.sk-stat-text b { font-size: 1.02rem; white-space: normal; overflow: visible; }
.sk-stat.sk-warn { border-color: #f6cf8a; background: linear-gradient(160deg, #fff, #fff4dc); }
.sk-stat.sk-order { border-color: #9fd2f3; background: linear-gradient(160deg, #fff, #e9f5ff); }
.sk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sk-big { display: grid; justify-items: start; gap: 2px; min-height: 104px; padding: 14px 16px; border: 0; border-radius: 22px; color: #fff; font: inherit; text-align: start; cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.sk-big::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: #fff; opacity: .14; }
.sk-big span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .25); font-size: 1.3rem; font-weight: 900; }
.sk-big strong { margin-top: 6px; font-size: 1.12rem; }
.sk-big small { font-size: .78rem; opacity: .9; }
.sk-big-in { background: linear-gradient(140deg, #3ccf6e, #138a46); }
.sk-big-out { background: linear-gradient(140deg, #ffab4a, #ea6a12); }
.sk-big:active { transform: scale(.98); }
.sk-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sk-quick button { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 2px solid #eadcc4; border-radius: 16px; background: #fffdf8; font: inherit; font-size: .8rem; font-weight: 900; color: #3b3027; cursor: pointer; }
.sk-quick span { font-size: 1.4rem; }
.sk-alerts { display: grid; gap: 8px; }
.sk-alert { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: .88rem; text-align: start; cursor: pointer; }
.sk-alert span { flex: 1; }
.sk-al-3 { background: #ffecea; color: #b42318; --pc: rgba(229, 57, 53, .45); }
.sk-al-2 { background: #fff3dc; color: #9a5b00; --pc: rgba(240, 150, 0, .45); }
.sk-al-1 { background: #eaf4ff; color: #1d5fa8; --pc: rgba(30, 120, 220, .4); }
.sk-al-0 { background: #f3efff; color: #5b3fb5; --pc: rgba(110, 70, 210, .4); }
.sk-pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: sk-pulse 1.9s ease-out infinite; }
.sk-catstrip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.sk-catstrip::-webkit-scrollbar { display: none; }
.sk-cat { position: relative; flex: none; display: grid; justify-items: center; align-content: start; gap: 4px; width: 104px; padding: 10px 6px; border: 2px solid color-mix(in srgb, var(--c1) 55%, #fff 45%); border-radius: 18px;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c1) 18%, #fff 82%)); font: inherit; cursor: pointer; scroll-snap-align: start; }
.sk-cat img { width: 52px; height: 52px; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .15)); }
.sk-cat strong { max-width: 100%; font-size: .7rem; line-height: 1.15; text-align: center; color: #2b2119; min-height: 2.3em; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.sk-cat small { font-size: .72rem; font-weight: 900; color: #6f6455; }
.sk-dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; border: 2px solid #fff; animation: sk-pulse 1.9s ease-out infinite; --pc: rgba(240, 150, 0, .5); }
.sk-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.sk-link { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 12px; border: 1px solid #eadcc4; border-radius: 14px; background: #fffdf8; font: inherit; text-align: start; cursor: pointer; }
.sk-link span { font-size: 1.15rem; }
.sk-link strong { font-size: .82rem; line-height: 1.2; }
.sk-link em { font-style: normal; font-size: .72rem; font-weight: 900; padding: 2px 7px; border-radius: 99px; background: #e5f6f2; color: var(--sk, #0b8c78); }
.sk-link i { font-style: normal; color: #b7a78f; font-weight: 900; }
.sk-arr { font-style: normal; }
[dir="rtl"] .sk-link i, [dir="rtl"] .sk-arr { transform: scaleX(-1); display: inline-block; }
.sk-welcome { padding: 22px 18px; border-radius: 24px; background: linear-gradient(160deg, #fff, #e3f8f2); border: 2px solid #b9eadf; text-align: center; box-shadow: 0 12px 26px rgba(11, 140, 120, .12); }
.sk-welcome-icon { width: 84px; height: 84px; filter: drop-shadow(0 10px 16px rgba(11, 140, 120, .3)); }
.sk-welcome h3 { margin: 10px 0 6px; font-size: 1.35rem; }
.sk-welcome p { margin: 0; color: #4f463b; line-height: 1.5; }
.sk-welcome .sk-hint { margin-top: 14px; font-size: .82rem; }

/* ---------- Listes de produits ---------- */
.sk-search { width: 100%; min-height: 50px; margin-bottom: 10px; padding: 10px 14px; border: 2px solid #e3d8c3; border-radius: 14px; background: #fff; font: inherit; font-size: 1.02rem; }
.sk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.sk-chips::-webkit-scrollbar { display: none; }
.sk-chips button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid #eadcc4; border-radius: 99px; background: #fff; font: inherit; font-size: .82rem; font-weight: 800; color: #3b3027; cursor: pointer; }
.sk-chips button img { width: 22px; height: 22px; }
.sk-chips button.on { border-color: transparent; background: linear-gradient(135deg, #22c3a6, #0b8c78); color: #fff; box-shadow: 0 6px 14px rgba(11, 140, 120, .25); }
.sk-list { display: grid; gap: 10px; }
.sk-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid #eadcc4; border-radius: 18px; background: #fffdf8; font: inherit; text-align: start; cursor: pointer; box-shadow: 0 6px 16px rgba(70, 48, 15, .05); }
.sk-row:active { transform: scale(.99); }
.sk-row.sk-dim { opacity: .55; }
.sk-thumb { width: 54px; height: 54px; border-radius: 15px; object-fit: cover; box-shadow: 0 5px 10px rgba(0, 0, 0, .12); background: #f3ece0; }
.sk-thumb-sm { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.sk-thumb-lg { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 12px rgba(0, 0, 0, .12); }
.sk-thumb-xl { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); background: #fff; }
.sk-row-main { display: grid; gap: 3px; min-width: 0; }
.sk-row-main strong { font-size: .98rem; line-height: 1.2; overflow-wrap: anywhere; }
.sk-row-main small { color: #7a6e5e; font-size: .76rem; }
.sk-row-qty { display: grid; justify-items: end; gap: 2px; text-align: end; }
.sk-row-qty b { font-size: .98rem; font-weight: 900; white-space: nowrap; }
.sk-row-qty small { color: #7a6e5e; font-size: .72rem; white-space: nowrap; }
.sk-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.sk-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.sk-b-out { background: #ffe1de; color: #b42318; animation: sk-breathe 2.4s ease-in-out infinite; }
.sk-b-low { background: #ffefcc; color: #9a5b00; }
.sk-b-loan { background: #e3efff; color: #1d5fa8; }
.sk-b-prov { background: #efe8ff; color: #5b3fb5; }
.sk-gauge { display: block; height: 7px; border-radius: 99px; background: #efe6d6; overflow: hidden; margin-top: 3px; }
.sk-gauge i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #43d17a, #16a34a); animation: sk-grow .9s cubic-bezier(.2, .8, .2, 1) both; transition: width .6s ease, background .4s ease; }
.sk-gauge.sk-low i { background: linear-gradient(90deg, #ffc35a, #f08c00); }
.sk-gauge.sk-out i { background: linear-gradient(90deg, #ff8a80, #e53935); }
.sk-fab { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px auto 0; padding: 14px 22px; border: 0; border-radius: 99px;
  background: linear-gradient(135deg, #22c3a6, #0b8c78); color: #fff; font: inherit; font-weight: 900; box-shadow: 0 12px 24px rgba(11, 140, 120, .35); cursor: pointer; z-index: 2; }
.sk-recent { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.sk-recent button { flex: none; display: inline-flex; align-items: center; gap: 8px; max-width: 200px; padding: 6px 12px 6px 6px; border: 2px solid #c9efe6; border-radius: 99px; background: #f0fbf8; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.sk-recent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fiche produit ---------- */
.sk-hero-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 14px 28px color-mix(in srgb, var(--c2) 35%, transparent); position: relative; overflow: hidden; }
.sk-hero-card::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 180px; height: 180px; border-radius: 50%; background: #fff; opacity: .13; }
.sk-hero-text h3 { margin: 6px 0 6px; font-size: 1.3rem; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); overflow-wrap: anywhere; }
.sk-hero-text .sk-badges { justify-content: flex-start; }
.sk-catchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 99px; background: rgba(255, 255, 255, .25); font-size: .72rem; font-weight: 900; }
.sk-catchip img { width: 22px; height: 22px; }
.sk-qtycard { margin-top: 12px; padding: 16px; border-radius: 20px; background: #fffdf8; border: 1px solid #eadcc4; box-shadow: 0 8px 20px rgba(70, 48, 15, .06); }
.sk-qtycard > small { color: #7a6e5e; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.sk-qty { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.sk-qty b { font-size: 2rem; font-weight: 900; line-height: 1.05; color: #10261c; }
.sk-qty span { color: #7a6e5e; font-weight: 800; }
.sk-qtycard .sk-gauge { height: 10px; }
.sk-days { margin: 10px 0 0; color: #4f463b; font-size: .86rem; font-weight: 700; }
.sk-prodactions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sk-prodactions:has(.sk-pa-loan) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sk-prodactions .sk-pa-ask { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.sk-prodactions button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 16px; font: inherit; font-size: .78rem; font-weight: 900; cursor: pointer; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .1); }
.sk-prodactions span { font-size: 1.2rem; }
.sk-pa-in { background: linear-gradient(140deg, #3ccf6e, #138a46); }
.sk-pa-out { background: linear-gradient(140deg, #ffab4a, #ea6a12); }
.sk-pa-loan { background: linear-gradient(140deg, #6aa8ff, #2a64d8); }
.sk-pa-fix { background: linear-gradient(140deg, #a8b6c4, #5d7184); }
.sk-pa-ask { background: #fff !important; color: #3b3027 !important; border: 2px solid #eadcc4 !important; box-shadow: none !important; }
.sk-pa-ask.on { background: #e3efff !important; color: #1d5fa8 !important; border-color: #9fc4f3 !important; }
.sk-info dl { margin: 0; display: grid; gap: 0; }
.sk-info dl div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eadcc4; }
.sk-info dl div:last-child { border-bottom: 0; }
.sk-info dt { color: #7a6e5e; font-size: .8rem; font-weight: 800; }
.sk-info dd { margin: 0; font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.sk-row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-cond { margin-top: 12px; }
.sk-loan { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eadcc4; }
.sk-loan:last-child { border-bottom: 0; }
.sk-loan-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-loan-btns button { min-height: 42px; border: 2px solid #c9efe6; border-radius: 12px; background: #f0fbf8; font: inherit; font-weight: 900; font-size: .82rem; cursor: pointer; color: #075e51; }
.sk-loan-btns .sk-ghost { margin: 0; min-height: 42px; border-style: solid; border-color: #f3c8c2; color: #b42318; background: #fff6f5; font-size: .82rem; }
.sk-loans { padding: 4px 14px; border-radius: 18px; background: #fffdf8; border: 1px solid #eadcc4; }

/* ---------- Formulaires ---------- */
.sk-form { display: grid; gap: 4px; }
.sk-field { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; min-width: 0; }
.sk-field > span, .sk-field > legend { font-size: .86rem; font-weight: 900; color: #3b3027; padding: 0; }
.sk-field > small { color: #7a6e5e; font-size: .76rem; }
.sk-field input, .sk-field select, .sk-field textarea, .sk-inline input, .sk-inline select { width: 100%; min-height: 50px; padding: 10px 12px; border: 2px solid #e3d8c3; border-radius: 14px; background: #fff; font: inherit; font-size: 1rem; color: inherit; }
.sk-field textarea { min-height: 70px; resize: vertical; }
.sk-field input, .sk-field select { min-width: 0; max-width: 100%; }
.sk-field input[type="date"] { -webkit-appearance: none; appearance: none; }
.sk-field input:focus, .sk-field select:focus, .sk-field textarea:focus, .sk-inline input:focus, .sk-search:focus { outline: none; border-color: #22c3a6; box-shadow: 0 0 0 4px rgba(34, 195, 166, .18); }
.sk-inline { display: flex; align-items: center; gap: 8px; }
.sk-inline > span { flex: none; font-size: .84rem; font-weight: 800; color: #4f463b; }
.sk-inline input { flex: 1 1 90px; min-width: 70px; }
.sk-inline select { flex: 1 1 110px; width: auto; }
.sk-inline em { flex: none; font-style: normal; font-weight: 900; color: #4f463b; }
.sk-photo { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px; border: 2px dashed #9fdccd; border-radius: 22px; background: linear-gradient(160deg, #fff, #effbf8); cursor: pointer; text-align: center; }
.sk-photo img { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); }
.sk-photo img.sk-photo-ph { opacity: .55; filter: grayscale(.2); }
.sk-photo span { font-weight: 900; color: var(--sk-dark, #075e51); }
.sk-photo.has { border-style: solid; }
.sk-templates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.sk-templates::-webkit-scrollbar { display: none; }
.sk-templates button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid #eadcc4; border-radius: 99px; background: #fffdf8; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.sk-suggest { display: grid; gap: 6px; }
.sk-suggest:empty { display: none; }
.sk-suggest button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #c9efe6; border-radius: 12px; background: #f6fdfb; font: inherit; text-align: start; cursor: pointer; }
.sk-suggest strong { font-size: .88rem; overflow-wrap: anywhere; }
.sk-suggest small { font-size: .68rem; font-weight: 900; color: var(--sk, #0b8c78); white-space: nowrap; }
.sk-suggest .sk-onssa-btn { display: block; text-align: center; font-weight: 900; color: #1f7a43; background: #eef9f1; border-color: #bfe6cb; }
/* Colonnes d'au moins 96 px : 3 par ligne sur téléphone, 2 si le texte est agrandi, plus sur grand écran (v43). */
.sk-catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sk-catpick label { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 8px 4px; border: 2px solid transparent; border-radius: 14px; cursor: pointer; text-align: center; transition: transform .2s ease, background .2s ease; }
.sk-catpick img { width: 44px; height: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)); }
.sk-catpick small { max-width: 100%; font-size: .68rem; font-weight: 800; line-height: 1.15; color: #4f463b; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.sk-catpick label.on { border-color: #22c3a6; background: #effbf8; transform: translateY(-2px); }
.sk-seg { display: flex; gap: 6px; padding: 4px; margin-top: 10px; border-radius: 16px; background: #efe6d6; }
.sk-seg label, .sk-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: .86rem; font-weight: 900; color: #6f6455; cursor: pointer; text-align: center; }
.sk-seg .on { background: #fff; color: var(--sk-dark, #075e51); box-shadow: 0 4px 10px rgba(70, 48, 15, .1); }
.sk-seg-sm label, .sk-seg-sm button { min-height: 38px; font-size: .8rem; }
.sk-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-forms label { padding: 8px 12px; border: 2px solid #eadcc4; border-radius: 99px; background: #fff; font-size: .82rem; font-weight: 800; cursor: pointer; }
.sk-forms label.on { border-color: transparent; background: linear-gradient(135deg, #22c3a6, #0b8c78); color: #fff; }
.sk-more { margin-top: 12px; padding: 4px 14px 14px; border: 1px solid #eadcc4; border-radius: 16px; background: #fffdf8; }
.sk-more summary { padding: 10px 0 4px; font-weight: 900; cursor: pointer; color: #3b3027; }
.sk-move-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: #fffdf8; border: 1px solid #eadcc4; }
.sk-move-head strong { display: block; font-size: 1.08rem; }
.sk-move-head small { color: #6f6455; font-weight: 700; }
.sk-stepper { display: grid; grid-template-columns: 58px 1fr 58px; gap: 8px; }
.sk-stepper button { min-height: 58px; border: 0; border-radius: 16px; background: #efe6d6; font: inherit; font-size: 1.6rem; font-weight: 900; color: #3b3027; cursor: pointer; }
.sk-stepper input { min-height: 58px; text-align: center; font-size: 1.5rem !important; font-weight: 900; }
.sk-form-in .sk-stepper button { background: #ddf5e5; color: #138a46; }
.sk-form-out .sk-stepper button { background: #ffe9d4; color: #c4560b; }
.sk-form-loan .sk-stepper button { background: #e1ecff; color: #2a64d8; }
.sk-unit-note { margin: 6px 0 0; color: #6f6455; font-weight: 800; font-size: .86rem; text-align: center; }
.sk-preview { min-height: 1.2em; margin: 6px 0 0; text-align: center; color: var(--sk, #0b8c78); font-weight: 900; }
.sk-submit-in { background: linear-gradient(135deg, #3ccf6e, #138a46); box-shadow: 0 10px 22px rgba(19, 138, 70, .28); }
.sk-submit-out { background: linear-gradient(135deg, #ffab4a, #ea6a12); box-shadow: 0 10px 22px rgba(234, 106, 18, .28); }
.sk-submit-loan { background: linear-gradient(135deg, #6aa8ff, #2a64d8); box-shadow: 0 10px 22px rgba(42, 100, 216, .28); }
.sk-attach { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 8px 12px; border: 2px dashed #e0cfb5; border-radius: 14px; font-weight: 900; color: #6f5a3d; cursor: pointer; }
.sk-attach img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.sk-attach.has { border-style: solid; border-color: #9fdccd; color: #075e51; background: #f0fbf8; }

/* ---------- Dictée et facture ---------- */
.sk-dictee, .sk-facture { display: grid; justify-items: stretch; padding: 18px; border-radius: 24px; background: #fffdf8; border: 1px solid #eadcc4; box-shadow: 0 10px 22px rgba(70, 48, 15, .06); }
.sk-example { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #f0fbf8; color: #075e51; font-size: .86rem; font-weight: 700; font-style: italic; }
.sk-mic { justify-self: center; display: grid; place-items: center; width: 108px; height: 108px; margin: 6px 0; border: 0; border-radius: 50%; font-size: 2.6rem; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #e53935 60%, #b71c1c); box-shadow: 0 14px 30px rgba(229, 57, 53, .35), inset 0 2px 0 rgba(255, 255, 255, .4); color: #fff; }
.sk-mic.on { animation: sk-mic 1.5s ease-out infinite; }
.sk-mic-state { margin: 4px 0 12px; text-align: center; font-weight: 900; color: #4f463b; }
.sk-dict-text { width: 100%; min-height: 100px; padding: 12px; border: 2px solid #e3d8c3; border-radius: 16px; font: inherit; font-size: 1rem; resize: vertical; }
.sk-ocr { margin-top: 14px; }
.sk-ocr .sk-gauge { height: 12px; }
.sk-ocr p { margin: 8px 0 0; text-align: center; font-weight: 800; color: #4f463b; }
.sk-ocr .sk-gauge i { animation: none; }

/* ---------- Validation des lignes ---------- */
.sk-lines { display: grid; gap: 12px; }
.sk-line { padding: 12px 14px 14px; border-radius: 20px; background: #fffdf8; border: 2px solid color-mix(in srgb, var(--c1) 45%, #eadcc4 55%); box-shadow: 0 8px 18px rgba(70, 48, 15, .06); }
.sk-line header { display: flex; align-items: center; gap: 8px; }
.sk-line header img { width: 34px; height: 34px; }
.sk-line header strong { flex: 1; font-size: .9rem; }
.sk-line.sk-unsure { border-style: dashed; }
.sk-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f5ece0; color: #8a6d4b; font-size: 1rem; cursor: pointer; }
.sk-match { margin: 6px 0 0; font-size: .8rem; font-weight: 900; }
.sk-match.known { color: #1f7a43; }
.sk-match.new { color: #5b3fb5; }
.sk-line-qty { margin-top: 10px; flex-wrap: wrap; }
.sk-line-qty input { flex: 1 1 70px; }
.sk-will { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #f0fbf8; color: #075e51; font-size: .82rem; font-weight: 800; }
.sk-will:empty { display: none; }
.sk-line-sortie .sk-will { background: #fff2e4; color: #9a4a08; }
.sk-line-pret .sk-will { background: #e9f1ff; color: #1d5fa8; }
.sk-inv-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 12px; }
.sk-inv-meta .sk-field { margin: 0; }

/* ---------- À commander, historique, inventaire, dépenses ---------- */
.sk-order-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eadcc4; border-radius: 18px; background: #fffdf8; }
.sk-order-main { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; min-width: 0; }
.sk-reasons { display: flex; flex-wrap: wrap; gap: 4px; }
.sk-check { position: relative; width: 28px; height: 28px; }
.sk-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sk-check span { display: block; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #c9b99d; background: #fff; }
.sk-check input:checked + span { border-color: transparent; background: linear-gradient(135deg, #22c3a6, #0b8c78); box-shadow: inset 0 0 0 6px transparent; }
.sk-check input:checked + span::after { content: "✓"; display: grid; place-items: center; height: 100%; color: #fff; font-weight: 900; }
.sk-day { margin: 16px 0 8px; color: #7a6e5e; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.sk-moves { display: grid; gap: 8px; }
.sk-move { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid #eadcc4; border-radius: 14px; background: #fffdf8; font: inherit; text-align: start; cursor: pointer; }
.sk-move-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f3ece0; font-size: 1.05rem; }
.sk-mv-entree .sk-move-ico { background: #ddf5e5; }
.sk-mv-sortie .sk-move-ico { background: #ffe9d4; }
.sk-mv-pret .sk-move-ico, .sk-mv-retour .sk-move-ico { background: #e1ecff; }
.sk-mv-perte .sk-move-ico { background: #ffe1de; }
.sk-move-main { display: grid; gap: 2px; min-width: 0; }
.sk-move-main strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-move-main small { color: #7a6e5e; font-size: .74rem; line-height: 1.3; }
.sk-move-q { font-weight: 900; font-size: .9rem; white-space: nowrap; }
.sk-mv-entree .sk-move-q, .sk-mv-retour .sk-move-q { color: #138a46; }
.sk-mv-sortie .sk-move-q, .sk-mv-perte .sk-move-q { color: #c4560b; }
.sk-mv-pret .sk-move-q { color: #2a64d8; }
.sk-inv-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eadcc4; border-radius: 18px; background: #fffdf8; }
.sk-inv-input { display: grid; justify-items: center; gap: 2px; width: 92px; }
.sk-inv-input input { width: 100%; min-height: 48px; border: 2px solid #e3d8c3; border-radius: 12px; text-align: center; font: inherit; font-size: 1.1rem; font-weight: 900; }
.sk-inv-input small { font-size: .66rem; color: #7a6e5e; font-weight: 800; text-align: center; }
.sk-gaps { margin: 14px 0 0; text-align: center; font-weight: 900; color: #9a5b00; }
.sk-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; height: 140px; padding: 10px; border-radius: 20px; background: #fffdf8; border: 1px solid #eadcc4; }
.sk-months button { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 4px; height: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.sk-months span { align-self: end; width: 70%; height: max(6px, var(--h)); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #9fe3d4, #3fbfa3); animation: sk-up .5s ease both; }
.sk-months .on span { background: linear-gradient(180deg, #2fd0b4, #0b8c78); box-shadow: 0 6px 12px rgba(11, 140, 120, .3); }
.sk-months small { font-size: .7rem; font-weight: 800; color: #7a6e5e; text-transform: capitalize; }
.sk-months .on small { color: #075e51; }
.sk-catbars { display: grid; gap: 8px; }
.sk-catbar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: #fffdf8; border: 1px solid #eadcc4; }
.sk-catbar img { width: 34px; height: 34px; }
.sk-catbar span { display: grid; gap: 5px; }
.sk-catbar strong { font-size: .84rem; }
.sk-catbar i { display: block; height: 8px; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--c1), var(--c2)); animation: sk-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.sk-catbar b { font-size: .86rem; white-space: nowrap; }
.sk-catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sk-catcard { position: relative; display: grid; justify-items: start; gap: 6px; padding: 14px; border: 2px solid color-mix(in srgb, var(--c1) 50%, #fff 50%); border-radius: 22px; font: inherit; text-align: start; cursor: pointer;
  background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--c1) 22%, #fff 78%)); box-shadow: 0 10px 20px color-mix(in srgb, var(--c2) 14%, transparent); overflow: hidden; }
.sk-catcard img { width: 64px; height: 64px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .16)); }
.sk-catcard strong { max-width: 100%; font-size: .95rem; line-height: 1.15; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.sk-catcard small { color: #6f6455; font-weight: 800; }
.sk-catcard .sk-badge { position: absolute; top: 12px; inset-inline-end: 12px; }

/* Écrans larges : deux colonnes pour les listes */
@media (min-width: 760px) {
  .sk-list, .sk-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Noms de produits en lettres latines dans l'interface arabe : chaque nom garde son propre sens d'écriture. */
.sk-row-main strong, .sk-move-main strong, .sk-hero-text h3, .sk-move-head strong, .sk-recent span, .sk-suggest strong, .sk-will, .sk-alert span { unicode-bidi: plaintext; }

/* Stock d'exemple (v43) */
.sk-demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: 16px; background: #f3edff; border: 2px solid #ddd0ff; color: #4a2fa0; font-size: .84rem; font-weight: 800; line-height: 1.3; }
.sk-demo-banner button { flex: none; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 12px; background: #fff; color: #4a2fa0; font: inherit; font-size: .8rem; font-weight: 900; box-shadow: 0 3px 8px rgba(74, 47, 160, .14); cursor: pointer; }
.sk-demo-link { display: block; width: 100%; min-height: 46px; margin-top: 16px; padding: 8px 14px; border: 2px dashed #cdbdf5; border-radius: 14px; background: #faf7ff; color: #4a2fa0; font: inherit; font-size: .88rem; font-weight: 900; cursor: pointer; }
.sk-welcome .sk-demo-link { margin-top: 18px; }
.sk-b-demo { background: #f3edff; color: #4a2fa0; }
