/* Onglet Commandes : demandes de gâteaux, fiche en dialogue, calendrier. Tout est limité à #commandes-view et #cmd-fiche. */
#commandes-view [hidden],#cmd-fiche [hidden]{display:none!important}
#commandes-view .cmd-outils{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}
#commandes-view .cmd-droite{display:flex;flex-wrap:wrap;gap:10px;margin-left:auto}
#commandes-view .cmd-filtres{display:flex;flex-wrap:wrap;gap:6px}
#commandes-view .cmd-filtres button{min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:14px;cursor:pointer}
#commandes-view .cmd-filtres button span{color:var(--muted);font-size:13px;margin-left:2px}
#commandes-view .cmd-filtres [aria-pressed=true]{background:var(--plum);border-color:var(--plum);color:#fff}#commandes-view .cmd-filtres [aria-pressed=true] span{color:inherit;opacity:.8}
#commandes-view .cmd-segment{display:flex;padding:3px;border:1px solid var(--line);border-radius:12px;background:#fff}
#commandes-view .cmd-segment button{min-height:38px;border:0;background:none;padding:0 14px;border-radius:9px;font:inherit;font-size:14px;cursor:pointer}
#commandes-view .cmd-segment [aria-pressed=true]{background:var(--plum);color:#fff}
#commandes-view .cmd-lien{min-height:46px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--plum);font:inherit;font-weight:600;cursor:pointer}
#commandes-view .cmd-lien:hover{background:var(--lilac)}
#cmd-statut{color:var(--muted);font-size:13px;margin:0 0 8px}#cmd-statut:empty{display:none}
#commandes-view .cmd-liste{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
#commandes-view .cmd-ligne{display:flex;width:100%;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
#commandes-view .cmd-ligne:last-child{border-bottom:0}#commandes-view .cmd-ligne:hover{background:var(--lilac)}
#commandes-view .cmd-qui small{color:var(--muted)}
#commandes-view .cmd-quoi{display:block;font-size:14px;color:var(--muted);margin-top:3px}#commandes-view .cmd-quoi b{color:var(--ink);font-weight:600}
.cmd-point{display:inline-block;width:9px;height:9px;border-radius:50%;background:#b8923f;margin-right:7px}
#commandes-view .cmd-vide{padding:32px 20px;text-align:center;color:var(--muted);margin:0}
.cmd-badge{flex-shrink:0;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.cmd-en_attente{background:#fbf4e4;color:#6a4f1f}.cmd-validee{background:#eaf5ee;color:#25613c}.cmd-refusee{background:#fbeeea;color:#823224}.cmd-retiree{background:var(--lilac);color:var(--plum)}
#commandes-view .cmd-calendrier{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.cmd-cal-tete{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-bottom:12px}.cmd-cal-tete h3{margin:0;font-size:20px;text-transform:capitalize;margin-right:auto}.cmd-cal-tete label{display:flex;gap:6px;align-items:center;font-size:14px;color:var(--muted)}
.cmd-cal-tete div{display:flex;gap:6px}.cmd-cal-tete button{min-height:40px;min-width:40px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit;cursor:pointer}
.cmd-grille{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.cmd-jour{background:var(--cream);padding:7px 4px;font-size:12px;text-align:center;color:var(--muted)}
.cmd-case{background:#fff;min-height:84px;padding:5px;display:flex;flex-direction:column;gap:3px;min-width:0}.cmd-case>span{font-size:12px;color:var(--muted)}.cmd-hors{background:#faf7fb}.cmd-auj>span{color:var(--plum);font-weight:700}
#commandes-view .cmd-ev{border:0;border-radius:5px;padding:3px 5px;font:inherit;font-size:12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#cmd-fiche{width:min(680px,calc(100vw - 24px))}
#cmd-fiche .cmd-fiche-tete{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}#cmd-fiche h2{margin-bottom:12px}#cmd-fiche h3{font-size:18px;margin:22px 0 10px}
#cmd-fiche .cmd-alerte{background:#fff0e7;color:#824126;border:1px solid #ebccb8;padding:12px 14px;border-radius:10px;margin:0 0 14px}
#cmd-fiche .cmd-client{display:flex;flex-wrap:wrap;gap:6px 18px;padding:12px 14px;background:var(--lilac);border-radius:10px;margin-bottom:14px}#cmd-fiche .cmd-client a{color:var(--plum)}
#cmd-fiche .cmd-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:0 0 12px}#cmd-fiche .cmd-details dt{font-size:12px;color:var(--muted)}#cmd-fiche .cmd-details dd{margin:3px 0 0;font-weight:600;overflow-wrap:anywhere}
#cmd-fiche .cmd-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;padding:12px 0;margin:0;border-block:1px solid var(--line)}
#cmd-photo{margin-top:10px;font-size:13px;color:var(--muted)}#cmd-fiche .cmd-image{display:block;max-width:100%;max-height:300px;border-radius:10px}
#cmd-fiche .cmd-prix{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:16px 0}#cmd-fiche .cmd-prix label{font-weight:600;font-size:14px}#cmd-fiche .cmd-prix input{flex:1;min-width:120px}
#cmd-fiche input:not([type=checkbox]),#cmd-fiche textarea,#cmd-fiche select{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;width:100%;box-sizing:border-box}
#cmd-fiche .cmd-prix input,#cmd-fiche .cmd-prix select{width:auto}
#cmd-fiche .cmd-info{font-size:12px;color:var(--muted);margin:-8px 0 14px}#cmd-fiche .cmd-info:empty{display:none}
#workspace #calendar .pi-carte.commande{border-left-color:#b8923f;background:#fbf6ea}.mj-type-commande{background:#fbf4e4;color:#6a4f1f}
#cmd-fiche .cmd-chiffrage{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:16px 0;background:#fff;min-width:0}#cmd-fiche .cmd-chiffrage legend{font-weight:600;padding:0 6px}
#cmd-fiche .cmd-c-ligne{display:grid;grid-template-columns:minmax(0,1fr) 110px minmax(70px,auto);gap:10px;align-items:center;margin-bottom:8px}#cmd-fiche .cmd-c-ligne label{font-size:14px}#cmd-fiche .cmd-c-ligne output{font-size:13px;color:var(--muted)}
#cmd-fiche .cmd-c-autre{grid-template-columns:70px minmax(0,1fr) minmax(0,1fr)}
#cmd-fiche .cmd-c-case{display:flex;gap:8px;align-items:center;font-size:14px;margin:6px 0 10px}
#cmd-fiche .cmd-c-total{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-top:1px solid var(--line);margin-top:6px}#cmd-fiche .cmd-c-total strong{font-size:24px;color:var(--plum)}
#cmd-fiche .cmd-chiffrage>button{padding:0 16px;cursor:pointer}#cmd-fiche .cmd-chiffrage .cmd-info{margin:8px 0 0}
@media(max-width:520px){#cmd-fiche .cmd-c-ligne{grid-template-columns:minmax(0,1fr) 100px}#cmd-fiche .cmd-c-ligne output{display:none}#cmd-fiche .cmd-c-autre{grid-template-columns:1fr}}
#cmd-fiche .cmd-a-regler{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#fbf4e4;color:#6a4f1f;font-size:14px}#cmd-fiche .cmd-a-regler strong{margin-right:6px}
#cmd-fiche .cmd-reseaux-action{margin:8px 0 18px}#cmd-fiche .cmd-reseaux-action button{padding:0 16px;cursor:pointer}
#cmd-fiche .cmd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}#cmd-fiche .cmd-actions button,#cmd-fiche .cmd-prix button,#cmd-fiche .cmd-copie button{padding:0 16px;cursor:pointer}
#cmd-fiche .cmd-danger{color:#823224}
#cmd-fiche .cmd-etiquette{display:block;font-size:14px;font-weight:600;margin-bottom:6px}#cmd-fiche .cmd-copie{display:flex;gap:8px}
#cmd-fiche .cmd-fil{display:flex;flex-direction:column;gap:8px;max-height:280px;overflow-y:auto;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--cream)}
#cmd-fiche .cmd-msg{margin:0;padding:9px 12px;border-radius:12px;max-width:85%;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}#cmd-fiche .cmd-msg small{display:block;font-size:11px;margin-top:4px;opacity:.7}
#cmd-fiche .cmd-msg-equipe{align-self:flex-end;background:var(--plum);color:#fff}#cmd-fiche .cmd-msg-client{align-self:flex-start;background:var(--lilac)}#cmd-fiche .cmd-msg-sys{align-self:center;max-width:100%;padding:2px 6px;font-size:13px;color:var(--muted);text-align:center}
#cmd-fiche .cmd-envoi{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:10px}#cmd-fiche .cmd-envoi label{grid-column:1/-1;font-size:14px;font-weight:600}#cmd-fiche .cmd-envoi button{padding:0 16px}
#cmd-fiche-statut{font-size:13px;color:var(--muted);margin:8px 0 0}#cmd-fiche-statut:empty{display:none}
.cmd-nav-compte{margin-left:auto;min-width:20px;padding:1px 6px;border-radius:999px;background:#b8923f;color:#fff;font-size:12px;font-weight:700;text-align:center}
@media(max-width:640px){.cmd-case{min-height:62px;padding:3px}#commandes-view .cmd-ev{font-size:11px;padding:2px 3px}#commandes-view .cmd-droite{margin-left:0;width:100%}#commandes-view .cmd-lien{flex:1}#cmd-fiche .cmd-envoi{grid-template-columns:1fr}}
