/* Compléments de l’application ajoutés par lots en V0168 (ex-lot14.css) ; chargé après les feuilles de base. */
:root {
  /* Palette du fichier : couleurs écrites en dur remplacées par ces variables (mêmes valeurs). */
  --c-amber-27: #8a5a00;
  --c-amber-52: #d7a334;
  --c-amber-7: #18130a;
  --c-amber-78: #ead4a5;
  --c-amber-92: #fff4d6;
  --c-amber-97: #fffaf0;
  --c-black-a18: rgba(0, 0, 0, 0.18);
  --c-blue-39: #1f5fa8;
  --c-blue-46: #175cd3;
  --c-blue-95: #e8f1ff;
  --c-gray-14: #1f2328;
  --c-gray-40: #5b6470;
  --c-gray-43: #667;
  --c-gray-79: #c9c9c9;
  --c-gray-94-eef0f3: #eef0f3;
  --c-gray-97: #f7f8fa;
  --c-green-24: #067647;
  --c-green-29: #15803d;
  --c-green-93: #e3f7ea;
  --c-red-42: #b91c1c;
  --c-red-47: #c62828;
  --c-red-49: #d92d20;
  --c-red-95: #fdecea;
  --c-red-95-h5: #fde7e5;
  --c-white: #fff;
}
/* V0168-14 — bouton Courses central, carte course, en-tête, accès rapides, logo */
.service-navigation {
  overflow: visible;
}
.service-navigation a.nav-center {
  position: relative;
}
.service-navigation a.nav-center .vtc-icon {
  box-sizing: content-box;
  width: 26px;
  height: 26px;
  padding: 11px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--theme-accent, #d5a843);
  color: var(--theme-on-accent, var(--c-navy));
  box-shadow:
    0 3px 10px rgba(16, 43, 72, 0.28),
    0 0 0 4px var(--theme-surface, #fff);
}
.service-navigation a.nav-center > span {
  font-weight: 700;
}
.service-navigation a.nav-center .nav-badge {
  top: -26px;
  left: calc(50% + 14px);
  background: var(--c-danger-3);
  color: var(--c-white);
  box-shadow: 0 0 0 2px var(--theme-surface, #fff);
}
.ride-category {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--theme-text, var(--c-navy));
}
.ride-reason {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--c-red-95);
  color: #8a1f11;
  font-size: 0.92rem;
  line-height: 1.35;
}
.ride-reason[hidden] {
  display: none;
}
header #new-booking-top {
  margin-left: auto;
  margin-right: auto;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--theme-accent, #b68b28);
  background: var(--theme-accent, #d5a843);
  color: var(--theme-on-accent, var(--c-navy));
  font-weight: 700;
  cursor: pointer;
}
header #new-booking-top[hidden],
header #new-tab-top[hidden] {
  display: none;
}
header #new-tab-top {
  display: none;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #c8d0da);
  background: var(--theme-surface, #fff);
  color: var(--theme-text, var(--c-navy));
  cursor: pointer;
  margin-right: 8px;
}
@media (min-width: 900px) {
  header #new-tab-top:not([hidden]) {
    display: inline-block;
  }
}
@media (max-width: 520px) {
  header #new-booking-top {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}
.brand img.company-logo {
  max-height: 34px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.service-link .tile-count {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 400;
  color: #8a94a3;
  padding-right: 4px;
}
.service-link .tile-count + span[aria-hidden] {
  margin-left: 0;
}
.logo-box {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
}
.logo-box img {
  max-height: 60px;
  max-width: 220px;
  object-fit: contain;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 6px;
  background: var(--c-white);
}
.veh-add-row {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.veh-add-row label {
  display: grid;
  gap: 4px;
}
.veh-doc {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  padding: 8px;
  margin: 6px 0;
}
.veh-state {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--c-amber-92);
  color: #7a5a00;
  font-size: 0.8rem;
}
.service-navigation a.nav-center[aria-current='page'] {
  background: transparent;
  box-shadow: none;
}
.service-navigation a.nav-center[aria-current='page'] .vtc-icon {
  outline: 2px solid var(--theme-text, var(--c-navy));
}

/* V0168-17 : choix du guidage et pleine largeur sur ordinateur */
.guide-dialog {
  width: calc(100% - 32px);
  max-width: 420px;
  text-align: center;
  border-radius: 16px;
}
.guide-dialog .guide-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 1.1rem;
}
.guide-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  line-height: 56px;
  margin: 0 0 10px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-white);
}
.guide-waze {
  background: #33ccff;
  color: #06324a;
}
.guide-google {
  background: #1a73e8;
}
.guide-cancel {
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 0;
  font-size: 1rem;
  color: inherit;
  text-decoration: underline;
}
@media (min-width: 900px) {
  html body.is-wide .app,
  html body.is-wide .app.is-admin {
    max-width: 1800px;
    width: 100%;
  }
}

