/*
 * Mode simple (chauffeurs, livreurs, agents KM36, Direction), page de suivi client
 * et fenêtres partagées avec l'écran complet (montant, confirmation, motif).
 * Lisible en plein soleil : fond clair, texte vert très foncé, gros chiffres, boutons d'au moins 64 px.
 * Identité GOMBO GO (couleurs du logo, brand/logo-gombogo-source.png) et une couleur = un sens, toujours avec une
 * icône et une forme :
 *   orange du « G » = faire (action principale), vert foncé de « GOMBO » = aller / voir (et les textes),
 *   vert gombo = c'est bon (réussi, payé, livré), jaune doré = argent à prendre / attendre, rouge = problème.
 * Les variables --t-blue* gardent leur nom d'origine : elles portent maintenant le vert foncé « aller / voir ».
 */
:root {
  --t-bg: #f1f4ef;
  --t-card: #ffffff;
  --t-ink: #10261a;
  --t-muted: #45524a;
  --t-line: #cdd6cc;
  /* orange du « G » : actions principales. Boutons un peu plus foncés que le logo (#f28c28) pour que le texte
     blanc gras (au moins 24 px) reste lisible au soleil (contraste 3,7:1, comme avant) ; liserés à l'orange exact. */
  --t-brand: #cc6a0e;
  --t-brand-dark: #8a4307;
  --t-brand-line: #f28c28;
  --t-brand-soft: #fff4e8;
  /* vert foncé de « GOMBO » : aller / voir */
  --t-blue: #205231;
  --t-blue-dark: #14361f;
  --t-blue-soft: #edf5ee;
  /* sens : c'est bon (vert du gombo, assombri pour le texte blanc) / argent et attente / problème */
  --t-go: #46801d;
  --t-go-dark: #2f5f12;
  --t-go-soft: #eef6e4;
  --t-warn: #a16207;
  --t-warn-ink: #713f12;
  --t-warn-bg: #fff8e1;
  --t-stop: #b91c1c;
  --t-stop-bg: #fdecec;
  --t-wait: #a16207;
  --t-radius: 20px;
}

body.t-on { overflow: hidden; }

.t-root {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--t-bg); color: var(--t-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 19px; line-height: 1.35;
  padding-bottom: 140px;
}
.t-root[hidden], .t-hidden { display: none !important; }
.t-root *, .t-overlay * { box-sizing: border-box; }
.t-wrap { max-width: 560px; margin: 0 auto; padding: 0 14px; }

