/* Options des plats et formules : fenêtre de choix (caisse), détail sur le ticket, réglages. */

/* ── Fenêtre de choix ── */
html body #menuComposerModal{padding:16px!important;align-items:center!important;justify-content:center!important;z-index:1200}
#menuComposerModal .mo-card{width:min(860px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;padding:0!important;overflow:hidden;border-radius:22px!important;box-shadow:0 30px 70px -20px rgba(11,26,51,.45)!important}
.mo-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px 14px;border-bottom:1px solid #e3e9f4}
.mo-head small{display:block;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--accent,#155eef)}
.mo-head h4{margin:2px 0 0!important;padding:0!important;border:0!important;font-size:22px;color:var(--ink,#0b1f44)}
.mo-price{padding:9px 15px;border-radius:15px;background:linear-gradient(135deg,var(--accent,#155eef),#14b8a6);color:#fff;font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.mo-body{flex:1;min-height:0;overflow:auto;padding:14px 22px;display:grid;gap:12px;background:#f7f9fd}
.mo-foot{display:flex;align-items:center;gap:10px;padding:12px 22px;border-top:1px solid #e3e9f4;background:#fff}
.mo-foot .mo-error{flex:1;color:#b42318;font-weight:700;font-size:13px}
.mo-foot button{min-height:52px;padding:0 22px;border-radius:14px;font-weight:800;font-size:15px}
.mo-foot .save{min-width:230px}
.mo-foot .save:disabled{opacity:.45;cursor:not-allowed}

.mo-group{background:#fff;border:1px solid #e3e9f4;border-radius:16px;padding:12px 14px}
.mo-group>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}
.mo-group>header strong{font-size:16px;color:var(--ink,#0b1f44)}
.mo-rule{font-size:12px;font-weight:700;color:#66758a;padding:3px 9px;border-radius:20px;background:#eef2f8;white-space:nowrap}
.mo-rule.mo-req{color:#9a3412;background:#ffedd5}
.mo-group:not(.mo-missing) .mo-rule.mo-req{color:#166534;background:#dcfce7}
.mo-group.mo-missing{border-color:#fdba74;box-shadow:0 0 0 2px #ffedd5}
.mo-chips{display:flex;flex-wrap:wrap;gap:8px}
.mo-chip{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;border-radius:13px;border:1.5px solid #d6deeb;background:#fff;color:var(--ink,#0b1f44);font-weight:700;font-size:15px;cursor:pointer;transition:background .12s,border-color .12s,transform .08s}
.mo-chip:active,.mo-tile:active{transform:scale(.97)}
.mo-chip em,.mo-tile em{font-style:normal;font-size:12.5px;font-weight:800;color:#0f766e;background:#ccfbf1;border-radius:8px;padding:2px 7px}
.mo-chip.on{background:var(--accent,#155eef);border-color:var(--accent,#155eef);color:#fff}
.mo-chip.on em,.mo-tile.on em{background:rgba(255,255,255,.22);color:#fff}
.mo-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:9px}
.mo-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;padding:10px;border-radius:14px;border:1.5px solid #d6deeb;background:#fff;color:var(--ink,#0b1f44);font-weight:800;font-size:14.5px;text-align:center;cursor:pointer}
.mo-tile .mo-img{width:100%;height:58px;border-radius:10px;background:center/cover no-repeat #eef2f8}
.mo-tile.on{background:var(--accent,#155eef);border-color:var(--accent,#155eef);color:#fff;box-shadow:0 8px 18px -10px var(--accent,#155eef)}
.mo-tile.on::after{content:"✓";position:absolute;top:6px;right:8px;font-size:14px}
.mo-nested{margin-top:10px;padding-left:12px;border-left:3px solid #dbe6ff}
.mo-nested>small{display:block;margin-bottom:5px;font-weight:800;color:#66758a;text-transform:uppercase;letter-spacing:.05em;font-size:10.5px}
.mo-nested .mo-group{border:0;padding:0;background:none;box-shadow:none}
.mo-note-input{width:100%;min-height:46px;border:1.5px solid #d6deeb;border-radius:12px;padding:8px 12px;font:inherit;font-size:15px}
@media (max-height:700px){.mo-tile .mo-img{display:none}.mo-tile{min-height:56px}.mo-chip{min-height:42px}}

/* ── Détail des choix sur le ticket (caisse) ── */
.tline-menu{display:flex;flex-wrap:wrap;gap:3px 6px;margin:2px 0 3px 2px;font-size:11.5px;line-height:1.35;color:#475467}
.tline-menu span{padding:1px 7px;border-radius:7px;background:#eef3fb}
.tline-menu span.mo-sub{background:#f5f7fb;color:#667085}
.tline-menu em{font-style:normal;font-weight:800;color:#0f766e}
.tline-menu .mo-line-note{background:#fff7e6;color:#9a3412}
.line-menu-edit,.ticket-line-controls .line-menu-edit{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:10px;border:1.5px solid #f0a33a;background:#fff4e3;color:#8a4500;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap;opacity:1;filter:none}
.line-menu-edit:active{transform:scale(.97)}
.tline-menu-editable{cursor:pointer;border-radius:8px}
.tline-menu-editable:hover,.tline-menu-editable:active{background:#fff4e3}

/* ── Réglages ── */
.mo-admin{display:grid;grid-template-columns:minmax(230px,320px) minmax(0,1fr);gap:16px;align-items:start}
.mo-admin-list{display:grid;gap:8px}
.mo-admin-card{display:grid;gap:3px;text-align:left;padding:12px 14px;border-radius:14px;border:1.5px solid #e3e9f4;background:#fff;cursor:pointer}
.mo-admin-card strong{font-size:15px;color:var(--ink,#0b1f44)}
.mo-admin-card span{font-size:12px;font-weight:700;color:var(--accent,#155eef)}
.mo-admin-card small{color:#66758a;font-size:11.5px}
.mo-admin-card.active{border-color:var(--accent,#155eef);box-shadow:0 0 0 3px #dbe6ff}
.mo-templates{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}
.mo-templates small{width:100%;color:#66758a;font-weight:700}
.mo-admin-edit{background:#fff;border:1px solid #e3e9f4;border-radius:18px;padding:16px}
.mo-admin-empty ol{margin:8px 0;padding-left:20px;line-height:1.6}
.mo-choice-head,.mo-choice-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 50px 36px;gap:8px;align-items:center}
.mo-choice-head{margin:14px 0 6px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#66758a}
.mo-choice-row{margin-bottom:6px}
.mo-choice-row>input,.mo-choice-row .kx-money input{min-height:40px}
.mo-active{display:flex;justify-content:center}
.mo-del{width:34px;height:34px;border-radius:10px;border:1px solid #f1c4c4;background:#fff5f5;color:#b42318;font-weight:800;cursor:pointer}
.mo-check{cursor:pointer;gap:6px}
.mo-check input{accent-color:var(--accent,#155eef)}
@media (max-width:900px){.mo-admin{grid-template-columns:1fr}}

/* ── Fiche article : formule ── */
.mo-seg{margin:6px 0}
.mo-steps{display:grid;gap:10px;margin:10px 0}
.mo-step-card{border:1px solid #e3e9f4;border-radius:14px;padding:10px 12px;background:#fbfcff}
.mo-step-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mo-step-top input[data-step-name]{flex:1;min-width:140px;min-height:38px;font-weight:700}
.mo-step-top label{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:#66758a}
.mo-step-top select{min-height:36px}
.mo-step-n{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent,#155eef);color:#fff;font-weight:800}
.mo-step-choices{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}
.mo-step-choice{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border-radius:11px;background:#fff;border:1px solid #d6deeb;font-size:13px}
.mo-step-choice .kx-money{width:86px}
.mo-step-choice .kx-money input{min-height:30px;padding:3px 6px;font-size:12.5px}
.mo-step-choice .mo-del{width:26px;height:26px}
.mo-step-choice.mo-missing{border-color:#fca5a5;color:#b42318}
.mo-step-add{display:flex;gap:8px;flex-wrap:wrap}
.mo-step-add select{flex:1;min-width:180px;min-height:38px}

/* Champs compacts (le style « gros prix » des fiches articles ne convient pas ici) */
html body .mo-choice-row .kx-money input,html body .mo-step-choice .kx-money input{height:40px!important;padding:0 26px 0 10px!important;font-size:15px!important;font-weight:700!important;border-radius:10px!important}
html body .mo-step-choice .kx-money input{height:32px!important;font-size:13px!important}
html body .mo-choice-row .kx-money span,html body .mo-step-choice .kx-money span{right:9px;font-size:13px}
.mo-choice-row>input,.mo-step-top input[data-step-name]{border:1.5px solid #d6deeb;border-radius:10px;padding:0 10px;font:inherit;font-size:15px;background:#fff}