/* V0168-18 : toutes les pages à la largeur de l'écran sur ordinateur ; forfaits sur 2 colonnes */
@media (min-width: 900px) {
  html body.is-wide .clients-board,
  html body.is-wide #admin-board {
    max-width: none;
  }
  html body.is-wide :is(#admin-board, #services-board) .pricing-page {
    max-width: none;
  }
  html body.is-wide .app:has(.pricing-page) {
    max-width: 1800px;
  }
}
@media (min-width: 1000px) {
  html body.is-wide #fixed-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  html body.is-wide #fixed-list > * {
    margin: 0;
    min-width: 0;
  }
}
@media (min-width: 900px) {
  html body.is-wide #auth-zone:has(#theme-settings) {
    max-width: none;
    margin-inline: 16px;
  }
}

/* V0168-19 : liens du client lisibles sur fond sombre, icône du site */
.customer-weblinks,
small.customer-weblinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0;
  align-items: center;
}
a.customer-weblink {
  color: var(--theme-accent);
  text-decoration: underline;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
a.customer-weblink .vtc-icon {
  width: 18px;
  height: 18px;
}
.customer-contact {
  margin: 2px 0;
  color: var(--theme-muted);
}
.client-role {
  display: grid;
  gap: 6px;
}
.pax-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pax-cards .pax-card {
  margin-block: 0;
}
.pax-cards .pax-card.is-on {
  border-color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface));
}
.pax-list.pax-cards {
  max-height: none;
  overflow: visible;
}
.pax-dialog .pax-check {
  margin: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  cursor: pointer;
  color: var(--theme-text);
}
.pax-dialog .pax-check input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  accent-color: var(--theme-accent);
}
@media (min-width: 900px) {
  html .pax-dialog {
    max-width: min(1000px, 96vw);
  }
  .pax-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.change-notice {
  border: 2px solid var(--theme-accent);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface));
}
.change-notice ul {
  margin: 8px 0;
  padding-left: 18px;
}
.change-notice li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.change-notice button {
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--theme-accent);
  color: var(--theme-on-accent);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.change-flag {
  color: var(--theme-accent-text, var(--theme-accent));
}
.price-compare {
  border: 1px solid var(--theme-accent);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface));
}
.price-compare p {
  margin: 4px 0;
}
/* Lot 19 : appels, incidents, statistiques chauffeur, temps de trajet */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--accent, #c49224);
  border-radius: 999px;
  color: var(--accent, #c49224);
  font-weight: 600;
  text-decoration: none;
}
.incident-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
#incident-form {
  border: 1px solid var(--line, #8884);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0;
}
#incident-form label {
  display: block;
  margin: 0.6rem 0;
}
#incident-form textarea {
  width: 100%;
}
.inc-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.inc-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}
.driver-stats {
  display: block;
  text-align: left;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}
