/* « Revue du lundi » (06/11/2026) : téléphone d'abord, écran plein comme « Mes RDV ». Palette et typographie du Bureau ;
   couleurs de la charte (bleu à faire, orange attention, rouge critique, vert OK, gris inactif, violet argent).
   Un seul élément marquant : l'horizon de trésorerie sur 12 semaines (barres, zone incertaine hachurée, seuils). */
body.avec-revue-lundi .v2-sidebar, body.avec-revue-lundi .topbar, body.avec-revue-lundi > footer, body.avec-revue-lundi .skip,
body.avec-revue-lundi main > section:not(#revue-lundi), body.avec-revue-lundi .assistant-bouton { display: none !important; }
body.avec-revue-lundi { background: var(--canvas); }
body.avec-revue-lundi main { display: block; max-width: 680px; margin: 0 auto; padding: 0 16px calc(48px + env(safe-area-inset-bottom)); min-height: 100svh; grid-template-columns: none; }
#revue-lundi {
  --rl-bleu: #0a5fc2; --rl-bleu-bg: #e9f1fc; --rl-orange: #9a4f00; --rl-orange-bg: #fff2df; --rl-rouge: #b3261e; --rl-rouge-bg: #fdecea;
  --rl-vert: #1f7a3c; --rl-vert-bg: #e7f4ea; --rl-gris: #6e6e73; --rl-gris-bg: #efeff2; --rl-violet: #5a3d99; --rl-violet-bg: #f2edfb;
  --rl-carte: var(--surface); --rl-courbe: var(--courbe);
  color: var(--ink); font-variant-numeric: tabular-nums;
}
:root[data-theme=dark] #revue-lundi {
  --rl-bleu: #8cbcff; --rl-bleu-bg: #1d2a3d; --rl-orange: #ffc27a; --rl-orange-bg: #3a2b14; --rl-rouge: #ff9c96; --rl-rouge-bg: #472a2b;
  --rl-vert: #8fe0a8; --rl-vert-bg: #1f3326; --rl-gris: #a1a1a8; --rl-gris-bg: #2e2e31; --rl-violet: #c7b2ff; --rl-violet-bg: #2c2540;
}
#revue-lundi h1, #revue-lundi h2, #revue-lundi h3, #revue-lundi p { margin: 0; }
#revue-lundi button, #revue-lundi input, #revue-lundi textarea { font: inherit; }
.rl-racine { padding-top: max(14px, env(safe-area-inset-top)); }

/* En-tête : le titre et la date, la ligne « vue », les outils ronds */
.rl-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0 18px; }
.rl-titres { min-width: 0; display: grid; gap: 8px; }
.rl-titre { font-size: 26px; line-height: 1.12; letter-spacing: -.7px; font-weight: 750; outline: none; }
.rl-titre-date, .rl-titre-tiret { font-weight: 500; color: var(--muted); letter-spacing: -.4px; white-space: nowrap; }
@media (max-width: 899px) { .rl-titre-tiret { font-size: 0; } .rl-titre-date { display: block; } }
.rl-ligne-vue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rl-vue { color: var(--muted); font-size: 14px; }
.rl-marquer { min-height: 44px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.rl-marquer.fait { color: var(--muted); font-weight: 500; }
.rl-outils { display: flex; gap: 4px; flex-shrink: 0; }
.rl-rond { min-width: 44px; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.rl-rond .v2-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rl-bureau span { display: none; }
.rl-rond.tourne .v2-icon { animation: rl-tourne .9s linear infinite; }
@keyframes rl-tourne { to { transform: rotate(360deg); } }
.rl-statut:empty { display: none; }
.rl-statut { font-size: 13px; color: var(--muted); margin: -8px 0 10px !important; }

/* Blocs */
.rl-corps { display: grid; gap: 14px; }
.rl-bloc { background: var(--rl-carte); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px 16px; display: grid; gap: 14px; min-width: 0; }
.rl-bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rl-bloc-tete h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.45px; font-weight: 700; }
.rl-pastille { flex-shrink: 0; font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--rl-gris-bg); color: var(--rl-gris); white-space: nowrap; }
.rl-pastille.bleu { background: var(--rl-bleu-bg); color: var(--rl-bleu); }
.rl-pastille.orange { background: var(--rl-orange-bg); color: var(--rl-orange); }
.rl-pastille.rouge { background: var(--rl-rouge-bg); color: var(--rl-rouge); }
.rl-pastille.vert { background: var(--rl-vert-bg); color: var(--rl-vert); }
.rl-sous-titre { font-size: 16px; font-weight: 650; letter-spacing: -.2px; margin-top: 2px !important; }
.rl-aide { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.rl-vide { font-size: 15px; color: var(--muted); }
.rl-pascal-ligne { font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.rl-indispo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--rl-gris-bg); color: var(--rl-gris); font-size: 13.5px; line-height: 1.4; }
.rl-indispo p { flex: 1 1 220px; }
.rl-lien { min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--rl-bleu); font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.rl-alerte { font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 12px; }
.rl-alerte.rouge { background: var(--rl-rouge-bg); color: var(--rl-rouge); }
.rl-erreur { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--error-bg); color: var(--error); }

