@font-face { font-family: "Rakkas"; src: url(../assets/fonts/rakkas-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Karla"; src: url(../assets/fonts/karla-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../assets/fonts/karla-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url(../assets/fonts/karla-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --chaux: #f6f2ec; --blanc: #fff; --primaire: #6b3f24; --primaire-fonce: #4f2e1a; --encre: #2b1e16; --doux: #6a5a4d;
  --safran: #c9973a; --safran-clair: #f6ead2; --second: #3f6b3a; --second-clair: color-mix(in srgb, var(--second) 13%, white); --harissa: #b3352b; --harissa-claire: #fbe7e5;
  --trait: #e3dacd; --nav: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--chaux); color: var(--encre); font: 400 16px/1.45 "Karla", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primaire); }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
h2 { font: 400 1.6rem/1.15 "Rakkas", serif; }
h3 { font-size: 1.05rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; cursor: pointer; background: var(--blanc); text-decoration: none; }
.btn-bleu { background: var(--primaire); color: #fff; }
.btn-menthe { background: var(--second); color: #fff; }
.btn-safran { background: var(--safran); color: var(--encre); }
.btn-rouge { background: var(--blanc); color: var(--harissa); border-color: var(--harissa-claire); }
.btn-contour { border-color: var(--trait); }
.btn-blanc { background: #fff; color: var(--encre); }
.btn-petit { min-height: 38px; padding: 6px 12px; font-size: .92rem; border-radius: 10px; }
.btn:disabled { opacity: .5; }
.btn-large { width: 100%; }

/* Connexion */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--primaire); }
.login-box { width: min(380px, 100%); background: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 10px; }
.login-logo { font: 400 2.4rem/1 "Rakkas", serif; color: var(--primaire); margin: 0; }
.login-garder { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .9rem; color: var(--doux); }
.login-garder input { width: auto; margin: 0; }
.login h1 { font-size: 1.1rem; margin-bottom: 8px; color: var(--doux); font-weight: 500; }
.err { color: var(--harissa); margin: 0; }

input[type=text], input[type=search], input[type=password], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: 10px; background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primaire); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primaire) 20%, transparent); }
label { font-weight: 700; display: block; margin-bottom: 4px; }