.ride-menu .menu-title {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.avail-band h3 {
  margin: 0 0 0.4rem;
}
.avail-percent {
  font-size: 1.4rem;
}
/* Lot 20 */
.price-edit {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.price-edit-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.price-input {
  width: 7rem;
  text-align: right;
}
.inc-photo-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.inc-thumb {
  position: relative;
  display: inline-block;
}
.inc-thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #b83232;
  color: var(--c-white);
  line-height: 1;
  cursor: pointer;
}
.legal-host {
  margin-top: 1.25rem;
}
.legal-form {
  display: grid;
  gap: 0.75rem;
}
.legal-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}
.legal-form input {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line, #d6d9de);
  border-radius: 12px;
  font: inherit;
}
.legal-warn {
  color: #a35a00;
  font-weight: 600;
}
.site-card form button.site-primary,
.site-card button.site-primary {
  background: #164a7b !important;
  color: var(--c-white) !important;
  border: 1px solid #164a7b !important;
  opacity: 1;
}
.site-card button.site-primary:disabled {
  opacity: 0.6;
}
.cat-caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 0.5rem 0;
}
.cat-caps label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.cat-caps input {
  padding: 0.55rem 0.6rem;
  border: 1px solid #d6d9de;
  border-radius: 10px;
  font: inherit;
}
/* Lot 27 – avis du chauffeur après la course */
.fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.fb-box {
  background: var(--surface, #fff);
  color: var(--text, #111);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 600px) {
  .fb-overlay {
    align-items: center;
  }
  .fb-box {
    border-radius: 16px;
  }
}
.fb-box h2 {
  margin: 0;
  font-size: 1.2rem;
}
.fb-box textarea {
  width: 100%;
  box-sizing: border-box;
}
.fb-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.fb-star {
  font-size: 2.2rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--c-gray-79);
  cursor: pointer;
  padding: 2px 6px;
  min-height: 48px;
}
.fb-star.on {
  color: var(--c-gold);
}
.fb-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#fb-audio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#fb-audio audio {
  width: 100%;
}
#fb-err {
  color: var(--c-danger);
  margin: 0;
  min-height: 1em;
}
.fb-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.fb-actions button {
  min-height: 48px;
  flex: 1;
}
.fb-stars-ro {
  color: var(--c-gold);
  letter-spacing: 2px;
  font-size: 1.2rem;
}
.fb-ro-audio {
  width: 100%;
  max-width: 420px;
}
/* Lot 28 – carte de course : passager, chauffeur, horaires */
.rc-ic {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--c-blue-39);
}
.rc-pax {
  display: flex;
  gap: 10px;
  margin: 2px 0 10px;
}
.rc-cap {
  font-size: 0.8rem;
  color: var(--muted, var(--c-muted));
}
.rc-star {
  color: var(--c-gold);
}
.rc-rate {
  white-space: nowrap;
}
.rc-none {
  color: var(--muted, var(--c-muted));
  font-size: 0.85rem;
}
.rc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.rc-grid > .reservation-content {
  min-width: 0;
}
.rc-driver {
  border-left: 1px solid var(--line, var(--c-line));
  padding: 2px 0 4px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.rc-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted, var(--c-muted));
}
.rc-drow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rc-dmain {
  flex: 1;
  min-width: 0;
}
.rc-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rc-line span {
  overflow-wrap: anywhere;
}
.rc-plate {
  border: 1px solid #9db8e0;
  background: #eaf1fc;
  color: #12417d;
  border-radius: 6px;
  padding: 2px 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rc-btn,
button.rc-btn {
  flex: none;
  height: 40px;
  border: 1px solid #9db8e0 !important;
  background: var(--c-white) !important;
  color: var(--c-blue-39) !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rc-times {
  margin: 8px 0 0;
}
.rc-times summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-blue-39);
  font-size: 0.9rem;
}
.rc-times ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px 18px;
}
.rc-times li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed var(--line, var(--c-line));
  padding: 3px 0;
}
.rc-mine {
  color: #444;
  font-size: 0.9rem;
}
.rc-review {
  font-weight: 600;
}
.rc-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.rc-detail .rc-driver {
  border-left: 0;
  border-top: 1px solid var(--line, var(--c-line));
  padding: 10px 0 0;
}
@media (max-width: 720px) {
  .rc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rc-driver {
    border-left: 0;
    border-top: 1px solid var(--line, var(--c-line));
    padding: 10px 0 0;
  }
}
/* Lot 29 */
.rc-pax .rc-dmain {
  flex: 1;
  min-width: 0;
}
.rc-pax {
  align-items: center;
}
.rc-more {
  color: var(--c-gray-43);
  font-size: 0.85rem;
}
.rc-driver .rc-times {
  margin-top: 4px;
  border-top: 1px solid var(--line, var(--c-line));
  padding-top: 8px;
}
.rc-driver .rc-times ul {
  grid-template-columns: 1fr;
}
.rc-co-addr {
  margin: 4px 0;
  color: #556;
  font-size: 0.9rem;
}
.rc-contact {
  border-top: 1px solid var(--line, var(--c-line));
  margin-top: 12px;
  padding-top: 10px;
}
.rc-contact-h {
  margin: 0 0 4px;
  color: var(--c-muted);
  font-size: 0.85rem;
}
.rc-tag {
  display: inline-block;
  margin-left: 8px;
  background: #eaf1fc;
  color: #12417d;
  border-radius: 10px;
  padding: 1px 9px;
  font-size: 0.78rem;
}
.rc-contact-n {
  margin: 2px 0 6px;
}
/* Lot 30 */
.rc-btn,
button.rc-btn {
  width: auto;
  min-width: 44px;
  gap: 4px;
  padding: 0 8px;
}
.rc-dur {
  font-size: 0.75rem;
  color: var(--c-blue-39);
  font-weight: 600;
}

/* Lot 32 : course sans chauffeur */
.rc-wait .rc-waittxt,
.rc-wait .rc-wline {
  font-size: 0.88rem;
  color: var(--muted, var(--c-muted));
  background: none;
  border: 0;
  padding: 0;
  font-weight: 400;
}
.rc-wait .rc-wline {
  font-size: 0.8rem;
}

