/* Gestionner — Historique des commandes */
.oh-card{--oh-plum:var(--g,#74105f);--oh-ok:#15845a;--oh-orange:#c77d0a;--oh-red:#c8392c;--oh-blue:#2f6fd6;--oh-teal:#1f8a8a;--oh-green:#128c4a;--oh-neutral:var(--muted,#72727e)}
body.dark .oh-card{--oh-plum:#e48ccc;--oh-ok:#53c690;--oh-orange:#e5ad4d;--oh-red:#f07c6d;--oh-blue:#6ea0f0;--oh-teal:#5cc2c2;--oh-green:#53c690}
.oh-plum{--c:var(--oh-plum)}.oh-ok{--c:var(--oh-ok)}.oh-orange{--c:var(--oh-orange)}.oh-red{--c:var(--oh-red)}.oh-blue{--c:var(--oh-blue)}.oh-teal{--c:var(--oh-teal)}.oh-green{--c:var(--oh-green)}.oh-neutral{--c:var(--oh-neutral)}

/* Bouton sur la carte (la carte reste comme avant) */
.oh-hbtn{justify-self:start;display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:999px;border:1px solid var(--line,#e7e3e8);background:var(--card,#fff);color:var(--g,#74105f);font-size:11.5px;font-weight:700;cursor:pointer;white-space:nowrap;width:max-content}
.oh-hbtn svg{width:12px;height:12px}
.oh-hbtn:hover{background:var(--soft,#f6edf5)}
body.dark .oh-hbtn{color:#e48ccc}
.oh-hint{margin:0;font-size:12.5px;color:var(--muted)}

/* Fenêtre au centre */
.oh-modal{position:fixed;inset:0;z-index:9600;background:rgba(30,10,28,.45);display:grid;place-items:center;padding:16px;--oh-plum:var(--g,#74105f);--oh-ok:#15845a;--oh-orange:#c77d0a;--oh-red:#c8392c;--oh-blue:#2f6fd6;--oh-teal:#1f8a8a;--oh-green:#128c4a;--oh-neutral:var(--muted,#72727e)}
body.dark .oh-modal{--oh-plum:#e48ccc;--oh-ok:#53c690;--oh-orange:#e5ad4d;--oh-red:#f07c6d;--oh-blue:#6ea0f0;--oh-teal:#5cc2c2;--oh-green:#53c690}
body.oh-lock{overflow:hidden}
.oh-mcard{width:min(620px,100%);max-height:min(86vh,760px);display:flex;flex-direction:column;background:var(--card,#fff);color:var(--text);border-radius:20px;border:1px solid var(--line,#e7e3e8);box-shadow:0 30px 80px -20px rgba(40,10,35,.5);overflow:hidden}
.oh-mcard>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 18px 12px;border-bottom:1px solid var(--line,#eee)}
.oh-mcard>header small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.12em;color:var(--oh-plum)}
.oh-mcard>header b{font-size:19px}
.oh-mbody{padding:14px 18px 16px;overflow:auto;display:grid;gap:8px;align-content:start}
.oh-x{border:0;background:var(--soft,#f6edf5);width:34px;height:34px;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.oh-x:hover{filter:brightness(.96)}.oh-x svg{width:17px;height:17px}

/* Parcours */
.oh-journey{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.oh-journey li{position:relative;display:grid;gap:1px;padding:8px 6px 6px;border-radius:10px;background:var(--soft,#f6edf5);text-align:center;min-width:0}
.oh-journey li b{font-size:11.5px;line-height:1.25}
.oh-journey li small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh-journey li em{font-style:normal;font-size:10.5px;font-weight:800;color:var(--oh-plum)}
.oh-jdot{width:9px;height:9px;border-radius:50%;margin:0 auto 2px;background:var(--line,#ddd)}
.oh-journey li.done .oh-jdot{background:var(--oh-plum)}
.oh-journey li.done.oh-j-delivered .oh-jdot{background:var(--oh-ok)}
.oh-journey li.done.oh-j-returned .oh-jdot,.oh-journey li.done.oh-j-cancelled .oh-jdot{background:var(--oh-red)}
.oh-journey li:not(.done){opacity:.55}

/* Filtres */
.oh-filters{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 2px}
.oh-filters button{border:0;background:var(--soft,#f6edf5);border-radius:9px;padding:6px 10px;font-weight:700;font-size:12px;color:var(--muted);cursor:pointer}
.oh-filters button.on{background:var(--oh-plum);color:#fff}

/* Fil complet */
.oh-tl{display:grid}
.oh-day{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:10px 0 6px}
.oh-ev{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;position:relative;padding-bottom:10px}
.oh-ev::before{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:var(--line,#eee)}
.oh-ev:last-child::before{display:none}
.oh-dot{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,var(--card,#fff));border:1px solid color-mix(in srgb,var(--c) 28%,transparent)}
.oh-dot svg{width:14px;height:14px}
.oh-tx{min-width:0}
.oh-h{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.oh-h b{font-size:13px;overflow-wrap:anywhere}
.oh-h time{font-size:11.5px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.oh-tx p{margin:1px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.oh-who{display:inline-block;margin-top:3px;font-size:11px;font-weight:700;background:var(--soft,#f6edf5);border-radius:7px;padding:1px 7px}
.oh-card .oh-body{display:grid;gap:4px}
@media (max-width:560px){.oh-journey{grid-template-columns:repeat(2,minmax(0,1fr))}}
