/* Planning de la semaine en tableau (weektable.js, owner 2026-11-29). */
.wt-page { padding-bottom: 120px; }
.wt-back { display: inline-flex; align-self: flex-start; width: max-content; max-width: 100%; align-items: center;   /* la page est une colonne flexible : sans align-self, le bouton prenait toute la largeur (owner, 2026-11-29) */ gap: 4px; margin: 4px 0 10px; padding: 6px 12px 6px 6px; border-radius: 99px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.wt-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .wt-back svg { transform: scaleX(-1); }
@media (hover: hover) { .wt-back:hover { background: var(--text); color: var(--bg); } }
.wt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 18px; }
.wt-head h1 { margin: 0 0 6px; font-size: 26px; }
.wt-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 62ch; }
.wt-nav { display: flex; align-items: center; gap: 8px; }
.wt-nav .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wt-range { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.wt-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1180px; font-size: 13.5px; }
.wt-table th, .wt-table td { padding: 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.wt-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 10px 8px; font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.wt-table tr.wt-day th { padding: 12px 10px 6px; font-size: 13px; font-weight: 800; text-transform: capitalize; background: var(--panel, var(--bg)); }
.wt-table td.wt-ref, .wt-table td.wt-ro { padding: 8px; }
.wt-table td.wt-ro { color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-table td.wt-ref a { font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .wt-table td.wt-ref a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.wt-table td:first-child, .wt-table th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bg); }
.wt-table thead th:first-child { z-index: 3; }
.wt-in { width: 100%; min-width: 70px; height: 40px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; padding: 0 8px; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.wt-in:focus { outline: none; border-color: var(--gold); background: var(--bg); }
@media (hover: hover) { .wt-in:hover:not(:focus) { border-color: var(--line); } }
.wt-table td.wt-ch { background: var(--gold-soft); }
.wt-table td.wt-ch .wt-in { font-weight: 700; }
.wt-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 32px 16px; text-align: center; color: var(--muted); }
.wt-bar { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: var(--edge-r, 20px); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(14, 27, 61, .16); }
.wt-bar span { font-weight: 700; font-size: 14px; margin-inline-end: 6px; }
@media (max-width: 999px) {
  .wt-bar { inset-inline: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); justify-content: flex-end; flex-wrap: wrap; }
  .wt-bar span { flex: 1 1 100%; }
  .wt-page { padding-bottom: 200px; }
}
/* Largeur de chaque colonne : le contenu entier reste visible (date JJ/MM/AAAA, heure, prix…). */
html .wt-table td .wt-in { height: 38px; min-height: 0; padding: 0 8px; margin: 0; box-shadow: none; border-radius: 8px; font-size: 13.5px; }
.wt-in[data-k="date"] { min-width: 108px; }
.wt-in[data-k="time"] { min-width: 66px; }
.wt-in[data-k="flight"] { min-width: 92px; }
.wt-in[data-k="pax"] { min-width: 52px; }
.wt-in[data-k="vehicle"] { min-width: 150px; }
.wt-in[data-k="total"] { min-width: 90px; }
.wt-in[data-k="client"] { min-width: 150px; }
.wt-in[data-k="phone"] { min-width: 140px; }
.wt-table td:has(> .wt-sel), .wt-table td:has(.sel-btn) { min-width: 140px; }
/* Téléphone : 16 px de marge, barre « Enregistrer » à gauche des boutons flottants (bulle, ampoule). */
@media (max-width: 999px) {
  .wt-page { padding-inline: 16px; }
  .wt-bar { inset-inline-start: 16px; inset-inline-end: 84px; }
  .wt-bar .btn { flex: 1; min-width: 0; padding-inline: 10px; }
  .wt-nav { flex-wrap: wrap; }
  .wt-nav #wtNow { white-space: nowrap; }
}