/* Lot 32 : onglets Réservations / Simulations */
.res-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line, var(--c-line));
  /* Sur un téléphone étroit ou avec une police plus large, les onglets défilent dans leur barre au lieu d'élargir la page. */
  overflow-x: auto;
  scrollbar-width: none;
}
.res-tabs button {
  background: none !important;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--muted, var(--c-muted)) !important;
  cursor: pointer;
  width: auto;
}
.res-tabs button[aria-selected='true'] {
  color: var(--fg, #101828) !important;
  border-bottom-color: var(--accent, var(--c-gold));
}
.sim-help {
  margin: 4px 0 10px;
}
.sim-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  align-items: end;
}
.sim-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}
.sim-filters .sim-chk {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  grid-column: span 2;
}
.sim-filters .sim-chk input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  padding: 0;
}
.sim-card {
  border: 1px solid var(--line, var(--c-line));
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface, #fff);
}
.sim-card.is-hidden {
  opacity: 0.55;
}
.sim-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.sim-date {
  color: var(--muted, var(--c-muted));
  font-size: 0.85rem;
}
.sim-source {
  margin-left: auto;
  font-size: 0.8rem;
  background: var(--chip, #eef2f8);
  border-radius: 999px;
  padding: 2px 10px;
}
.sim-route {
  font-weight: 600;
}
.sim-meta {
  font-size: 0.85rem;
  color: var(--muted, var(--c-muted));
}
.sim-offers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.sim-offer strong {
  font-weight: 600;
}
.sim-refus {
  font-size: 0.8rem;
  color: var(--muted, var(--c-muted));
}
.sim-none {
  color: var(--muted, var(--c-muted));
}
.sim-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
}
.sim-result {
  font-size: 0.82rem;
  color: var(--muted, var(--c-muted));
}
.sim-result.sim-ride {
  color: #0a7d36;
  font-weight: 600;
}
.sim-actions {
  display: flex;
  gap: 12px;
}
.sim-dialog .sim-detail p {
  margin: 4px 0;
}
.sim-dialog .sim-detail h4 {
  margin: 14px 0 4px;
}
.sim-k {
  color: var(--muted, var(--c-muted));
  margin-right: 6px;
}
.sim-calc {
  margin: 4px 0;
}

/* Lien de paiement */
.ride-badge.status-awaiting_payment {
  background: #e3e6eb;
  color: #4b5563;
}
.reservation-card.is-awaiting {
  filter: grayscale(0.85);
  opacity: 0.82;
}
.reservation-card.is-awaiting .ride-menu,
.reservation-card.is-awaiting button {
  filter: none;
}
.pay-line {
  display: block;
  margin-top: 2px;
  color: var(--theme-muted, var(--c-muted));
  font-size: 13px;
}
.pay-line.is-paid {
  color: #1f7a4d;
  font-weight: 600;
}
.paylink-box,
.paylink-panel {
  display: grid;
  gap: 10px;
}
.paylink-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.paylink-rem {
  display: flex;
  gap: 8px;
  align-items: center;
}
.paylink-rem input {
  flex: 1;
  min-width: 0;
}
.pl-tick {
  color: #1f7a4d;
  font-weight: 600;
}
.paylink-msg {
  margin: 0;
  font-size: 14px;
}
.pl-url {
  width: 100%;
}

/* v0168z4 — filtre de période et bandeaux de totaux */
.res-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-end;
  margin: 0 0 12px;
}
.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.period-chips button {
  width: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, var(--c-line));
  background: var(--card, #fff) !important;
  color: var(--fg, #101828) !important;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.period-chips button[aria-pressed='true'] {
  background: var(--accent, var(--c-gold)) !important;
  border-color: var(--accent, var(--c-gold));
  color: #101828 !important;
}
.period-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}
.period-more label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
}
.period-custom {
  display: flex;
  gap: 8px;
}
.period-custom[hidden] {
  display: none;
}
.res-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.res-totals:empty {
  display: none;
}
.res-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line, var(--c-line));
  border-radius: 10px;
  background: var(--card, #fff);
}
.res-tile span {
  font-size: 0.75rem;
  color: var(--muted, var(--c-muted));
}
.res-tile strong {
  font-size: 1.1rem;
}
.res-tile small {
  font-size: 0.7rem;
  color: var(--muted, var(--c-muted));
}
#dispatch-commission {
  margin: 0.6rem 0;
}
#dispatch-commission input {
  max-width: 10rem;
}