/* Structure */
.app { min-height: 100vh; padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 16px); }
.head { background: var(--primaire); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 14px; }
.head-top { display: flex; justify-content: space-between; align-items: center; }
.logo { font: 400 1.7rem/1 "Rakkas", serif; }
.live { font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7fe0b5; }
.live.off::before { background: var(--safran); }
.stats { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.stats div { display: grid; }
.stats b { font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { font-size: .85rem; color: color-mix(in srgb, var(--primaire) 18%, white); }
.stats .interrupteur { margin-left: auto; align-self: center; }

.bandeau { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--encre); color: #fff; flex-wrap: wrap; }
.bandeau-alerte { background: var(--harissa); position: sticky; top: 0; z-index: 10; font-weight: 700; animation: clignote 1s steps(2) infinite; }
.bandeau-info { background: var(--safran-clair); color: #6b4a09; }
@keyframes clignote { 50% { background: #8f241c; } }
@media (prefers-reduced-motion: reduce) { .bandeau-alerte { animation: none; } }

.vues { max-width: 1200px; margin: 0 auto; padding: 16px; }
.vue-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.groupe { margin-bottom: 26px; }
.groupe-titre { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 1rem; font-weight: 700; color: var(--doux); }
.groupe-titre b { background: var(--encre); color: #fff; border-radius: 999px; padding: 0 9px; font-size: .85rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.vide { color: var(--doux); font-style: italic; padding: 12px 0; }

/* Fiches commande / réservation */
.fiche { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 14px; display: grid; gap: 10px; scroll-margin-top: 80px; }
.fiche.nouvelle { border: 2px solid var(--harissa); box-shadow: 0 0 0 4px var(--harissa-claire); }
.fiche.flash { animation: flash 1.2s 2; }
@keyframes flash { 50% { background: var(--safran-clair); } }
.fiche-haut { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.num { font: 400 1.6rem/1 "Rakkas", serif; }
.quand { text-align: right; }
.quand b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.quand small { color: var(--doux); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--chaux); }
.badge-liv { background: var(--safran-clair); color: #6b4a09; }
.badge-surplace { background: #e8f1e4; color: #2f5a27; }
.chips-mode { margin-bottom: 6px; }
.badge-emp { background: color-mix(in srgb, var(--primaire) 12%, white); color: var(--primaire); }
.badge-ok { background: var(--second-clair); color: var(--second); }
.badge-ko { background: var(--harissa-claire); color: var(--harissa); }
.client { font-weight: 700; }
.client a { font-weight: 500; }
.adresse { font-size: .95rem; }
.articles { list-style: none; margin: 0; padding: 10px 0; border-top: 1px dashed var(--trait); border-bottom: 1px dashed var(--trait); }
.articles li { display: flex; gap: 8px; font-size: 1.05rem; padding: 2px 0; }
.articles li b { min-width: 28px; }
.note { background: var(--safran-clair); border-radius: 10px; padding: 8px 10px; font-weight: 500; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.delais { display: flex; gap: 6px; flex-wrap: wrap; }
.delais button { flex: 1; min-width: 56px; padding: 6px 4px; white-space: nowrap; }

/* Carte */
.rub { background: #fff; border: 1px solid var(--trait); border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
.rub-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: color-mix(in srgb, var(--primaire) 7%, white); }
.rub-head h3 { flex: 1; font: 400 1.35rem "Rakkas", serif; color: var(--primaire); }
.ligne-plat { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--trait); }
.ligne-plat img, .ligne-plat .sans-photo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--chaux); }
.ligne-plat .nom { font-weight: 700; }
.ligne-plat .nom small { display: block; font-weight: 400; color: var(--doux); }
.ligne-plat.off .nom { color: var(--doux); text-decoration: line-through; }
.icone { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--trait); background: #fff; cursor: pointer; display: inline-grid; place-items: center; font-size: 1rem; }

/* Interrupteur */
.interrupteur { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.interrupteur input { appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #c3cad6; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.interrupteur input:checked { background: var(--second); }
.interrupteur.verrouille { cursor: not-allowed; opacity: .6; }
.interrupteur.verrouille input { cursor: not-allowed; }
.interrupteur input:checked::after { transform: translateX(20px); }

/* Réglages */
.carte-reglage { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 16px; margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; overflow-wrap: anywhere; }
.carte-reglage h3 { font: 400 1.35rem "Rakkas", serif; color: var(--primaire); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jour { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--chaux); }
.jour .svc { display: grid; gap: 6px; }
.svc-ligne { display: flex; gap: 6px; align-items: center; }
.svc-nom { width: 34px; font-size: .85rem; color: var(--doux); flex: none; }
.jour input[type=time] { flex: 1; min-width: 0; width: auto; min-height: 40px; padding: 6px; }
@media (max-width: 420px) { .jour { grid-template-columns: 1fr; } }
.aide { color: var(--doux); font-size: .9rem; margin: 0; }
.reglages-cols { columns: 2 440px; column-gap: 14px; }
.reglages-cols > * { break-inside: avoid; }

/* Onglets */
.onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); }
.onglets button { position: relative; min-width: 0; overflow: hidden; height: var(--nav); font-size: clamp(.62rem, 2.7vw, .78rem) !important; white-space: nowrap; text-overflow: ellipsis; border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: .78rem; font-weight: 700; color: var(--doux); cursor: pointer; }
.onglets svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onglets .actif { color: var(--primaire); }
.pastille { position: absolute; top: 8px; left: calc(50% + 8px); background: var(--harissa); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: .75rem; display: grid; place-items: center; padding: 0 5px; }

@media (min-width: 900px) {
  .app { padding-bottom: 24px; padding-left: 96px; }
  .onglets { top: 0; right: auto; width: 96px; grid-template-columns: 1fr; grid-auto-rows: 84px; align-content: start; border-top: 0; border-right: 1px solid var(--trait); padding-top: 12px; }
  .onglets button { height: 84px; }
  .colonnes-cmd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  .colonnes-cmd .grille { grid-template-columns: 1fr; }
}

/* Modale */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(43, 30, 22, .5); }
#modale-form { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; overflow-wrap: anywhere; }
.modale-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); transform: translateX(-50%); background: var(--encre); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 50; font-weight: 500; max-width: calc(100% - 32px); }
.toast.erreur { background: var(--harissa); }

table.histo { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.histo th, .histo td { padding: 8px 10px; border-bottom: 1px solid var(--chaux); text-align: left; }
.histo td.r, .histo th.r { text-align: right; }

/* Clients */
.recherche { display: flex; gap: 8px; margin-bottom: 14px; }
.recherche input { flex: 1; }
.liste-clients { background: #fff; border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.ligne-client { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-top: 1px solid var(--trait); cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.ligne-client:first-child { border-top: 0; }
.ligne-client:hover { background: color-mix(in srgb, var(--primaire) 5%, white); }
.ligne-client .nom { font-weight: 700; }
.ligne-client small { color: var(--doux); grid-column: 1; }
.ligne-client .pts { grid-row: span 2; align-self: center; text-align: right; font-variant-numeric: tabular-nums; }
.ligne-client .pts b { display: block; font-size: 1.2rem; }
.ligne-client .pts.pret b { color: var(--second); }
.fiche-client-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.fiche-client-chiffres div { background: var(--chaux); border-radius: 12px; padding: 10px 4px; }
.fiche-client-chiffres b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.fiche-client-chiffres span { font-size: .8rem; color: var(--doux); }
.jauge { height: 8px; border-radius: 8px; background: var(--chaux); overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--second); }
.evts { list-style: none; margin: 0; padding: 0; max-height: 30vh; overflow: auto; border: 1px solid var(--trait); border-radius: 12px; }
.evts li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--chaux); font-size: .95rem; }
.evts small { display: block; color: var(--doux); }
.evts .plus { color: var(--second); font-weight: 700; }
.evts .moins { color: var(--harissa); font-weight: 700; }
.recompense { background: var(--second-clair); color: var(--second); border-radius: 12px; padding: 10px 12px; font-weight: 700; }

/* Carte : prix modifiable directement */
.prix-rapide { display: inline-flex; align-items: center; gap: 4px; }
.prix-rapide input { width: 84px; min-height: 38px; padding: 6px 8px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.prix-rapide input.ok { border-color: var(--second); box-shadow: 0 0 0 3px var(--second-clair); }
.ligne-plat { grid-template-columns: 48px 1fr auto auto auto; }
@media (max-width: 520px) {
  .ligne-plat { grid-template-columns: 44px 1fr auto; grid-template-areas: "img nom nom" "img prix dispo" ". . actions"; row-gap: 6px; }
  .ligne-plat > img, .ligne-plat > .sans-photo { grid-area: img; }
  .ligne-plat > .nom { grid-area: nom; }
  .ligne-plat > .prix-rapide { grid-area: prix; }
  .ligne-plat > .interrupteur { grid-area: dispo; justify-self: end; }
  .ligne-plat > .actions-plat { grid-area: actions; justify-self: end; }
}
.couleurs { display: flex; gap: 16px; flex-wrap: wrap; }
.couleurs label { display: grid; gap: 6px; }
.couleurs input[type=color] { width: 120px; height: 52px; border: 1.5px solid var(--trait); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }

/* Niveaux de fidélité */
.niv { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; background: #ece6dc; color: var(--encre); font-family: "Karla", sans-serif; }
.niv-silver { background: #e3e6ea; color: #41484f; }
.niv-gold { background: #f3e2b5; color: #6b4a09; }
.niveaux-admin { display: grid; gap: 8px; }
.niveau-ligne { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--chaux); }
.niveau-ligne label { font-weight: 500; font-size: .9rem; margin: 0; display: grid; gap: 4px; }
.unite { display: flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; }
.unite input { min-height: 40px; padding: 6px 8px; width: 100%; min-width: 0; }
@media (max-width: 480px) { .niveau-ligne { grid-template-columns: 1fr 1fr; } .niveau-ligne strong { grid-column: 1 / -1; } }

.pied-admin { max-width: 1200px; margin: 8px auto 0; padding: 18px 16px 8px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; color: var(--doux); font-size: .92rem; border-top: 1px solid var(--trait); }
.lien { background: none; border: 0; padding: 0; color: var(--primaire); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

@media (max-width: 400px) {
  .vues { padding: 12px; }
  .carte-reglage { padding: 14px; }
  .svc-ligne { flex-wrap: wrap; }
  .svc-nom { width: 100%; }
  .jour input[type=time] { flex: 1 1 90px; }
  .fiche { padding: 12px; }
}
.onglets .court { display: none; }
@media (max-width: 380px) { .onglets .long { display: none; } .onglets .court { display: inline; } }

.photo-slot { position: relative; width: 48px; height: 48px; cursor: pointer; display: block; margin: 0; }
.photo-slot img, .photo-slot .sans-photo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; }
.photo-slot .sans-photo { border: 2px dashed color-mix(in srgb, var(--primaire) 45%, white); color: var(--primaire); font-size: 1.5rem; font-weight: 700; background: color-mix(in srgb, var(--primaire) 6%, white); }
.photo-slot:hover .sans-photo, .photo-slot:focus-within .sans-photo { border-color: var(--primaire); }
.photo-slot:focus-within { outline: 3px solid var(--safran); outline-offset: 2px; border-radius: 10px; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
@media (max-width: 520px) { .ligne-plat > .photo-slot { grid-area: img; } }

/* Offres */
.segments-admin { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 4px; margin-bottom: 16px; max-width: 520px; }
.segments-admin button { min-height: 40px; border: 0; border-radius: 999px; background: none; font-weight: 700; color: var(--doux); cursor: pointer; }
.segments-admin button[aria-selected="true"] { background: var(--primaire); color: #fff; }
.offre-admin { margin-bottom: 12px; }
.offre-admin h3 { font: 400 1.3rem "Rakkas", serif; color: var(--primaire); margin-bottom: 4px; }
.offre-admin.off { opacity: .65; }
.badge-promo-a { background: var(--harissa-claire); color: var(--harissa); }
dialog { overflow: auto; }
.lbl { display: block; font-weight: 700; margin-bottom: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radios .radio { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border: 1.5px solid var(--trait); border-radius: 999px; font-weight: 500; cursor: pointer; }
.radios .radio:has(input:checked) { border-color: var(--primaire); background: color-mix(in srgb, var(--primaire) 8%, white); color: var(--primaire); }
.radios input { accent-color: var(--primaire); }
.plats-choix { max-height: 260px; overflow: auto; border: 1px solid var(--trait); border-radius: 12px; padding: 4px 10px; }
.plats-cat { border: 0; border-bottom: 1px solid var(--chaux); padding: 6px 0; margin: 0; }
.plats-cat legend { font-weight: 700; padding: 0; }
.plats-cat label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0 4px 6px; }
.plats-cat legend label { margin-left: 0; font-weight: 700; }
.jours-choix { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jours-choix label { display: grid; justify-items: center; gap: 2px; margin: 0; font-weight: 500; font-size: .85rem; padding: 6px 0; border: 1.5px solid var(--trait); border-radius: 10px; cursor: pointer; }
.jours-choix label:has(input:checked) { border-color: var(--primaire); background: color-mix(in srgb, var(--primaire) 8%, white); }
[data-for][hidden] { display: none !important; }
.articles li.art-supp { padding-left: 18px; font-size: .98rem; }
.lien-supp { display: block; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--second); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.lien-supp.aucun { color: var(--harissa); }
.bloc-liens { border-top: 1px dashed var(--trait); padding-top: 12px; }
.bloc-liens[hidden] { display: none; }
.supp-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.supp-choix label { display: flex; gap: 6px; align-items: center; font-weight: 500; border: 1px solid var(--trait); border-radius: 999px; padding: 6px 12px; background: var(--blanc); }
.supp-choix label:has(input:checked) { border-color: var(--second); background: var(--second-clair); }

/* Articles à vérifier (import par photo) */
.a-valider-bandeau { border: 1.5px solid var(--safran); background: var(--safran-clair); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.a-valider-bandeau p { margin: 0 0 8px; }
.a-valider-bandeau p strong { display: block; }
.a-valider-bandeau .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ligne-plat.a-valider { background: var(--safran-clair); }
.badge-avalider { background: var(--safran); color: #fff; }
.desc-courte { display: block; font-weight: 400; font-size: .85rem; color: var(--doux); overflow-wrap: anywhere; }
.btn-valider { margin-top: 6px; }
.depot-photos { display: grid; place-items: center; border: 2px dashed var(--trait); border-radius: 14px; padding: 22px 12px; cursor: pointer; font-weight: 700; color: var(--primaire); background: var(--blanc); text-align: center; }
.depot-photos:hover, .depot-photos:focus-within { border-color: var(--primaire); }
.depot-photos input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scan-vignettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scan-vignettes:empty { display: none; }
.scan-vignettes figure { position: relative; margin: 0; width: 72px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--trait); }
.scan-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.scan-vignettes .icone { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; min-height: 0; padding: 0; background: rgba(255,255,255,.92); }
#modale-form.occupe .modale-actions .btn-bleu { opacity: .6; }
#modale-form.occupe #scan-etat::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--primaire); border-right-color: transparent; border-radius: 50%; animation: tourne .8s linear infinite; vertical-align: -1px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.scan-liste { max-height: 56vh; overflow: auto; border: 1px solid var(--trait); border-radius: 12px; }
.scan-ligne { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px; border-top: 1px solid var(--trait); }
.scan-ligne:first-child { border-top: 0; }
.scan-ligne.decoche .scan-champs { opacity: .45; }
.scan-ligne.doute:not(.doublon) { background: var(--safran-clair); }
.scan-coche { padding-top: 10px; }
.scan-coche input { width: 20px; height: 20px; }
.scan-champs { display: grid; gap: 6px; min-width: 0; }
.scan-champs input[type=text], .scan-champs select { min-height: 40px; padding: 6px 10px; font-size: .95rem; width: 100%; min-width: 0; }
.scan-champs input[data-f=name] { font-weight: 700; }
.scan-deux { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; }
.scan-prix { display: flex; align-items: center; gap: 4px; font-weight: 400; margin: 0; }
.scan-note { color: var(--harissa); font-weight: 700; font-size: .8rem; }
.scan-ligne.doublon .scan-note { color: var(--doux); }

/* Coursier Uber sur la fiche commande */
.coursier-admin { border: 1px solid var(--trait); border-radius: 12px; padding: 8px 10px; margin: 8px 0; display: grid; gap: 4px; font-size: .95rem; }
.coursier-admin.actif { border-color: var(--second); background: var(--second-clair); }
.coursier-admin .c-ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.coursier-admin .c-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.coursier-admin .c-actions:empty { display: none; }
.c-erreur { color: var(--harissa); font-weight: 700; }

/* ---------- Codes couleur des commandes ---------- */
:root { --c-vert: #2b8a3e; --c-vert-clair: #e3f4e6; --c-rouge: #d6332a; --c-rouge-clair: #fde6e4; --c-orange: #e8660c; --c-orange-clair: #fff0e3; --c-bleu: #1c6fd6; --c-bleu-clair: #e5f0fd; --c-jaune: #f2b705; --c-jaune-clair: #fff6d6; }
.btn-azur { background: var(--c-bleu); color: #fff; }
.btn-vert { background: var(--c-vert); color: #fff; }
.btn-orange { background: var(--c-orange); color: #fff; }
.badge-paye { background: var(--c-vert); color: #fff; }
.badge-due { background: var(--c-rouge); color: #fff; }
.fiche { border-left-width: 6px; }
.fiche.etat-paye { border-left-color: var(--c-vert); }
.fiche.etat-due { border-left-color: var(--c-rouge); }
.fiche.etat-retard { border-left-color: var(--c-orange); background: linear-gradient(var(--c-orange-clair), #fff 70px); }
.fiche.etat-ko { border-left-color: var(--trait); opacity: .8; }
.fiche.nouvelle { border-left-width: 6px; }
.fiche-haut { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.fh-mode { display: grid; justify-items: center; font-size: 1.5rem; line-height: 1; color: var(--doux); }
.fh-mode small { font-size: .7rem; margin-top: 3px; }
.fh-id { display: grid; }
.fh-id b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.fh-client { font-weight: 700; font-size: 1.05rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-client small { display: block; font-weight: 400; font-size: .8rem; color: var(--doux); }
.quand small { display: block; font-size: .8rem; color: var(--doux); }
.t-retard { color: var(--c-orange) !important; }
.pastilles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--chaux); border-radius: 12px; padding: 8px; }
.pastilles small { display: block; font-size: .72rem; color: var(--doux); margin-bottom: 3px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--encre); white-space: nowrap; }
.p-vert { background: var(--c-vert); color: #fff; } .p-rouge { background: var(--c-rouge); color: #fff; } .p-orange { background: var(--c-orange); color: #fff; }
.p-bleu { background: var(--c-bleu); color: #fff; } .p-jaune { background: var(--c-jaune); color: #3b2c00; } .p-gris { background: var(--trait); color: var(--encre); }
.total.t-due { color: var(--c-rouge); }
.total.t-paye { color: var(--c-vert); }
.art-ic { margin-right: 5px; }
.btn-imprimer { min-height: 48px; }
.chips-cmd { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.chip-cmd { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 88px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--trait); background: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--encre); }
.chip-cmd b { font-size: 1.15rem; }
.chip-cmd.c-orange b { color: var(--c-orange); } .chip-cmd.c-rouge b { color: var(--c-rouge); }
.chip-cmd.actif { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
.chip-cmd.actif b { color: #fff; }
.cloture-bandeau { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--c-rouge-clair); border: 2px solid var(--c-rouge); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.cloture-bandeau strong { display: block; color: var(--c-rouge); }
.clo-liste { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.clo-ligne { border: 1px solid var(--trait); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.clo-ligne.fait { opacity: .6; }
.clo-info small { display: block; color: var(--doux); }
.clo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.clo-actions select { min-height: 38px; flex: 1 1 160px; }
.montant-encaisse { font-size: 2rem; font-weight: 700; text-align: center; background: var(--encre); color: #fff; border-radius: 12px; padding: 10px; margin: 0; font-variant-numeric: tabular-nums; }
.moyens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.moyen { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 12px; border: 2px solid var(--trait); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.moyen span { font-size: 1.6rem; }
.moyen.choisi { border-color: var(--c-orange); background: var(--c-orange-clair); }
.imp-choix { display: grid; gap: 8px; }
@media (max-width: 400px) { .fiche-haut { grid-template-columns: auto minmax(0, 1fr) auto; } .fh-client { grid-column: 1 / -1; order: 5; } }

/* Ticket imprimé (fenêtre d'impression) */
#ticket-print { display: none; }
@media print {
  @page { size: 80mm auto; margin: 2mm; }
  body.impression > *:not(#ticket-print) { display: none !important; }
  body.impression { background: #fff; }
  body.impression #ticket-print { display: block; width: 72mm; font: 10.5px/1.35 "Courier New", monospace; color: #000; }
  #ticket-print .ticket { page-break-after: always; break-after: page; }
  #ticket-print .tl { white-space: pre-wrap; }
  #ticket-print .t-c { text-align: center; }
  #ticket-print .t-bold { font-weight: 700; }
  #ticket-print .t-big { font-weight: 700; font-size: 21px; line-height: 1.2; }
}

/* Icônes */
.sans-photo.avec-icone { position: relative; font-size: 1.5rem; border-style: solid; }
.sans-photo.avec-icone i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primaire); color: #fff; font: 700 13px/18px sans-serif; text-align: center; font-style: normal; }
.ic-details { border: 1px solid var(--trait); border-radius: 12px; padding: 8px 10px; }
.ic-details summary { cursor: pointer; }
.icones { display: grid; gap: 8px; margin-top: 8px; }
.ic-actuelle { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#ic-apercu { width: 48px; height: 48px; border-radius: 12px; background: var(--chaux); display: grid; place-items: center; font-size: 1.8rem; }
.ic-groupe small { display: block; color: var(--doux); font-weight: 700; margin-bottom: 4px; }
.ic-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; }
.ic { height: 42px; border-radius: 10px; border: 1.5px solid var(--trait); background: #fff; font-size: 1.35rem; cursor: pointer; padding: 0; }
.ic.choisi { border-color: var(--c-orange); background: var(--c-orange-clair); box-shadow: 0 0 0 2px var(--c-orange-clair); }
.ic-autre { font-weight: 400; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.ic-autre input { max-width: 120px; min-height: 38px; }

/* Historique */
.histo-boutons { margin-top: 8px; }
.h-rep { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.histo .h-ligne { cursor: pointer; }
.histo .h-ligne:hover, .histo .h-ligne:focus { background: var(--chaux); outline: none; }
.histo a { font-weight: 700; }
.t-due { color: var(--c-rouge); font-weight: 700; }
.detail-cmd .fiche { border-left-width: 6px; }
.detail-cmd .fiche.nouvelle { box-shadow: none; }
@media (max-width: 600px) {
  .histo thead { display: none; }
  .histo, .histo tbody { display: block; width: 100%; }
  .histo tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num client total" "heure mode etat"; gap: 2px 10px; padding: 10px 8px; border-bottom: 1px solid var(--trait); }
  .histo td { padding: 0 !important; border: 0 !important; white-space: normal; }
  .histo td:nth-child(1) { grid-area: num; font-weight: 700; }
  .histo td:nth-child(2) { grid-area: heure; color: var(--doux); font-size: .9rem; }
  .histo td:nth-child(3) { grid-area: client; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .histo td:nth-child(4) { grid-area: mode; color: var(--doux); font-size: .9rem; }
  .histo td:nth-child(5) { grid-area: total; font-weight: 700; white-space: nowrap; }
  .histo td:nth-child(6) { grid-area: etat; text-align: right; font-size: .9rem; }
}
.sous-titre { margin: 14px 0 4px; font-size: 1rem; color: var(--doux); }
.bk-ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.bk-ul li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--trait); border-radius: 10px; padding: 8px 10px; }
.bk-ul span { overflow-wrap: anywhere; }
.bk-act { display: flex; gap: 6px; }

/* Démonstration */
.demo-login { background: #fff4d6; color: #5a3f00; border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; font-size: .9rem; }
.bandeau-info a { color: inherit; font-weight: 700; }
.demo-note { background: #fff4d6; color: #5a3f00; border-radius: 8px; padding: 8px 10px; font-size: .9rem; margin: 0 0 10px; }
.bandeau-alerte-douce { background: #fdf0dc; color: #6b3d00; }

/* Photos des plats : photothèque et association en rafale */
body.ph-ouvert { overflow: hidden; }
.ph { position: fixed; inset: 0; z-index: 60; background: var(--chaux); display: flex; flex-direction: column; }
.ph-tete { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--primaire); color: #fff; }
.ph-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-titre b { font: 400 1.25rem/1.1 "Rakkas", serif; }
.ph-titre span { font-size: .85rem; opacity: .85; }
.ph-tete .btn { min-height: 40px; }
.ph-fermer { background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; cursor: pointer; }
.ph-envoi { padding: 8px 14px; background: var(--safran-clair); font-size: .9rem; }
.ph-barre { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.ph-barre i { display: block; height: 100%; width: 0; background: var(--second); transition: width .3s; }
.ph-onglets { display: flex; gap: 6px; padding: 8px 14px 0; max-width: 1100px; width: 100%; margin: 0 auto; }
.ph-onglets button { border: 0; background: none; padding: 8px 12px; border-radius: 10px 10px 0 0; font-weight: 700; color: var(--doux); cursor: pointer; border-bottom: 3px solid transparent; }
.ph-onglets button.on { color: var(--primaire); border-bottom-color: var(--primaire); }
.ph-corps { flex: 1; overflow: auto; padding: 12px 14px 30px; max-width: 1100px; width: 100%; margin: 0 auto; }
.ph-plat { position: sticky; top: -12px; z-index: 2; display: grid; grid-template-columns: 76px 1fr; gap: 10px 14px; align-items: center; background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(43, 30, 22, .08); }
.ph-plat-img { width: 76px; height: 76px; border-radius: 12px; background: var(--chaux); display: grid; place-items: center; overflow: hidden; font-size: 2.2rem; }
.ph-plat-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-plat-txt { display: flex; flex-direction: column; min-width: 0; }
.ph-plat-txt small { color: var(--doux); }
.ph-plat-txt b { font-size: 1.2rem; line-height: 1.2; }
.ph-desc { color: var(--doux); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-prix { font-weight: 700; }
.ph-nav { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.ph-nav .btn { min-height: 40px; }
.ph-consigne { margin: 10px 2px; }
.ph-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-tuile { position: relative; padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 1; }
.ph-tuile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tuile:hover, .ph-tuile:focus-visible { border-color: var(--safran); }
.ph-tuile.suivante { border-color: var(--second); }
.ph-tuile.actuelle { border-color: var(--primaire); }
.ph-tuile.deja { opacity: .6; }
.ph-etiq { position: absolute; left: 6px; top: 6px; background: var(--second); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.ph-etiq-ok { background: var(--primaire); }
.ph-etiq-gris { background: rgba(43, 30, 22, .7); }
.ph-sep { grid-column: 1 / -1; margin: 10px 0 0; font-weight: 700; color: var(--doux); }
.ph-plein { grid-column: 1 / -1; }
.ph-avec { margin-top: 16px; }
.ph-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 16px; border: 2px dashed var(--trait); border-radius: 18px; background: #fff; cursor: pointer; margin-top: 10px; }
.ph-vide b { font-size: 1.15rem; }
.ph-vide span:not(.btn) { color: var(--doux); max-width: 460px; }
.ph-fin { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ph-bravo { font-size: 1.2rem; font-weight: 700; color: var(--second); margin: 0; }
.ph-biblio { position: relative; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--trait); }
.ph-biblio img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ph-biblio span { display: block; padding: 6px 8px; font-size: .82rem; overflow-wrap: anywhere; }
.ph-biblio span i { color: var(--doux); }
.ph-biblio .icone { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .9); }
.ph-depot { position: absolute; inset: 0; background: rgba(63, 107, 58, .85); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; z-index: 5; }
@media (max-width: 600px) {
  .ph-grille { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ph-tete .btn { padding: 8px 10px; font-size: .85rem; }
  .ph-plat { grid-template-columns: 60px 1fr; }
  .ph-plat-img { width: 60px; height: 60px; }
  .ph-etiq { font-size: .68rem; padding: 1px 6px; }
}

/* Réglages : onglets */
.reglages-onglets { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--trait); scrollbar-width: thin; }
.reglages-onglets button { flex: none; position: relative; border: 1.5px solid var(--trait); background: #fff; color: var(--encre); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.reglages-onglets button[aria-selected="true"] { background: var(--primaire); border-color: var(--primaire); color: #fff; }
.reglages-onglets .point-modif { display: none; position: absolute; top: 2px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--safran, #e0a526); }
.reglages-onglets button.a-modif .point-modif { display: block; }
.carte-reglage.modifie { border-color: var(--safran, #e0a526); box-shadow: 0 0 0 2px rgba(224, 165, 38, .25); }
.carte-reglage.modifie h3::after { content: " · non enregistré"; font: 600 .8rem system-ui, sans-serif; color: #8a5a00; }
.avance-note { background: #fdf0dc; color: #6b3d00; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
/* Appareils qui reçoivent les alertes */
.appareils { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.appareils li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--trait); border-radius: 12px; padding: 8px 10px; }
.appareils li.moi { border-color: var(--second); }
.appareils .app-nom small { display: block; }
.appareils .pastille { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--second-clair); color: var(--second); border-radius: 999px; padding: 1px 8px; }
.alerte-vide { color: #8a3b00; font-weight: 600; }
.bandeau-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
/* Carte : boutons libellés et prix plus lisibles */
.icone.icone-txt { width: auto; min-width: 38px; padding: 0 10px; gap: 6px; grid-auto-flow: column; }
.icone.icone-txt small { font-size: .8rem; font-weight: 600; }
.icone:disabled { opacity: .4; cursor: default; }
.prix-rapide { gap: 6px; }
.prix-rapide .prix-lbl { font-size: .75rem; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.prix-rapide input { width: 96px; font-size: 1.1rem; border: 1.5px solid var(--trait); border-radius: 10px; background: #fffdf8; }
.prix-rapide input:focus { border-color: var(--primaire); outline: none; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.prix-rapide .prix-eur { font-weight: 700; font-size: 1.05rem; }
.art-opts { display: block; color: var(--doux); font-size: .88rem; }
.art-opts b { color: var(--encre); }
/* Options et variantes d'un plat */
.opt-g { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; display: grid; gap: 8px; }
.opt-g legend { font-weight: 700; padding: 0 6px; }
.opt-g-ligne { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.opt-g-max input { width: 90px; margin-left: 6px; }
.opt-choix { display: grid; gap: 6px; }
.opt-c { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.opt-c-delta { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.opt-c-delta input { width: 76px; text-align: right; }
.opt-resume { color: var(--second) !important; font-weight: 600 !important; }

/* Statistiques */
.stats-barre { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.stats-barre .seg { display: inline-flex; border: 1.5px solid var(--trait); border-radius: 999px; overflow: hidden; }
.stats-barre .seg button { border: 0; background: #fff; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; color: var(--encre); }
.stats-barre .seg button[aria-pressed="true"] { background: var(--primaire); color: #fff; }
.stats-barre label { display: grid; gap: 2px; font-size: .8rem; color: var(--doux); }
.stats-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats-cartes div { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 12px 14px; }
.stats-cartes b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stats-cartes span { color: var(--doux); font-size: .85rem; }
.graph { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 8px 4px 0; border-bottom: 1.5px solid var(--trait); overflow-x: auto; }
.graph .barre { flex: 1 0 14px; min-width: 14px; background: var(--primaire); border-radius: 5px 5px 0 0; position: relative; min-height: 2px; }
.graph .barre:hover, .graph .barre:focus { background: var(--second); outline: none; }
.graph-lbl { display: flex; gap: 3px; padding: 4px 4px 0; overflow: hidden; font-size: .7rem; color: var(--doux); }
.graph-lbl span { flex: 1 0 14px; min-width: 14px; text-align: center; white-space: nowrap; overflow: hidden; }
.stats-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.stats-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 6px 8px; border-bottom: 1px solid var(--trait); text-align: right; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table .jauge-mini { display: block; height: 5px; border-radius: 3px; background: var(--second-clair); margin-top: 3px; }
.stats-table .jauge-mini i { display: block; height: 100%; border-radius: 3px; background: var(--second); }

/* Comptes de l'équipe (lot 6) */
.aide-login { font-size: .8rem; color: var(--gris, #6b6b6b); font-weight: 400; }
p.aide-login { margin: -4px 0 10px; }
.head-top .qui { margin-left: auto; margin-right: 10px; font-size: .78rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }
.ligne-plat.ligne-dispo { grid-template-columns: 1fr auto; grid-template-areas: none; }
.comptes li.off { opacity: .6; }
.evts.journal { max-height: 50vh; }
.evts.journal li { display: block; }
.mdp-provisoire code { display: inline-block; font-size: 1.3rem; padding: 8px 14px; background: #f4f1ea; border-radius: 8px; letter-spacing: .04em; user-select: all; }
