/* Espace du commerçant — Commander à table (13/11/2026, table.js) : mêmes couleurs que le reste (variables d'espace.css,
   clair et sombre). La TABLE se lit de loin : grande pastille en tête de chaque commande. */
.tb-large{width:min(600px,100% - 32px)}
@media (min-width:900px){.tb-large{width:min(1120px,100% - 48px)}.tb-large>.tete-page,.tb-large>.retour,.tb-large>.tb-onglets{max-width:none}}
.tb-onglets{margin:0 0 16px}
.tb-onglets ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;border-bottom:1px solid var(--filet);overflow-x:auto;scrollbar-width:none}
.tb-onglets ul::-webkit-scrollbar{display:none}
.tb-onglets a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:var(--gris);font-weight:600;text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;transition:color .15s,border-color .15s}
.tb-onglets a[aria-current=page]{color:var(--email);border-bottom-color:var(--email)}
.tb-onglets a:hover{color:var(--encre)}
.tb-message{border-left:4px solid var(--email);font-weight:600;color:var(--encre)}
.tb-vide{margin:4px 0;color:var(--gris)}
.tb-cmds{list-style:none;margin:0;padding:0;display:grid;gap:12px}
@media (min-width:900px){.tb-commandes .tb-cmds{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}}
.tb-cmd{border:1px solid var(--filet);border-left:6px solid var(--bord);border-radius:4px;background:var(--feuille);padding:12px 14px;transition:border-color .2s,box-shadow .2s}
.tb-cmd:focus{outline:3px solid var(--email);outline-offset:2px}
.tb-cmd.tb-a_valider{border-left-color:var(--ambre)}
.tb-cmd.tb-recue{border-left-color:var(--email)}
.tb-cmd.tb-en_preparation{border-left-color:var(--st-orange,#E5770F)}
.tb-cmd.tb-servie,.tb-cmd.tb-annulee{opacity:.85}
.tb-cmd.tb-neuve{box-shadow:0 0 0 3px var(--halo-email)}
.tb-cmd-tete{display:flex;align-items:flex-start;gap:12px;margin:0 0 8px}
.tb-table{flex:none;margin:0;min-width:56px;max-width:58%;padding:6px 12px;border-radius:4px;background:var(--email);color:var(--sur-email);font:600 1.45rem/1.1 var(--plaque);letter-spacing:.02em;text-align:center;overflow-wrap:anywhere;user-select:none;-webkit-user-select:none}
.tb-a_valider .tb-table{background:var(--ambre);color:var(--sur-email)}
.tb-cmd-info{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.tb-heure{margin:0;color:var(--gris);font-size:.92rem;font-variant-numeric:tabular-nums}
.tb-lignes{list-style:none;margin:0 0 8px;padding:0}
.tb-lignes li{padding:4px 0;border-bottom:1px solid var(--filet);font-size:1.06rem}
.tb-lignes li:last-child{border-bottom:0}
.tb-rem{display:block;margin:2px 0 0 1.6em;color:var(--rouge);font-weight:700;font-size:.95rem}
.tb-cmd .boutons{margin-top:6px}
.tb-cmd .bouton{min-height:48px;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.tb-cmd .bouton:active{transform:scale(.98)}
.tb-pause{margin:8px 0 0}.tb-pause .boutons{margin-top:4px}
.tb-finies summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;user-select:none;-webkit-user-select:none}
.tb-finies .tb-cmds{margin-top:10px}
.tb-tables{list-style:none;margin:0;padding:0}
.tb-tables>li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--filet);flex-wrap:wrap}
.tb-tables>li:last-child{border-bottom:0}
.tb-tables .gauche{display:flex;flex-direction:column;min-width:0}
.tb-tables .gauche span{color:var(--gris);font-size:.9rem}
.tb-gestes{display:flex;flex-wrap:wrap;gap:6px}
.tb-renommer{width:100%}
.tb-plages{display:grid;gap:8px;margin:0 0 8px}
.tb-plage{display:flex;align-items:flex-end;gap:10px}
.tb-plage .champ{flex:1;margin:0;max-width:9rem}
.tb-bloc .tb-cmds{margin-top:4px}
@media (prefers-reduced-motion:reduce){.tb-cmd,.tb-onglets a{transition:none}.tb-cmd .bouton:active{transform:none}}
/* Tables et QR (23/11) : une table à revoir (jamais scannée, à imprimer) se repère d'un coup d'œil ; pastille à côté du nom. */
.tb-tables .gauche strong{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tb-tables>li.tb-a-voir{box-shadow:inset 3px 0 0 var(--email);padding-left:10px}
/* Fiche « Pose des QR » : une étape par ligne, coche ronde, geste à droite ; empilé sur téléphone. */
.tb-pose{list-style:none;margin:0;padding:0;counter-reset:pose}
.tb-pose>li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--filet)}
.tb-pose>li:last-child{border-bottom:0}
.tb-pose .gauche{display:flex;flex-direction:column;min-width:0}
.tb-pose .gauche span{color:var(--gris);font-size:.9rem;overflow-wrap:anywhere}
.tb-pose-pt{width:28px;height:28px;border-radius:50%;border:2px solid var(--filet);display:grid;place-items:center;color:var(--feuille)}
.tb-pose-pt svg{width:16px;height:16px}
.tb-pose>li.fait .tb-pose-pt{background:var(--email);border-color:var(--email);color:var(--sur-email)}
.tb-case{margin:0;min-height:44px}
@media (max-width:560px){.tb-pose>li{grid-template-columns:32px minmax(0,1fr)}.tb-pose>li>.tb-case,.tb-pose>li>.mini-bouton{grid-column:2;justify-self:start}}
/* 23/11 : 4 onglets (« Pose des QR » en plus) : sur téléphone, ils se partagent la largeur au lieu de déborder (texte entier, 44 px). */
@media (max-width:480px){.tb-onglets ul{gap:0}.tb-onglets li{flex:1 1 auto}.tb-onglets a{justify-content:center;width:100%;padding:0 6px;font-size:.9rem;white-space:normal;text-align:center;line-height:1.15}}