/* v0168z5 — durée en jours / heures / minutes */
.dur {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}
.dur input.dur-in {
  width: 2.9em;
  min-width: 0;
  padding: 7px 2px;
  text-align: center;
}
.dur small {
  color: var(--muted, var(--c-muted));
  font-size: 0.72rem;
  margin-right: 3px;
}
.dur-ph {
  display: block;
  font-size: 0.7rem;
  color: var(--muted, var(--c-muted));
}
.dur-ph[hidden] {
  display: none;
}
.tg-cell .dur input.dur-in {
  width: 2.4em;
  font-size: 0.85rem;
}

/* v0168z5 — cloche de notifications */
#bell-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  color: var(--theme-text, inherit);
  background: var(--theme-surface, transparent);
  border: 1px solid var(--theme-border, #d8dde6);
  border-radius: 50%;
  cursor: pointer;
}
#bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--c-red-47);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
#notif-panel {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  right: 8px;
  left: 8px;
  max-width: 440px;
  margin-left: auto;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--fg, #101828);
  border: 1px solid var(--line, #d8dde6);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.28);
  z-index: 60;
  overflow: hidden;
}
.notif-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, var(--c-line));
}
.notif-top button {
  width: auto;
  background: none !important;
  border: 0;
  color: var(--accent, #b9693f) !important;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.notif-top button:disabled {
  opacity: 0.4;
  cursor: default;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
}
.notif-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  background: none !important;
  border: 0;
  border-bottom: 1px solid var(--line, #eef0f4);
  color: inherit !important;
  cursor: pointer;
}
.notif-item.is-unread {
  background: rgba(229, 170, 38, 0.12) !important;
}
.notif-ico {
  font-size: 1.2rem;
  flex: none;
}
.notif-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notif-txt small {
  color: var(--muted, var(--c-muted));
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.notif-txt em {
  font-style: normal;
  color: var(--muted, var(--c-muted));
  font-size: 0.72rem;
}
.notif-empty {
  padding: 22px 14px;
  color: var(--muted, var(--c-muted));
  text-align: center;
}
/* V0168 lot 36 : visiteurs et documents légaux */
.vis-card {
  border: 1px solid var(--line, var(--c-line));
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface, #fff);
}
.vis-card.is-blocked {
  border-color: var(--c-red-49);
  background: rgba(217, 45, 32, 0.05);
}
.vis-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.vis-ip {
  font-size: 1.02rem;
  word-break: break-all;
}
.vis-meta {
  font-size: 0.85rem;
  color: var(--muted, var(--c-muted));
  overflow-wrap: anywhere;
}
.vis-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.92rem;
}
.vis-nums small {
  color: var(--muted, var(--c-muted));
}
.vis-badge,
.vis-flag {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--chip, #eef2f8);
}
.vis-new {
  background: var(--c-blue-95);
  color: var(--c-blue-46);
}
.vis-rec {
  background: var(--c-amber-92);
  color: var(--c-amber-27);
}
.vis-very {
  background: var(--c-red-95-h5);
  color: var(--c-danger-2);
}
.vis-blocked {
  background: var(--c-red-95-h5);
  color: var(--c-danger-2);
}
.vis-white {
  background: var(--c-green-93);
  color: var(--c-green-24);
}
.vis-settings {
  margin: 0 0 14px;
}
.vis-settings summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}
.vis-dialog {
  max-width: min(720px, 96vw);
}
.vis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 8px 0;
}
.vis-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line, var(--c-line));
  border-radius: 10px;
  padding: 8px 12px;
}
.vis-block label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}
.vis-err {
  color: var(--c-danger-2);
  min-height: 1.2em;
  margin: 0;
}
.vis-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vis-visit,
.vis-list > li {
  border: 1px solid var(--line, var(--c-line));
  border-radius: 10px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.vis-pages {
  margin: 6px 0 0;
  padding-left: 20px;
  font-size: 0.85rem;
}
.vis-pages li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  padding: 1px 0;
}
.legal-card {
  border: 1px solid var(--line, var(--c-line));
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: var(--surface, #fff);
}
.legal-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 0 0 8px;
}
.legal-label {
  display: block;
}
.legal-label textarea {
  width: 100%;
  min-height: 200px;
  font: inherit;
  line-height: 1.45;
  box-sizing: border-box;
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.legal-chip {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--chip, #eef2f8);
  color: var(--muted, var(--c-muted));
}
.legal-pack {
  background: var(--c-green-93);
  color: var(--c-green-24);
}
.legal-custom {
  background: var(--c-blue-95);
  color: var(--c-blue-46);
}
.legal-note {
  background: var(--c-amber-92);
  border-radius: 10px;
  padding: 10px 12px;
}
.noshow-info {
  margin: 0.75rem 0 0;
}
.noshow-chrono {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.noshow-msg {
  margin: 0;
  color: var(--muted, #566);
}
.noshow-msg:empty {
  display: none;
}
.rc-contactline {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  opacity: 0.8;
}
.rc-triangle {
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 3px solid var(--c-gold);
  font-size: 0.9rem;
}
.rc-triangle p {
  margin: 2px 0;
}

.sel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.sel-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.sel-all input,
.sel-one {
  width: 22px;
  height: 22px;
}
#sel-del {
  background: var(--c-danger);
  color: var(--c-white);
  border: 1px solid var(--c-danger);
  border-radius: 12px;
  padding: 0 16px;
}
.sel-box {
  display: flex;
  align-items: center;
  padding: 6px 10px 0;
}

.sel-box input.sel-one {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  accent-color: #1f5fa6;
}
.sel-all input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
}
.sel-result {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.sel-result.is-ok {
  background: rgba(6, 118, 71, 0.12);
  color: var(--c-green-24);
}
.sel-result.is-bad {
  background: rgba(179, 38, 30, 0.12);
  color: var(--c-danger);
}
.sel-result ul {
  margin: 6px 0 0 18px;
  padding: 0;
  font-weight: 400;
}

#legacy-notice {
  display: none !important;
}
.sel-box input.sel-one,
.sel-all input {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sel-bar[hidden] {
  display: none !important;
}

#booking-error,
#booking-hint {
  color: var(--c-danger);
  font-weight: 600;
}
#booking-hint:empty,
#booking-error:empty {
  display: none;
}