/* Barre du haut */
.t-top {
  position: sticky; top: 0; z-index: 2; background: var(--t-card); border-bottom: 4px solid var(--t-brand-line);
  box-shadow: 0 2px 10px rgba(16, 38, 26, .10);
}
.t-top .t-wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.t-avatar {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--t-blue-soft); border: 3px solid var(--t-blue);
}
.t-who { flex: 1; min-width: 0; }
.t-who b { display: block; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.t-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 17px;
  border: 2px solid currentColor; background: #fff; cursor: pointer;
}
.t-pill.ok { color: var(--t-go); }
.t-pill.off { color: var(--t-wait); background: var(--t-warn-bg); }
.t-pill.wait { color: var(--t-wait); background: var(--t-warn-bg); }
.t-pill.bad { color: #fff; background: var(--t-stop); border-color: var(--t-stop); }

/* Boutons */
.t-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 16px;
  border: 0; border-radius: 18px; font-size: 24px; font-weight: 800; color: #fff; background: var(--t-brand); cursor: pointer;
  box-shadow: 0 4px 0 var(--t-brand-dark); text-decoration: none; touch-action: manipulation;
}
.t-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--t-brand-dark); }
.t-btn .t-ico { font-size: 36px; line-height: 1; }
.t-btn.blue { background: var(--t-blue); box-shadow: 0 4px 0 var(--t-blue-dark); }
.t-btn.warn { background: var(--t-warn); box-shadow: 0 4px 0 var(--t-warn-ink); }
.t-btn.stop { background: var(--t-stop-bg); color: var(--t-stop); border: 3px solid var(--t-stop); box-shadow: none; min-height: 64px; font-size: 21px; }
.t-btn.ghost { background: #fff; color: var(--t-ink); border: 3px solid var(--t-line); box-shadow: none; min-height: 64px; font-size: 20px; }
.t-btn[disabled] { opacity: .45; pointer-events: none; }
.t-btn:focus-visible, .t-round:focus-visible, .t-key:focus-visible, .t-tile:focus-visible, .t-pill:focus-visible {
  outline: 4px solid var(--t-brand-line); outline-offset: 3px;
}

.t-round {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; border: 3px solid var(--t-line); background: #fff;
  font-size: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; color: var(--t-ink);
}
.t-round.call { border-color: var(--t-go); background: var(--t-go-soft); }
.t-round.map { border-color: var(--t-blue); background: var(--t-blue-soft); }
.t-round.voice { border-color: #7c3aed; background: #f1ebff; }

/* Sections et cartes */
.t-section { margin-top: 18px; }
.t-section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; margin: 0 0 10px; }
.t-count {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; background: var(--t-blue-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-variant-numeric: tabular-nums;
}
.t-card {
  position: relative;
  background: var(--t-card); border-radius: var(--t-radius); border: 3px solid var(--t-line); padding: 14px; margin-bottom: 14px;
  display: grid; gap: 12px; box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
}
.t-card.go { border-color: var(--t-brand-line); }
.t-card.out { border-color: var(--t-blue); }
.t-card.pending { border-style: dashed; border-color: var(--t-wait); }
.t-head { display: flex; gap: 12px; align-items: center; }
.t-photo {
  width: 96px; height: 96px; flex: 0 0 96px; border-radius: 16px; object-fit: cover; background: #f1f5f9; border: 2px solid var(--t-line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.t-photo svg { width: 80%; height: 80%; }
.t-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.t-code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; color: var(--t-muted); }
.t-name { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.t-place { font-size: 17px; color: var(--t-muted); overflow-wrap: anywhere; }
.t-actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-card > * { min-width: 0; }
.t-actions-row .t-btn { flex: 1; }
.t-money {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--t-warn-bg);
  border: 2px solid var(--t-warn); color: var(--t-warn-ink); font-weight: 900; font-size: 28px; font-variant-numeric: tabular-nums;
}
.t-money.paid { background: var(--t-go-soft); border-color: var(--t-go); color: var(--t-go-dark); font-size: 22px; }
.t-badge-wait {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--t-wait); background: var(--t-warn-bg);
  border: 2px dashed var(--t-wait); border-radius: 12px; padding: 4px 10px; font-size: 17px;
}
.t-dots { display: inline-flex; gap: 4px; font-size: 22px; }
.t-empty {
  text-align: center; padding: 26px 14px; background: var(--t-card); border-radius: var(--t-radius); border: 3px dashed var(--t-line);
  font-size: 44px;
}
.t-empty p { font-size: 19px; color: var(--t-muted); margin: 6px 0 0; }

/* Frise du colis : bus -> dépôt -> moto -> maison */
.t-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.t-step {
  text-align: center; padding: 8px 2px; border-radius: 14px; border: 2px solid var(--t-line); background: #f8fafc; font-size: 30px; opacity: .45;
}
.t-step.done { opacity: .8; border-color: var(--t-go); background: var(--t-go-soft); }
.t-step.now { opacity: 1; border-width: 4px; border-color: var(--t-blue); background: var(--t-blue-soft); transform: scale(1.06); }

/* Jauge d'argent */
.t-gauge { background: var(--t-card); border-radius: var(--t-radius); border: 3px solid var(--t-line); padding: 12px 14px; margin-top: 14px; }
.t-gauge-row { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.t-bar { height: 22px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 8px; border: 2px solid var(--t-line); }
.t-bar > i { display: block; height: 100%; background: var(--t-go); }
.t-gauge.mid .t-bar > i { background: #ca8a04; }
.t-gauge.high { border-color: var(--t-stop); background: var(--t-stop-bg); }
.t-gauge.high .t-bar > i { background: var(--t-stop); }

/* Fenêtres plein écran */
.t-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 32, 19, .58); display: flex; align-items: flex-end; justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--t-ink);
}
.t-sheet {
  width: 100%; max-width: 560px; max-height: 96vh; overflow-y: auto; background: var(--t-card); border-radius: 26px 26px 0 0;
  padding: 18px 16px 24px; display: grid; gap: 14px;
}
.t-sheet-head { display: flex; align-items: center; gap: 12px; }
.t-sheet-head .t-big-ico { font-size: 48px; }
.t-sheet-head h2 { flex: 1; margin: 0; font-size: 24px; font-weight: 900; }
.t-feedback {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.t-feedback.ok { background: var(--t-go); }
.t-feedback.err { background: var(--t-stop); }
.t-feedback.wait { background: var(--t-wait); }
.t-feedback .t-huge { font-size: 132px; line-height: 1; }
.t-feedback .t-say { font-size: 30px; font-weight: 900; max-width: 520px; }
.t-feedback .t-small { font-size: 16px; opacity: .92; max-width: 520px; overflow-wrap: anywhere; }
.t-feedback .t-btn { max-width: 420px; background: #fff; color: var(--t-ink); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.t-feedback .t-btn.go { background: #25d366; color: #052e16; }

/* Pavé numérique */
.t-display {
  display: flex; justify-content: center; gap: 8px; font-size: 40px; font-weight: 900; font-family: ui-monospace, Menlo, monospace;
  font-variant-numeric: tabular-nums; min-height: 64px; align-items: center; flex-wrap: wrap;
}
.t-box {
  width: 60px; height: 72px; border-radius: 14px; border: 3px solid var(--t-line); display: inline-flex; align-items: center; justify-content: center; background: #f8fafc;
}
.t-box.filled { border-color: var(--t-blue); background: var(--t-blue-soft); }
.t-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.t-key {
  min-height: 72px; border-radius: 18px; border: 3px solid var(--t-line); background: #fff; font-size: 36px; font-weight: 900; color: var(--t-ink);
  cursor: pointer; touch-action: manipulation; font-variant-numeric: tabular-nums;
}
.t-key:active { background: #e2e8f0; }
.t-key.del { font-size: 30px; }
.t-key.ok { background: var(--t-brand); border-color: var(--t-brand); color: #fff; }
.t-key.ok[disabled] { opacity: .4; }

/* Tuiles de choix (taille, montant, raison) */
.t-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.t-tile {
  min-height: 132px; border-radius: 18px; border: 3px solid var(--t-line); background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; font-size: 22px; font-weight: 900; cursor: pointer; color: var(--t-ink);
  font-variant-numeric: tabular-nums; padding: 8px;
}
.t-tile.sel { border-color: var(--t-brand-line); background: var(--t-brand-soft); box-shadow: inset 0 0 0 3px var(--t-brand-line); }
.t-tile .t-tile-ico { font-size: 48px; line-height: 1; }
.t-tile small { font-size: 17px; color: var(--t-muted); font-weight: 700; }
.t-box-svg { display: flex; align-items: flex-end; justify-content: center; height: 72px; }

/* Assistant (étapes) */
.t-progress { display: flex; gap: 8px; justify-content: center; }
.t-progress i { width: 18px; height: 18px; border-radius: 50%; background: #cbd5e1; display: block; }
.t-progress i.on { background: var(--t-blue); }
.t-preview { width: 100%; max-height: 260px; object-fit: contain; border-radius: 16px; border: 3px solid var(--t-line); background: #f8fafc; }
.t-summary { display: grid; gap: 10px; }
.t-summary-row { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t-summary-row .t-ico { font-size: 34px; width: 44px; text-align: center; }
.t-total { font-size: 34px; font-weight: 900; color: var(--t-blue-dark); }
.t-note { font-size: 16px; color: var(--t-muted); }

/* Profils, langues, menu */
.t-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.t-person {
  border: 3px solid var(--t-line); border-radius: 18px; background: #fff; padding: 12px 8px; text-align: center; cursor: pointer;
  font-size: 18px; font-weight: 800; color: var(--t-ink);
}
.t-person .t-avatar { margin: 0 auto 6px; width: 72px; height: 72px; font-size: 40px; }
.t-lang { color: #fff; border: 0; }

/* Scanner */
.t-video { width: 100%; border-radius: 18px; background: #000; max-height: 60vh; object-fit: cover; }

/* Message bref en bas d'écran */
.t-toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 65; width: calc(100% - 28px); max-width: 540px;
  background: var(--t-ink); color: #fff; border-radius: 18px; padding: 14px 16px; font-size: 18px; font-weight: 700; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.t-toast .t-ico { font-size: 34px; }
.t-toast.bad { background: var(--t-stop); }
.t-toast.ok { background: var(--t-go); }
.t-toast.wait { background: var(--t-wait); }

.t-flash { animation: t-flash 1.2s ease-in-out 2; }
@keyframes t-flash { 50% { box-shadow: 0 0 0 8px var(--t-brand-line); } }

/* Agent KM36 / Direction : tableau de bord en images, cartes en grille sur grand écran */
.t-root.t-staff .t-wrap { max-width: 1120px; }
.t-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
.t-grid > .t-card { margin-bottom: 0; }
.t-grid.t-fit { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.t-row2 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.t-tasks { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.t-task { position: relative; min-height: 124px; }
.t-task .t-count { position: absolute; top: 8px; right: 8px; }
.t-task.has { border-color: var(--t-brand-line); background: var(--t-brand-soft); }
.t-task.has.warn { border-color: var(--t-stop); background: var(--t-stop-bg); }
.t-count.zero { background: #cbd5e1; color: var(--t-muted); }
.t-task.t-new { background: var(--t-brand); border-color: var(--t-brand-dark); color: #fff; box-shadow: 0 4px 0 var(--t-brand-dark); }
.t-task.t-find { background: var(--t-blue); border-color: var(--t-blue-dark); color: #fff; box-shadow: 0 4px 0 var(--t-blue-dark); }
.t-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.t-kpi {
  background: var(--t-card); border: 3px solid var(--t-line); border-radius: 18px; padding: 10px 12px; display: grid; gap: 2px;
  text-align: left; font: inherit; color: var(--t-ink); cursor: default;
}
button.t-kpi { cursor: pointer; }
.t-kpi b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.t-kpi small { font-size: 14px; color: var(--t-muted); font-weight: 700; }
@media (min-width: 700px) { .t-kpi b { font-size: 28px; } .t-kpi small { font-size: 16px; } }
.t-kpi-ico { font-size: 30px; line-height: 1; }
.t-kpi.bad { border-color: var(--t-stop); background: var(--t-stop-bg); }
.t-viewhead { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; }
.t-viewhead .t-big-ico { font-size: 34px; }
.t-viewhead .t-round { width: 56px; height: 56px; flex-basis: 56px; font-size: 26px; }
.t-viewhead h2 { flex: 1; min-width: 0; margin: 0; font-size: 23px; font-weight: 900; line-height: 1.15; overflow-wrap: break-word; }
@media (min-width: 700px) { .t-viewhead h2 { font-size: 28px; } .t-viewhead .t-big-ico { font-size: 40px; } }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 800; font-size: 16px; border-radius: 12px;
  padding: 3px 10px; border: 2px solid var(--t-line); background: #f8fafc; color: var(--t-ink);
}
.t-chip.warn { color: var(--t-warn-ink); border-color: var(--t-wait); background: var(--t-warn-bg); }
.t-chip.bad { color: var(--t-stop); border-color: var(--t-stop); background: var(--t-stop-bg); }
.t-chip.info { color: var(--t-blue-dark); border-color: var(--t-blue); background: var(--t-blue-soft); }
.t-card.bad { border-color: var(--t-stop); }
.t-card .t-gauge { margin-top: 0; }
.t-root.t-staff .t-card .t-round { width: 56px; height: 56px; flex-basis: 56px; font-size: 26px; }
.t-btn.danger { background: var(--t-stop); box-shadow: 0 4px 0 #7f1d1d; }
.t-btn.wa { background: #25d366; color: #052e16; box-shadow: 0 4px 0 #128c4b; min-height: 64px; font-size: 21px; }
.t-person.sel { border-color: var(--t-brand-line); background: var(--t-brand-soft); box-shadow: inset 0 0 0 3px var(--t-brand-line); }
.t-person[disabled] { opacity: .55; cursor: not-allowed; }
.t-tile[disabled] { opacity: .55; cursor: not-allowed; background: #f1f5f9; }
.t-why { font-size: 15px; color: var(--t-stop); font-weight: 800; margin-top: 4px; }
.t-key.wide { grid-column: 1 / -1; }
.t-size-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 28px; margin-left: 14px; color: var(--t-muted); }
.t-size-chip svg { width: 44px; height: 44px; }
.t-confirm-text { font-size: 20px; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
/* Comptes : règles de garde, paiements reçus, mouvements d'argent */
.t-rule { display: flex; align-items: center; gap: 12px; }
.t-rule > .t-ico { font-size: 34px; width: 44px; text-align: center; }
.t-rule b { display: block; font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.t-rule small { display: block; font-size: 17px; color: var(--t-muted); font-weight: 700; }
.t-rule .t-round { margin-left: auto; }
.t-list { display: grid; gap: 8px; }
.t-line {
  display: flex; align-items: center; gap: 12px; background: var(--t-card); border: 2px solid var(--t-line); border-radius: 16px; padding: 10px 12px;
}
.t-line > .t-ico { font-size: 30px; width: 38px; text-align: center; flex: 0 0 38px; }
.t-line.wait { border-color: var(--t-wait); background: var(--t-warn-bg); }
/* Paiement Orange Money pas encore relié : toute la ligne se touche */
button.t-line { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 64px; }
button.t-line:active { transform: scale(.99); }
button.t-line .t-line-main small { color: var(--t-warn-ink); font-weight: 800; }
.t-line-main { flex: 1; min-width: 0; }
.t-line-main b { display: block; font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.t-line-main small { display: block; font-size: 16px; color: var(--t-muted); font-weight: 600; overflow-wrap: anywhere; }
.t-when { font-size: 15px; color: var(--t-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-task.t-acc { background: var(--t-blue-soft); border-color: var(--t-blue); }
/* Champs texte (facultatifs) des assistants */
.t-field { display: grid; gap: 6px; font-size: 18px; font-weight: 800; }
.t-input {
  width: 100%; min-height: 60px; font: inherit; font-size: 22px; font-weight: 700; padding: 10px 14px; color: var(--t-ink);
  border: 3px solid var(--t-line); border-radius: 14px; background: #fff;
}
.t-input:focus { border-color: var(--t-brand-line); outline: none; box-shadow: 0 0 0 4px #fdd2a8; }
.t-btn[disabled] { opacity: .45; }
.t-feedback .t-money { background: #fff; color: var(--t-ink); border-color: #fff; max-width: 420px; width: 100%; }

/* Bouton pour revenir au mode simple depuis l'écran complet */
.t-fab {
  position: fixed; right: 14px; bottom: 14px; z-index: 44; border: 0; border-radius: 999px; padding: 14px 20px; font-size: 20px; font-weight: 900;
  background: var(--t-brand); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .t-flash { animation: none; outline: 6px solid var(--t-brand-line); }
  .t-btn:active { transform: none; }
}

/* Connexion : personnes de ce téléphone (bouton ✕ pour en retirer une) et « Nouvelle personne » */
.t-person-wrap { position: relative; display: grid; }
.t-person-wrap > .t-person { width: 100%; }
.t-forget {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #cbd5e1; background: #fff; color: #475569; font-size: 16px; font-weight: 800; cursor: pointer;
}
.t-person-new { border-style: dashed; }

/* Logo GOMBO GO (généré par scripts/gen_brand_assets.py, fond transparent, pour fonds clairs) : en ligne
   (static/img/logo-gombogo-h.webp) dans les barres du haut, la page client et l'étiquette ; officiel (empilé,
   static/img/logo-gombogo.webp) sur l'écran de connexion. */
.t-brand { display: flex; justify-content: center; padding: 6px 16px 0; }
.t-brand-logo { display: block; height: 44px; width: auto; }
.t-login-logo { display: block; width: min(220px, 60%); height: auto; margin: 4px auto 0; }
.ge-header-brand { margin: 0; line-height: 0; }
.ge-header-logo { display: block; height: 56px; width: auto; }
.ge-label-logo { display: block; height: 40px; width: auto; }
.s-logo { display: block; height: 56px; width: auto; margin-bottom: 4px; }

/* Tournées : carte (static/js/map.js), numéros d'arrêt, ordre de passage */
.t-map { height: 52vh; min-height: 300px; border-radius: var(--t-radius); border: 3px solid var(--t-line); overflow: hidden;
  background: var(--t-blue-soft); margin: 10px 0; position: relative; z-index: 0; }
.t-map.small { height: 230px; min-height: 0; margin: 0; }
.t-map-svg svg { display: block; width: 100%; height: 100%; }
.t-map-note { position: absolute; left: 8px; bottom: 8px; background: #fff; border-radius: 10px; padding: 2px 8px; font-size: 14px; font-weight: 700; }
.t-pin-wrap { background: none; border: 0; }
.t-pin { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--t-brand); color: #fff; font: 900 20px/1 system-ui, sans-serif; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(10, 32, 19, .45); }
.t-pin.done { background: var(--t-go); }
.t-pin.now { outline: 5px solid var(--t-blue); outline-offset: 2px; }
.t-pin.express::after { content: "⚡"; position: absolute; top: -10px; right: -10px; font-size: 16px; }
.t-hub-pin, .t-me-pin { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--t-blue-dark); font-size: 26px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(10, 32, 19, .45); }
.t-me-pin { border-radius: 50%; background: #fff; border-color: var(--t-blue); }
.t-map.t-map-blank.leaflet-container { background: var(--t-blue-soft); }
.t-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-weight: 800; font-size: 18px; color: var(--t-blue-dark); margin: 4px 2px 10px; }
.t-legend span { font-weight: 700; color: var(--t-muted); }
.t-order { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 999px; background: var(--t-brand); color: #fff; font-weight: 900; font-size: 18px; flex: 0 0 auto; }
.t-order.big { min-width: 44px; height: 44px; font-size: 24px; margin-left: 6px; }
.t-order.corner { position: absolute; top: -12px; left: -10px; z-index: 1; min-width: 40px; height: 40px; font-size: 20px;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(10, 32, 19, .35); }
.t-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-stops li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #f8fafc; border: 2px solid var(--t-line); }
.t-stops li b { display: block; }
.t-stops li small { color: var(--t-muted); font-size: 15px; }
.t-stops li.done { opacity: .6; }
.t-stops li.done .t-order { background: var(--t-go); }
.t-route-btn { justify-content: flex-start; text-align: left; margin-bottom: 14px; }
.t-route-btn small { display: block; font-size: 16px; font-weight: 700; opacity: .9; }
.t-batch .t-map { margin-top: 2px; }
/* Livreur : l'écran « à livrer » est rangé par lot. Bleu : lot en cours (en tournée) ; orange : lot à prendre. */
.t-lot { background: var(--t-blue-soft); border: 3px solid var(--t-blue); border-radius: calc(var(--t-radius) + 6px);
  padding: 12px 12px 0; }
.t-lot.offer { background: var(--t-brand-soft); border-color: var(--t-brand-line); padding-bottom: 12px; }
.t-lot.offer > .t-card { margin-bottom: 0; }
.t-lot > .t-card .t-order.corner { left: -6px; }
/* Ramassages (colis à aller chercher chez l'expéditeur) : numéros et épingles bleu marine, à la suite des livraisons. */
.t-pin.pickup, .t-order.pickup { background: var(--t-blue-dark); }
/* Argent : billet en francs guinéens (static/img/gnf.svg), à la taille du texte qui l'entoure. */
.ge-gnf { display: inline-block; height: .95em; width: auto; vertical-align: -.16em; flex: 0 0 auto; }
.ge-amt { white-space: nowrap; }
/* Demandes de lot : le livreur attend l'accord de l'agent (or = attente) ; l'agent voit un badge 🙋 sur « Tournées ». */
.t-lot.offer.waiting { background: var(--t-warn-bg); border-color: var(--t-wait); border-style: dashed; }
.t-wait-note { font-size: 20px; font-weight: 900; color: var(--t-warn-ink); }
.t-answer { gap: 4px; }
.t-asks { position: absolute; top: 8px; left: 8px; background: var(--t-wait); color: #fff; border-radius: 999px;
  padding: 4px 10px; font-size: 18px; font-weight: 900; }
.t-lot.pickup:not(.offer) { border-color: var(--t-blue-dark); }
.t-lot.pickup .t-order.corner { background: var(--t-blue-dark); }
.t-legend-kinds { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.t-legend-kinds i { font-style: normal; min-width: 26px; height: 26px; font-size: 14px; }


/* Prix par taille (Tarifs, Trajets) : 4 tuiles sur une ligne, compactes, toujours touchables (au moins 88 px de haut) */
.t-tiles.t-line-prices { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.t-line-prices .t-tile { min-height: 88px; padding: 6px 2px; gap: 2px; font-size: 18px; border-radius: 14px; }
.t-line-prices .t-tile small { font-size: 15px; font-weight: 900; color: var(--t-ink); line-height: 1.15; text-align: center; }
.t-line-prices .t-box-svg svg { width: 30px; height: 30px; }

/* Suivi de l'adoption : colonnes empilées par semaine (arrivées en bas, départs au-dessus).
   Colonnes fines (≤ 24 px), bout arrondi de 4 px, carré sur la ligne de base, 2 px de blanc entre les deux parts ;
   grille très discrète ; info-bulle au toucher, au survol et au clavier ; tableau pour lire sans couleur. */
.t-chip.ok { color: var(--t-go-dark); border-color: var(--t-go); background: var(--t-go-soft); }
.t-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.t-linekey { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.t-chart-wrap { position: relative; margin: 26px 0 0 30px; }
.t-axis { position: absolute; left: -30px; transform: translateY(50%); font-size: 13px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.t-chart { position: relative; height: 170px; display: grid; grid-template-columns: repeat(var(--n, 8), 1fr); align-items: end;
  border-bottom: 1px solid var(--t-line); }
.t-grid-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #e6ebe4; pointer-events: none; }
.t-col { position: relative; height: 100%; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
  outline: none; cursor: pointer; }
.t-seg { display: block; width: min(24px, 62%); flex: 0 0 auto; }
.t-seg.top { border-radius: 4px 4px 0 0; }
.t-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; font-weight: 800; }
.t-col:hover .t-seg, .t-col:focus-visible .t-seg { filter: brightness(1.12); }
.t-col:focus-visible { box-shadow: 0 0 0 3px var(--t-brand-line); border-radius: 6px; }
.t-cap { font-size: 14px; font-weight: 900; color: var(--t-ink); line-height: 1; margin-bottom: 2px; }
.t-tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 3;
  background: #fff; border: 1px solid var(--t-line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(16, 38, 26, .18);
  white-space: nowrap; text-align: left; }
.t-tip b { display: block; font-size: 17px; color: var(--t-ink); }
.t-tip small { display: block; font-size: 14px; color: var(--t-muted); }
.t-tip small b { display: inline; font-size: 14px; }
.t-col:first-child .t-tip, .t-col:nth-child(2) .t-tip { left: 0; transform: none; }
.t-col:last-child .t-tip, .t-col:nth-last-child(2) .t-tip { left: auto; right: 0; transform: none; }
.t-col:hover .t-tip, .t-col:focus .t-tip { display: block; }
.t-xlabels { display: grid; grid-template-columns: repeat(var(--n, 8), 1fr); margin-left: 30px; font-size: 12px; color: var(--t-muted);
  text-align: center; padding-top: 4px; }
.t-table-view { margin-top: 10px; }
.t-table-view summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 6px 0; }
.t-table-view table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.t-table-view th, .t-table-view td { text-align: right; padding: 4px 6px; border-bottom: 1px solid #e6ebe4; }
.t-table-view th:first-child, .t-table-view td:first-child { text-align: left; }