/* Tuiles d'argent : valeur en violet (argent), état par la bordure gauche */
.rl-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-tuiles > :first-child { grid-column: 1 / -1; }
.rl-tuile, .rl-charge-semaine { display: grid; gap: 2px; align-content: start; padding: 12px 12px 10px 14px; border-radius: 14px; background: var(--inset); border-left: 4px solid var(--rl-gris); min-width: 0; }
.rl-tuile.etat-vert, .rl-charge-semaine.etat-vert { border-left-color: var(--rl-vert); }
.rl-tuile.etat-orange, .rl-charge-semaine.etat-orange { border-left-color: var(--rl-orange); }
.rl-tuile.etat-rouge, .rl-charge-semaine.etat-rouge { border-left-color: var(--rl-rouge); }
.rl-tuile.etat-sans_seuil { border-left-color: var(--rl-violet); }
.rl-tuile-nom { font-size: 13px; color: var(--muted); font-weight: 600; }
.rl-tuile-valeur { font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -.6px; color: var(--rl-violet); }
.rl-tuile-valeur.vide { font-size: 17px; color: var(--rl-gris); font-weight: 650; letter-spacing: -.2px; padding: 4px 0 2px; }
.rl-tuile-note { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.rl-tuile.etat-orange .rl-tuile-note { color: var(--rl-orange); }
.rl-tuile.etat-rouge .rl-tuile-note { color: var(--rl-rouge); font-weight: 600; }
.rl-tuile .rl-lien { min-height: 36px; justify-self: start; }

/* Horizon de trésorerie (l'élément marquant) */
.rl-horizon { margin: 0; display: grid; gap: 8px; }
.rl-horizon-legende { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 14px; }
.rl-horizon-legende strong { font-weight: 650; }
.rl-horizon-cle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.rl-horizon-cle > span { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; }
.rl-horizon-cle i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.rl-horizon-cle .cle-sur { background: var(--rl-violet); }
.rl-horizon-cle .cle-incertain { background: repeating-linear-gradient(45deg, var(--rl-violet-bg) 0 2px, var(--rl-violet) 2px 3px); }
.rl-horizon-svg { width: 100%; height: 170px; display: block; overflow: visible; }
.rl-barre { fill: var(--rl-violet); }
.rl-barre.etat-vert { fill: var(--rl-vert); }
.rl-barre.etat-orange { fill: var(--rl-orange); }
.rl-barre.etat-rouge { fill: var(--rl-rouge); }
.hachure-fond { fill: var(--rl-violet-bg); }
.hachure-trait { stroke: var(--rl-violet); stroke-width: 1.6; opacity: .55; }
.rl-zero { stroke: var(--line); stroke-width: 1; }
.rl-seuil { stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.rl-seuil.orange { stroke: var(--rl-orange); }
.rl-seuil.rouge { stroke: var(--rl-rouge); }
.rl-repere { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1 3; opacity: .7; vector-effect: non-scaling-stroke; }
.rl-axe { fill: var(--muted); font-size: 9.5px; }
.rl-horizon-seuils { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.rl-horizon-seuils > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rl-horizon-seuils .trait { width: 14px; border-top: 2px dashed; display: inline-block; margin-right: 2px; }
.rl-horizon-seuils .trait.orange { border-color: var(--rl-orange); }
.rl-horizon-seuils .trait.rouge { border-color: var(--rl-rouge); }
.rl-details { font-size: 13.5px; color: var(--muted); }
.rl-details summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-weight: 600; list-style: none; }
.rl-details summary::-webkit-details-marker { display: none; }
.rl-details summary::before { content: '›'; font-size: 20px; line-height: 1; color: var(--muted); transition: transform var(--duree-normale) var(--courbe); }
.rl-details[open] summary::before { transform: rotate(90deg); }
.rl-details ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 3px; }
.rl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rl-table th, .rl-table td { text-align: right; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.rl-table th:first-child, .rl-table td:first-child { text-align: left; }
.rl-table th { font-weight: 600; color: var(--muted); }

/* Lignes de dossier cliquables (exceptions, menaces) */
.rl-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-ligne { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--inset); border: 0; border-left: 4px solid var(--rl-bleu); color: var(--ink); text-align: left; }
.rl-ligne:active { background: var(--line); }
.rl-ligne.gravite-orange { border-left-color: var(--rl-orange); }
.rl-ligne.gravite-rouge { border-left-color: var(--rl-rouge); }
.rl-ligne-texte { display: grid; gap: 2px; min-width: 0; }
.rl-ligne-titre { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.rl-ligne-titre strong { font-weight: 650; }
.rl-ligne-titre small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.rl-ligne-detail { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.rl-ligne.gravite-rouge .rl-ligne-detail { color: var(--rl-rouge); }
.rl-ligne-droite { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; }
.rl-argent { font-weight: 700; color: var(--rl-violet); font-size: 15px; }
.rl-taux { font-weight: 700; color: var(--rl-rouge); font-size: 15px; }
.rl-action { font-size: 12.5px; font-weight: 650; color: var(--rl-bleu); }
.rl-voir { justify-self: start; }

/* Compteurs des exceptions */
.rl-compteurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rl-compteur { display: grid; gap: 1px; padding: 8px 8px 7px; border-radius: 12px; background: var(--inset); text-align: center; min-width: 0; }
.rl-compteur strong { font-size: 22px; line-height: 1.1; font-weight: 750; }
.rl-compteur span { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.rl-compteur.orange strong { color: var(--rl-orange); }
.rl-compteur.rouge strong { color: var(--rl-rouge); }
.rl-compteur.vert strong { color: var(--rl-vert); }
.rl-compteur.bleu strong { color: var(--rl-bleu); }
.rl-compteur.gris strong { color: var(--rl-gris); }

/* Charge terrain */
.rl-charge-semaines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-charge-pct { font-size: 30px; font-weight: 750; letter-spacing: -.8px; line-height: 1.1; }
.rl-charge-semaine.etat-rouge .rl-charge-pct { color: var(--rl-rouge); }
.rl-charge-semaine.etat-orange .rl-charge-pct { color: var(--rl-orange); }
.rl-jauge { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin: 6px 0 4px; overflow: visible; }
.rl-jauge-remplie { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--rl-vert); }
.rl-jauge-remplie.orange { background: var(--rl-orange); }
.rl-jauge-remplie.rouge { background: var(--rl-rouge); }
.rl-jauge-seuil { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .35; border-radius: 1px; }
.rl-personnes-tete { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 2px; }
.rl-personnes { list-style: none; margin: -8px 0 0; padding: 0; display: grid; }
.rl-personnes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.rl-personnes li:last-child { border-bottom: 0; }
.rl-personne-nom { display: grid; min-width: 0; }
.rl-personne-nom strong { font-weight: 650; font-size: 15px; }
.rl-personne-nom small { color: var(--muted); font-size: 12.5px; }
.rl-personne-chiffres { display: flex; gap: 6px; flex-shrink: 0; }
.rl-personne-pct { min-width: 54px; text-align: center; font-weight: 700; font-size: 14px; padding: 4px 6px; border-radius: 8px; background: var(--rl-vert-bg); color: var(--rl-vert); }
.rl-personne-pct.orange { background: var(--rl-orange-bg); color: var(--rl-orange); }
.rl-personne-pct.rouge { background: var(--rl-rouge-bg); color: var(--rl-rouge); }

/* À trancher : cartes de décision, boutons A · B · Plus tard */
.rl-cartes { display: grid; gap: 10px; }
.rl-carte { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--inset); border-left: 4px solid var(--rl-bleu); }
.rl-carte-haut { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rl-carte-titre { font-size: 16.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.2px; }
.rl-carte-dossier { justify-self: start; min-height: 32px; padding: 0; background: none; border: 0; color: var(--rl-bleu); font-size: 14px; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.rl-carte-texte { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.rl-carte-proposition { font-size: 13.5px; font-weight: 600; color: var(--rl-bleu); }
.rl-carte-actions { display: grid; gap: 8px; margin-top: 4px; }
.rl-carte-actions .rl-btn { text-align: center; }
.rl-carte-actions .rl-btn-discret { justify-self: start; padding-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
.rl-btn { min-height: 44px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-align: left; }
.rl-btn-principal { background: var(--button); border-color: var(--button); color: #fff; }
.rl-btn-discret { background: transparent; border-color: transparent; color: var(--muted); }

/* Une question */
.rl-question { display: grid; gap: 10px; }
.rl-question-texte { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -.3px; }
.rl-question-actions { display: grid; gap: 8px; }
.rl-question-actions .rl-btn { text-align: center; }
.rl-question-reponse { padding: 10px 12px; border-radius: 12px; font-size: 14px; background: var(--rl-bleu-bg); color: var(--rl-bleu); }
.rl-question-reponse.bloquer { background: var(--rl-rouge-bg); color: var(--rl-rouge); }
.rl-question-reponse.redemander { background: var(--rl-gris-bg); color: var(--rl-gris); }

/* Ce qui a progressé */
.rl-progres { list-style: none; margin: 0; padding: 0; display: grid; }
.rl-progres li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rl-progres li:last-child { border-bottom: 0; }
.rl-progres-chiffres { font-weight: 700; }
.rl-progres-sens { font-size: 12.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--rl-gris-bg); color: var(--rl-gris); }
.rl-progres .mieux .rl-progres-sens { background: var(--rl-vert-bg); color: var(--rl-vert); }
.rl-progres .moins .rl-progres-sens { background: var(--rl-orange-bg); color: var(--rl-orange); }

/* Fenêtres et bulle */
.rl-dialog-corps { display: grid; gap: 12px; }
.rl-dialog-ligne { font-weight: 600; }
.rl-dialog-effet { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--inset); }
.rl-dialog textarea { width: 100%; min-height: 84px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); color: var(--ink); padding: 10px 12px; font-size: 16px; margin-top: 6px; }
.rl-groupe { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.rl-groupe legend { font-weight: 700; font-size: 16px; margin-bottom: 4px; padding: 0; }
.rl-champ { display: grid; gap: 4px; margin: 0; font-size: 14px; font-weight: 600; }
.rl-champ input { min-height: 46px; font-size: 16px; }
.rl-champ small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.rl-bulle { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--ink); color: var(--canvas); font-size: 14.5px; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / 22%); }
.rl-bulle-annuler { min-height: 40px; padding: 0 14px; border-radius: 12px; background: transparent; border: 1px solid currentColor; color: inherit; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .rl-bulle:not([hidden]) { animation: rl-bulle var(--duree-normale) var(--courbe); } }
@keyframes rl-bulle { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Grand écran : deux colonnes, le cash en pleine largeur */
@media (min-width: 900px) {
  body.avec-revue-lundi main { max-width: 1120px; padding: 24px 32px 48px; }
  .rl-titre { font-size: 36px; }
  .rl-carte-actions { display: flex; flex-wrap: wrap; }
  .rl-horizon-svg { height: 250px; }
  .rl-bureau span { display: inline; }
  .rl-corps { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #rl-progres, #rl-cash { grid-column: 1 / -1; }
  #rl-cash { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 24px; }
  #rl-cash > .rl-bloc-tete { grid-column: 1 / -1; }
  #rl-cash > .rl-tuiles, #rl-cash > .rl-indispo { grid-column: 1; }
  #rl-cash > .rl-horizon { grid-column: 2; grid-row: 2 / span 3; }
  #rl-cash > .rl-sous-titre, #rl-cash > .rl-lignes, #rl-cash > .rl-vide { grid-column: 1; }
  .rl-question-actions { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (max-width: 380px) { .rl-compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rl-titre { font-size: 26px; } }

/* Entrée « Revue du lundi » dans Ma journée (direction, administration) */
.ma-journee-revue { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.ma-journee-revue .v2-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.rl-aide .rl-lien { display: block; }
/* Ce que Pascal a tranché : détail (08/11/2026) */
.rl-pascal-suspendue { font-size: 13.5px; line-height: 1.45; color: var(--rl-orange, var(--warning, #b45309)); font-weight: 600; }
.rl-pascal-detail { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.rl-pascal-item { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--rl-gris-bg); }
.rl-pascal-item.est-defaite { opacity: .72; }
.rl-pascal-quoi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.rl-pascal-date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13.5px; }
.rl-pascal-dossier { min-height: 32px; text-align: left; }
.rl-pascal-action { overflow-wrap: anywhere; }
.rl-pascal-etat { font-size: 13px; color: var(--muted); }
.rl-pascal-defaire { justify-self: start; min-height: 44px; }
/* Numéros de dossier lisibles (11/11/2026) : client · devis, cliquable */
.numero-lisible{display:inline;padding:0 6px;margin:0 1px;border:0;border-radius:6px;background:color-mix(in srgb,var(--accent,#486354) 12%,transparent);color:inherit;font:inherit;font-weight:650;cursor:pointer;min-height:0}
.numero-lisible:hover{background:color-mix(in srgb,var(--accent,#486354) 22%,transparent)}
.rl-candidats{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0}