.brand.has-logo svg,
.brand.has-logo strong,
.brand.has-logo span {
  display: none !important;
}
.brand.has-logo img.company-logo {
  max-height: 64px;
  max-width: 210px;
  width: auto;
  height: auto;
}
@media (max-width: 600px) {
  .brand.has-logo img.company-logo {
    max-height: 54px;
    max-width: 150px;
  }
}

/* V0168-44 : sur ordinateur, boutons et champs à taille correcte (plus sur toute la largeur) ; le mobile ne change pas */
@media (min-width: 900px) {
  html .auth-zone button,
  html .auth-zone .pax-primary,
  html .booking-actions > button,
  html .pax-foot > button {
    width: auto;
    min-width: 220px;
    min-height: 44px;
    padding: 10px 22px;
    margin-right: 10px;
  }
  html .auth-zone input:not([type='checkbox']):not([type='radio']),
  html .auth-zone select,
  html .auth-zone textarea {
    max-width: 520px;
  }
  html .auth-zone label {
    max-width: 520px;
  }
  html .auth-zone .auth-links {
    max-width: 520px;
  }
  html #booking-create button:not(.round),
  html #admin-board form > button[type='submit'] {
    width: auto;
    min-width: 220px;
    min-height: 44px;
  }
  html #admin-board input:not([type='checkbox']):not([type='radio']):not([type='search']),
  html #admin-board select,
  html #services-board input:not([type='checkbox']):not([type='radio']):not([type='search']),
  html #services-board select {
    max-width: 520px;
  }
}
.pc-banner {
  display: none;
}
@media (min-width: 900px) {
  .pc-banner {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid #f4dfaa;
    background: #fff7e5;
    color: #4a3a10;
    border-radius: 14px;
  }
  .pc-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
  }
  .pc-banner button {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 0;
    background: var(--c-amber-52);
    color: var(--c-amber-7);
    font-weight: 700;
    cursor: pointer;
  }
  .pc-banner .pc-x {
    background: transparent;
    color: inherit;
    font-size: 20px;
    padding: 4px 10px;
  }
}

/* V180 : planning des véhicules (Véhicules › Planning des véhicules) */
.fleet-plan .fleet-scroll {
  overflow-x: auto;
  margin: 0.5rem 0;
}
.fleet-plan .fleet-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.85rem;
}
.fleet-plan .fleet-table th,
.fleet-plan .fleet-table td {
  border: 1px solid var(--theme-border);
  padding: 0.3rem 0.4rem;
  text-align: left;
  white-space: nowrap;
  color: var(--theme-text);
}
.fleet-plan .fleet-table td.fleet-attribué {
  background: var(--theme-soft);
}
.fleet-plan .fleet-table td.fleet-en-entretien {
  background: var(--theme-accent);
  color: var(--theme-on-accent);
}
.fleet-plan .fleet-table td.fleet-disponible {
  color: var(--theme-muted);
}
.fleet-plan .link {
  background: none;
  border: 0;
  color: var(--theme-accent);
  text-decoration: underline;
  padding: 0;
  min-height: 0;
}

