/* Planning › Liste (planlist.js, owner 2026-11-29, maquette design-lab/planning-liste-maquette.html v2). */
.pl { --pl-todo: #b4560c; --pl-todo-s: #fdeee0; --pl-asg: #6b3fc4; --pl-asg-s: #efe8ff; --pl-way: #1f5fbf; --pl-way-s: #e6efff;
  --pl-arr: #0f6e6e; --pl-arr-s: #e0f3f2; --pl-board: var(--green, #12703f); --pl-board-s: var(--green-soft, #e3f4ea); --pl-done: #4b5266; --pl-done-s: #e9ebef;
  display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html[data-theme="dark"] .pl { --pl-todo: #f0a060; --pl-todo-s: rgba(240,160,96,.14); --pl-asg: #b9a0f0; --pl-asg-s: rgba(185,160,240,.14); --pl-way: #8ab4ff; --pl-way-s: rgba(138,180,255,.14);
  --pl-arr: #6fd0cc; --pl-arr-s: rgba(111,208,204,.14); --pl-done: #b8bdc9; --pl-done-s: rgba(184,189,201,.12); }
.pl-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pl-kpi { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .3s, box-shadow .3s, background .3s, color .3s; }
.pl-kpi b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pl-kpi small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pl-kpi.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft, rgba(205,165,91,.15)); }
@media (hover: hover) { .pl-kpi:not(.on):hover { background: var(--text); color: var(--bg); } .pl-kpi:not(.on):hover small { color: inherit; } }
.pl-ki { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.pl-ki svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-ki.all { background: var(--gold-soft, rgba(205,165,91,.15)); color: var(--gold); }
.pl-ki.user { background: var(--pl-todo-s); color: var(--pl-todo); }
.pl-ki.live { background: var(--pl-way-s); color: var(--pl-way); }
.pl-ki.next { background: var(--pl-asg-s); color: var(--pl-asg); }
.pl-ki.done { background: var(--pl-board-s); color: var(--pl-board); }
.pl-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-typeb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.pl-tbl { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 13px; }
.pl-tbl th { text-align: start; font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--bg); }
.pl-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pl-tbl tr:last-child td { border-bottom: 0; }
.pl-r { cursor: pointer; transition: background .2s; }
@media (hover: hover) { .pl-r:hover td { background: var(--gold-soft, rgba(205,165,91,.08)); } }
.pl-r.isdone td { opacity: .78; }
.pl-t b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-type { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pl-type svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; color: var(--text); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s; }
.pl-copy svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; }
.pl-copy.copied svg { stroke: var(--green, #12703f); }
@media (hover: hover) { .pl-copy:hover { background: var(--text); color: var(--bg); } .pl-copy:hover svg { stroke: currentColor; } }
.pl-pax b { display: block; font-size: 13.5px; }
.pl-pax small { display: block; color: var(--muted); font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-route { min-width: 230px; }
.pl-end { display: flex; gap: 8px; align-items: flex-start; }
.pl-end + .pl-end { margin-top: 6px; }
.pl-ei svg { width: 15px; height: 15px; margin-top: 2px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-ei.from svg { stroke: var(--green, #12703f); } .pl-ei.to svg { stroke: var(--red, #c0392b); }
.pl-end b { display: block; font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-end small { display: block; color: var(--muted); font-size: 11.5px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-veh { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pl-car { width: 40px; height: 30px; border-radius: 8px; background: var(--panel, rgba(127,127,127,.08)); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--muted); }
.pl-car svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-veh b { display: block; font-size: 12.5px; font-weight: 800; }
.pl-veh small { display: block; color: var(--muted); font-size: 11px; }
.pl-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 8px 0 11px; border-radius: 99px; border: 0; font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s; }
.pl-pill.ro { padding: 0 11px; cursor: default; }
.pl-chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 3px 3px 8px; }
.pl-pill.todo { background: var(--pl-todo-s); color: var(--pl-todo); } .pl-pill.asg { background: var(--pl-asg-s); color: var(--pl-asg); }
.pl-pill.way { background: var(--pl-way-s); color: var(--pl-way); } .pl-pill.arr { background: var(--pl-arr-s); color: var(--pl-arr); }
.pl-pill.board { background: var(--pl-board-s); color: var(--pl-board); } .pl-pill.done { background: var(--pl-done-s); color: var(--pl-done); }
@media (hover: hover) { button.pl-pill:hover { background: var(--text); color: var(--bg); } }
.pl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; color: var(--muted); padding: 0 4px; }
.pl-foot b { color: var(--text); }
.pl-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pl-dot.todo { background: var(--pl-todo); } .pl-dot.asg { background: var(--pl-asg); } .pl-dot.way { background: var(--pl-way); }
.pl-dot.arr { background: var(--pl-arr); } .pl-dot.board { background: var(--pl-board); } .pl-dot.done { background: var(--pl-done); }

/* Ordinateur moyen : compteurs sur une ligne qui défile. Téléphone : une carte par course, 16 px de marge. */
@media (max-width: 1100px) { .pl-kpis { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 2px; } }
@media (max-width: 999px) {
  .pl { padding-inline: 16px; padding-bottom: 140px; }
  .pl-kpis { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .pl-kpis::-webkit-scrollbar { display: none; }
  .pl-kpi { flex: none; padding: 8px 12px; border-radius: 99px; }
  .pl-kpi b { display: inline; font-size: 14px; margin-inline-end: 6px; }
  .pl-kpi span:first-child { display: flex; align-items: baseline; white-space: nowrap; }
  .pl-ki { display: none; }
  .pl-wrap { border: 0; overflow: visible; }
  .pl-tbl, .pl-tbl tbody { display: block; min-width: 0; }
  .pl-tbl thead { display: none; }
  .pl-tbl tr.pl-r { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0 0 10px; }
  .pl-tbl tr.pl-r.istodo { border-color: var(--pl-todo); }
  .pl-tbl td { display: block; padding: 0; border: 0; min-width: 0; }
  .pl-t { grid-column: 1; grid-row: 1; }
  .pl-st { grid-column: 2; grid-row: 1; justify-self: end; }
  .pl-route { grid-column: 1 / -1; min-width: 0; }
  .pl-end b, .pl-end small { max-width: none; white-space: normal; }
  .pl-pax { grid-column: 2; grid-row: 4; text-align: end; }
  .pl-pax small { max-width: none; }
  .pl-pax .pl-mail { display: none; }
  .pl-drv { grid-column: 1; grid-row: 4; align-self: center; }
  .pl-vehc { grid-column: 1 / -1; grid-row: 5; }
  .pl-ref { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--line); padding-top: 8px; }
}
/* 4 vues dans la barre du Planning : sur téléphone, boutons plus serrés, et la barre défile au besoin (rien ne dépasse l'écran). */
@media (max-width: 999px) {
  .fp-page .fp-views { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .fp-page .fp-views::-webkit-scrollbar { display: none; }
  .fp-page .fp-views button { padding: 8px 11px; white-space: nowrap; }
}
/* « Prêt à clôturer » (étape 2) : pastille dorée et fenêtre de clôture. */
.pl-pill.close { background: var(--gold-soft, rgba(205,165,91,.15)); color: var(--gold-ink, #7a5b1f); box-shadow: inset 0 0 0 1px var(--gold); }
.pl-dot.close { background: var(--gold); }
.pl-cl { width: min(520px, 100%); }
.pl-cl h2 { margin: 0 0 6px; font-size: 20px; }
.pl-cl-sub { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pl-cl-lines { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pl-ln { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; width: 100%; }
.pl-ln b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-ln.mute { color: var(--muted); font-size: 12.5px; }
.pl-ln.ex { gap: 8px; }
.pl-ln.ex input { height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; padding: 0 10px; min-width: 0; }
.pl-ln.ex input:focus { outline: none; border-color: var(--gold); }
.pl-exl { flex: 1; }
.pl-exa { width: 90px; text-align: end; font-variant-numeric: tabular-nums; }
.pl-eur { color: var(--muted); }
.pl-exx { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; transition: background .3s, color .3s; flex: none; }
@media (hover: hover) { .pl-exx:hover { background: var(--red, #c0392b); border-color: var(--red, #c0392b); color: #fff; } }
.pl-ln.add { border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--gold-ink, var(--gold)); font: inherit; font-size: 13.5px; font-weight: 700; justify-content: flex-start; cursor: pointer; transition: background .3s, color .3s; }
@media (hover: hover) { .pl-ln.add:hover { background: var(--text); color: var(--bg); } }
.pl-ln.tot { border-bottom: 0; font-weight: 800; background: var(--panel, rgba(127,127,127,.06)); }
.pl-cl-warn { margin: 12px 2px 0; font-size: 12.5px; color: var(--pl-todo, #b4560c); line-height: 1.45; }
.pl-cl-ck { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.pl-cl-ck li { display: flex; align-items: center; gap: 8px; }
.pl-cl-ck li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; flex: none; background: var(--green, #12703f) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pl-cl-ck li.no::before { background: var(--pl-todo-s, #fdeee0); box-shadow: inset 0 0 0 2px var(--pl-todo, #b4560c); }
.pl-cl-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.pl-cl-btns .btn { min-width: 120px; }
@media (max-width: 640px) { .pl-cl-btns .btn { flex: 1; min-width: 0; } .pl-exa { width: 76px; } }
/* Les champs du supplément : le nom prend la place, le montant garde 90 px (une règle générale met les champs à 100 %). */
html .pl-cl .pl-ln.ex input.pl-exl { flex: 1 1 auto; width: auto; min-width: 0; }
html .pl-cl .pl-ln.ex input.pl-exa { flex: 0 0 90px; width: 90px; }
@media (max-width: 640px) { html .pl-cl .pl-ln.ex input.pl-exa { flex-basis: 76px; width: 76px; } }