/* V181 : précision du paiement à bord (écran de réservation) et encaissement sur la fiche du chauffeur */
.booking-pay-detail {
  display: block;
  margin: 0.25rem 0 0.5rem 2rem;
}
.mine-collect,
.mine-collect-flag {
  color: var(--theme-accent);
}

/* V193 : « Mes notes » du chauffeur (Mes courses → Terminées) */
.mine-ratings {
  margin: 0.5rem 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  background: var(--card, #fff);
}
.mine-ratings summary {
  cursor: pointer;
}
.mine-ratings ul {
  margin: 0.4rem 0;
  padding-left: 1.1rem;
}

/* V194 : écran Bilans */
.rp-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}
.rp-summary {
  margin: 0.8rem 0;
  padding: 0.8rem;
  border-radius: 12px;
  background: var(--soft, #f6f7f9);
}
.rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1rem;
  font-size: 0.92rem;
}
.rp-table th,
.rp-table td {
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.rp-evo.up {
  color: var(--c-green-29);
}
.rp-evo.down {
  color: var(--c-red-42);
}
.rp-kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
}
.rp-kv dd {
  margin: 0;
  font-weight: 600;
}
.rp-sched fieldset {
  margin: 0.6rem 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
}
@media (max-width: 600px) {
  .rp-table {
    font-size: 0.82rem;
  }
}
.rp-bar button,
.rp-actions a,
.rp-actions button,
.rp-sched button,
.mine-report a.button {
  display: inline-block;
  border: 1px solid var(--c-amber-78);
  background: var(--c-amber-97);
  color: inherit;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.rp-bar label,
.rp-sched label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}
.rp-sched label.check {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

/* V197 : consommation de l'assistant */
.aic-gauge {
  height: 10px;
  border-radius: 6px;
  background: var(--line, #e5e7eb);
  overflow: hidden;
}
.aic-gauge span {
  display: block;
  height: 100%;
  background: var(--c-green-29);
}
.aic-gauge span.warn {
  background: #d97706;
}
.aic-gauge span.over {
  background: var(--c-red-42);
}
.aic-lim {
  color: var(--c-red-42);
  font-size: 0.8rem;
}

/* V201c : validation groupée et vue « Lignes » (compacte) des réservations. */
#sel-val,
#sel-disp {
  background: var(--theme-primary, #1f2a3a);
  color: var(--theme-on-primary, #fff);
  border: 1px solid var(--theme-primary, #1f2a3a);
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 600;
}
.rr-switch {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 3px;
  margin-left: 8px;
}
.rr-switch button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 14px;
  min-height: 36px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}
.rr-switch button[aria-pressed='true'] {
  background: var(--c-white);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.rr-portrait {
  display: none;
}
.rr-table {
  background: var(--c-white);
  border: 1px solid var(--theme-border, #e3e6ea);
  border-radius: 14px;
  overflow-x: auto;
  color: var(--theme-text, #1f2328);
}
.rr-head,
.rr-row {
  display: grid;
  grid-template-columns: 56px 52px minmax(150px, 1.2fr) minmax(220px, 2fr) 150px 70px 96px 118px 120px 92px;
  align-items: center;
  column-gap: 8px;
  padding: 0 12px;
  min-width: 1080px;
}
.rr-admin .rr-head,
.rr-admin .rr-row {
  grid-template-columns: 34px 56px 52px minmax(150px, 1.2fr) minmax(220px, 2fr) 150px 70px 96px 118px 120px 92px;
  min-width: 1120px;
}
.rr-head {
  height: 38px;
  background: var(--c-gray-97);
  border-bottom: 1px solid var(--theme-border, #e3e6ea);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-gray-40);
}
.rr-day {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 1080px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--theme-accent, #c07a4e) 9%, var(--c-white));
  border-bottom: 1px solid var(--theme-border, #e3e6ea);
  font-size: 13px;
}
.rr-day strong {
  display: inline-block;
}
/* V201h : case de la barre du jour (le style général des libellés et cases la rendait haute de 48 px). */
.rr-day .rr-sel {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.rr-day .rr-sel input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
}
.rr-day strong::first-letter {
  text-transform: uppercase;
}
.rr-day span {
  color: var(--c-gray-40);
}
.rr-row {
  min-height: 52px;
  border-bottom: 1px solid var(--c-gray-94-eef0f3);
  font-size: 13.5px;
}
.rr-row:hover {
  background: #fafbfc;
}
.rr-row > span,
.rr-row > strong {
  min-width: 0;
}
.rr-sel input {
  width: 20px;
  height: 20px;
  margin: 0;
}
.rr-id {
  color: var(--c-gray-40);
  font-variant-numeric: tabular-nums;
}
.rr-time {
  font-variant-numeric: tabular-nums;
}
.rr-who {
  display: flex;
  flex-direction: column;
}
.rr-open {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-who small,
.rr-flight small {
  font-size: 12px;
  color: var(--c-gray-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-route {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rr-route span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-route span:first-child {
  max-width: 48%;
}
.rr-route b {
  color: #8a939e;
  font-weight: 400;
}
.rr-flight {
  display: flex;
  flex-direction: column;
}
.rr-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rr-warn {
  color: #8a3a0c;
  font-size: 12.5px;
}
.rr-driver {
  color: var(--c-gray-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-act {
  border: 1px solid var(--theme-border, #d5d9df);
  background: var(--c-white);
  border-radius: 9px;
  min-height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.rr-more {
  font-size: 18px;
  justify-self: end;
}
/* Ordinateur portable ou fenêtre réduite (1001 à 1400 px) : N° masqué et colonnes resserrées, toute la ligne tient sans
   défilement horizontal. */
@media (min-width: 1001px) and (max-width: 1400px) {
  .rr-head,
  .rr-row {
    grid-template-columns: 50px minmax(110px, 1.2fr) minmax(140px, 2fr) 120px 64px 88px 108px minmax(80px, 0.8fr) 96px;
    column-gap: 8px;
    padding: 0 10px;
    min-width: 0;
  }
  .rr-admin .rr-head,
  .rr-admin .rr-row {
    grid-template-columns:
      28px 50px minmax(110px, 1.2fr) minmax(140px, 2fr) 120px 64px 88px 108px minmax(80px, 0.8fr)
      96px;
    min-width: 0;
  }
  .rr-day {
    min-width: 0;
  }
  .rr-id {
    display: none;
  }
  .rr-act {
    padding: 0 8px;
    font-size: 12.5px;
  }
}
/* Écran étroit (téléphone en paysage, tablette) : colonnes resserrées, la liste glisse vers la droite. */
@media (max-width: 1000px) {
  /* V201h : toutes les colonnes restent (N°, passagers, chauffeur, bouton) ; la liste glisse vers la droite, la case et
     l'heure restent visibles à gauche. */
  .rr-table {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .rr-head,
  .rr-row {
    grid-template-columns: 44px 46px minmax(120px, 1fr) minmax(170px, 1.4fr) 110px 56px 80px 104px 100px 88px;
    column-gap: 6px;
    padding: 0 8px;
    min-width: 960px;
  }
  .rr-admin .rr-head,
  .rr-admin .rr-row {
    grid-template-columns: 30px 44px 46px minmax(120px, 1fr) minmax(170px, 1.4fr) 110px 56px 80px 104px 100px 88px;
    min-width: 1000px;
  }
  .rr-day {
    min-width: 1000px;
  }
  .rr-day > .rr-sel {
    position: sticky;
    left: 8px;
  }
  .rr-day > strong {
    position: sticky;
    left: 38px;
  }
  .rr-row > .rr-sel {
    position: sticky;
    left: 0;
    z-index: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: var(--c-white);
    box-shadow: 6px 0 6px -6px var(--c-black-a18);
  }
  .rr-row {
    font-size: 12.5px;
  }
  .rr-status .ride-badge {
    font-size: 11.5px;
    padding: 3px 8px;
  }
  .rr-act {
    padding: 0 8px;
    font-size: 12.5px;
  }
  .rr-route {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .rr-route span,
  .rr-route span:first-child {
    max-width: 100%;
  }
  .rr-route span:last-child::before {
    content: '→ ';
    color: #8a939e;
  }
  .rr-route b {
    display: none;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  .rr-mode .rr-table {
    display: none;
  }
  .rr-mode .rr-portrait {
    display: block;
    text-align: center;
    padding: 32px 16px;
    background: var(--c-white);
    border-radius: 14px;
  }
  .rr-portrait p {
    margin: 0 0 8px;
  }
  .rr-back {
    margin-top: 8px;
    min-height: 44px;
  }
}
/* La barre des réservations force ses boutons (transparents, couleur d'accent) : la bascule garde ses couleurs lisibles. */
.reservation-toolbar .rr-switch button {
  color: #3d444d !important;
  background: transparent !important;
  min-height: 36px;
  padding: 0 14px;
}
.reservation-toolbar .rr-switch button[aria-pressed='true'] {
  color: var(--c-gray-14) !important;
  background: var(--c-white) !important;
}
/* Audit 2026-10 : styles qui étaient écrits en ligne dans le HTML généré (bloqués par la politique de sécurité CSP) */
.input-full {
  width: 100%;
}
.mt-alert {
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
}
