/* Page-specific rules. The design system itself (tokens, components, app shell) is in theme.css. */

.validation-summary-valid {
  display: none;
}

/* Bootstrap's display utilities (d-flex and the like) are !important and would otherwise show an element marked hidden */
[hidden] {
  display: none !important;
}

/* The installed app has nothing left to install (D-110) */
@media (display-mode: standalone) {
  [data-install-link] {
    display: none;
  }
}

/* Reserves the line of each validation message, so clearing one on blur does not move the submit button out from under the click */
.field-validation-valid,
.field-validation-error {
  display: block;
  min-height: 1.375rem;
  margin-top: 0.125rem;
  line-height: 1.375rem;
}

/* That reserved line already spaces the fields: the usual margin under them would double it */
.mb-3:has(> .field-validation-valid, > .field-validation-error) {
  margin-bottom: 0.375rem !important;
}

.color-swatch {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  vertical-align: 0.02em;
}

/* Agenda (EventCalendar). Each event carries its practitioner's color in --lu-couleur, and the text color that reads
   on it in --lu-couleur-texte (agenda.js).
   Every rule goes through .agenda-surface, since event-calendar.min.css loads after this file. */
.agenda-surface .ec {
  color-scheme: light;
  --ec-bg-color: var(--lu-surface);
  --ec-day-bg-color: var(--lu-surface);
  --ec-border-color: var(--lu-trait);
  --ec-today-bg-color: var(--lu-surface);
  --ec-highlight-color: var(--lu-voile);
  --ec-button-bg-color: var(--lu-surface);
  --ec-button-border-color: var(--lu-trait-fort);
  --ec-button-text-color: var(--lu-encre);
  --ec-button-active-bg-color: var(--lu-action);
  --ec-button-active-border-color: var(--lu-action);
  --ec-button-active-text-color: var(--lu-action-texte);
  --ec-now-indicator-color: var(--lu-maintenant);
  font-variant-numeric: tabular-nums;
}

/* The library's dark mode sets these values through a class of its own, which would bring its own greys */
@media screen {
  [data-bs-theme=dark] .agenda-surface .ec {
    color-scheme: dark;
    --ec-color-400: var(--lu-trait-fort);
    --ec-color-300: var(--lu-trait);
    --ec-color-200: var(--lu-voile);
    --ec-color-100: var(--lu-surface);
    --ec-color-50: var(--lu-papier);
    --ec-bg-event-opacity: 0.5;
  }
}

/* The browser scrolls up and down and zooms, and leaves a sideways slide to agenda.js, which turns the day. The rule
   stops at the nearest box that scrolls, so the hours' zone of Jour and Semaine needs it too. */
.agenda-surface .ec,
.agenda-surface .ec .ec-main {
  touch-action: pan-y pinch-zoom;
}

.agenda-surface .ec .ec-toolbar {
  margin-bottom: 0.875rem;
}

/* EventCalendar sticks the day heads to the top of .ec-main, its own scroll box. Jour and Semaine scroll their hours
   in it (agenda.js). A list keeps the height of its days, so its box never scrolls: clip hides the overflow without
   making a scroll box, and the heads stick to the screen while the page scrolls. */
.agenda-surface [data-view^="list"] .ec .ec-main {
  overflow: clip;
}

.agenda-surface .ec .ec-title {
  font-family: var(--lu-police-titre);
  font-size: 1.375rem;
  font-weight: 400;
}

.agenda-surface .ec .ec-title::first-letter {
  text-transform: uppercase;
}

.agenda-surface .ec .ec-button {
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--lu-rayon);
  font-size: 0.875rem;
  font-weight: 600;
}

.agenda-surface .ec .ec-button:not(:disabled):not(.ec-active):hover {
  background: var(--lu-voile);
  /* The library hovers with the active button's pale text and night border, unreadable on this veil */
  color: var(--ec-button-text-color);
  border-color: var(--ec-button-border-color);
}

.agenda-surface .ec .ec-button:disabled {
  color: var(--lu-mousse);
}

.agenda-surface .ec :is(.ec-col-head, .ec-col-group) {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
}

/* A day's head: its weekday above its number. Today's number sits in the ding, the glow that marks what is now.
   In the day view, the day's head is the group above its practitioners (agenda.js). */
.agenda-surface .ec :is(.ec-col-head, .ec-col-group) .agenda-weekday {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--lu-mousse);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agenda-surface .ec :is(.ec-col-head, .ec-col-group) .agenda-monthday {
  display: inline-grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  margin-top: 0.125rem;
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--lu-encre);
}

.agenda-surface .ec :is(.ec-col-head, .ec-col-group).ec-today .agenda-weekday {
  color: var(--lu-encre);
}

.agenda-surface .ec :is(.ec-col-head, .ec-col-group).ec-today .agenda-monthday {
  background: var(--lu-lueur);
  color: var(--lu-encre-fixe);
  box-shadow: 0 0 0 2px var(--lu-nuit);
}

/* In the week, today's column takes a veil, so the eye lands on it first. In the day view every column is today. */
.agenda-surface [data-view="timeGridWeek"] .ec {
  --ec-today-bg-color: var(--lu-voile);
}

.agenda-surface .ec .ec-sidebar {
  color: var(--lu-mousse);
  font-size: 0.8125rem;
}

/* The current time: a night line, and the ding at its start */
.agenda-surface .ec .ec-now-indicator::before {
  background: var(--lu-lueur);
  box-shadow: 0 0 0 2px var(--lu-nuit);
}

.agenda-surface .ec .ec-event {
  border-radius: 5px;
  padding: 3px 5px;
  cursor: pointer;
}

/* The practitioner's color as chosen in Professionnels, not a tint of it. A paper line around it, as Google Calendar
   draws one, keeps overlapping and back-to-back appointments apart. */
.agenda-surface .ec .ec-event:not(.ec-list .ec-event) {
  color: var(--lu-couleur-texte, var(--lu-blanc));
  background-color: var(--lu-couleur, var(--lu-trait-fort)) !important;
  box-shadow: 0 0 0 1px var(--lu-surface), inset 0 0 0 1px var(--lu-contour-couleur);
}

.agenda-surface .ec .ec-event-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.agenda-surface .ec .ec-event-time {
  font-size: 0.8125rem;
  color: var(--lu-mousse);
}

/* The title is an h4, which Bootstrap colors on its own */
.agenda-surface .ec .ec-event:not(.ec-list .ec-event) :is(.ec-event-title, .ec-event-time) {
  color: inherit;
}

.agenda-surface .ec .ec-event:not(.ec-list .ec-event) .ec-event-time {
  opacity: 0.85;
}

/* A patient's first appointment (P1-43, P1-58): the « new patient » icon. In the agenda it comes from the event's
   class, since EventCalendar redraws a title and would drop an element put in it. In the list and outside the agenda
   it leads a night « 1re visite » label, which teaches what the icon means. A patient's first appointment with another
   practitioner of the clinic gets two people instead (P1-69). */
.agenda-premiere-badge,
.agenda-surface .ec-list .ec-event:is(.agenda-premiere, .agenda-premiere-pro) .ec-event-title::before {
  display: inline-block;
  margin-inline-end: 0.3rem;
  padding: 0.05rem 0.3rem 0.05rem 1.1rem;
  border-radius: calc(var(--lu-rayon) / 2);
  background: url("../icons/nouveau-patient.svg") no-repeat 0.3rem center / 0.65rem, var(--lu-etiquette);
  color: var(--lu-blanc);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: 0.08em;
}

.agenda-surface .ec-list .ec-event.agenda-premiere .ec-event-title::before {
  content: "1re visite";
}

.agenda-premiere-badge.agenda-premiere-pro,
.agenda-surface .ec-list .ec-event.agenda-premiere-pro .ec-event-title::before {
  background-image: url("../icons/nouveau-professionnel.svg");
}

.agenda-surface .ec-list .ec-event.agenda-premiere-pro .ec-event-title::before {
  content: "1re avec ce professionnel";
}

/* The same labels on an English page (docs/decisions/0047-l-app-en-anglais.md) */
:lang(en) .agenda-surface .ec-list .ec-event.agenda-premiere .ec-event-title::before {
  content: "1st visit";
}

:lang(en) .agenda-surface .ec-list .ec-event.agenda-premiere-pro .ec-event-title::before {
  content: "1st with this practitioner";
}

/* In the grid, the icon alone at the start of the time line: an overlapping appointment covers the right of another,
   never its left. It takes the appointment's text color, so it reads on any practitioner's color. */
.agenda-surface .ec .ec-event:is(.agenda-premiere, .agenda-premiere-pro):not(.ec-list .ec-event) .ec-event-time::before,
.agenda-legende-icone {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-inline-end: 0.25rem;
  vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: url("../icons/nouveau-patient.svg") center / contain no-repeat;
  mask: url("../icons/nouveau-patient.svg") center / contain no-repeat;
}

.agenda-surface .ec .ec-event.agenda-premiere-pro:not(.ec-list .ec-event) .ec-event-time::before,
.agenda-legende-icone.agenda-premiere-pro {
  -webkit-mask-image: url("../icons/nouveau-professionnel.svg");
  mask-image: url("../icons/nouveau-professionnel.svg");
}

/* An appointment whose patient left without paying (P2-19): a dollar sign at the end of the time line in the grid, and
   a night « À payer » label after the name in the list and on the patient's record */
.agenda-surface .ec .ec-event.agenda-a-payer:not(.ec-list .ec-event) .ec-event-time::after {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-inline-start: 0.25rem;
  vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: url("../icons/a-payer.svg") center / contain no-repeat;
  mask: url("../icons/a-payer.svg") center / contain no-repeat;
}

.agenda-legende-icone.agenda-a-payer {
  -webkit-mask-image: url("../icons/a-payer.svg");
  mask-image: url("../icons/a-payer.svg");
}

.agenda-surface .ec-list .ec-event.agenda-a-payer .ec-event-title::after {
  content: "À payer";
  display: inline-block;
  margin-inline-start: 0.3rem;
  padding: 0.05rem 0.3rem 0.05rem 1.1rem;
  border-radius: calc(var(--lu-rayon) / 2);
  background: url("../icons/a-payer.svg") no-repeat 0.3rem center / 0.65rem, var(--lu-etiquette);
  color: var(--lu-blanc);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: 0.08em;
}

:lang(en) .agenda-surface .ec-list .ec-event.agenda-a-payer .ec-event-title::after {
  content: "Unpaid";
}

.agenda-premiere-badge.agenda-a-payer {
  background-image: url("../icons/a-payer.svg");
  text-decoration: none;
}

/* The legend over the agenda holds on one line, a phone's included (JD, 2026-10-28) */
.agenda-legende {
  display: flex;
  column-gap: 1rem;
  overflow: hidden;
  white-space: nowrap;
}

/* A free slot is a path not taken yet: dashed, in its practitioner's color */
.agenda-surface .ec .ec-event.agenda-slot:not(.ec-list .ec-event) {
  color: var(--lu-mousse);
  background-color: var(--lu-surface) !important;
  border: 1.5px dashed var(--lu-couleur, var(--lu-trait-fort));
}

.agenda-surface .ec .ec-event.agenda-slot .ec-event-title {
  color: var(--lu-mousse);
  font-weight: 400;
}

.agenda-surface .ec .ec-event.agenda-cancelled {
  opacity: 0.55;
  text-decoration: line-through;
}

/* A note (P1-61) is neither a practitioner's appointment nor a free slot: grey, in ink, led by a note icon */
.agenda-surface .ec .ec-event.agenda-note:not(.ec-list .ec-event) {
  color: var(--lu-encre);
  background-color: var(--lu-voile) !important;
  box-shadow: inset 0 0 0 1px var(--lu-trait-fort), 0 0 0 1px var(--lu-surface);
}

.agenda-surface .ec .ec-event.agenda-note .ec-event-title::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-inline-end: 0.25rem;
  vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: url("../icons/note.svg") center / contain no-repeat;
  mask: url("../icons/note.svg") center / contain no-repeat;
}

/* A personal note (P1-93) reaches its practitioner alone, who tells it from the others by its lock */
.agenda-surface .ec .ec-event.agenda-note.agenda-note-personnelle .ec-event-title::before {
  -webkit-mask-image: url("../icons/cadenas.svg");
  mask-image: url("../icons/cadenas.svg");
}

.agenda-surface .ec-list .ec-event.agenda-note .ec-event-tag {
  background: var(--lu-trait-fort) !important;
  border-radius: 2px;
}

/* The day's list, on a phone */
.agenda-surface .ec-list .ec-day-head {
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 650;
  background: var(--lu-papier);
}

.agenda-surface .ec-list .ec-day-head * {
  font-size: inherit;
}

.agenda-surface .ec-list .ec-event {
  align-items: center;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--lu-trait);
  min-height: 3.25rem;
}

.agenda-surface .ec-list .ec-event-tag {
  inline-size: 0.625rem;
  block-size: 0.625rem;
  border-radius: 50%;
  margin-inline-end: 0.75rem;
  flex: none;
}

.agenda-surface .ec-list .ec-event.agenda-slot .ec-event-tag {
  background: transparent !important;
  border: 1.5px dashed var(--lu-couleur, var(--lu-trait-fort));
}

/* A practitioner's dark color would vanish on the dark mode's surfaces: a free slot's outline takes a paler one, and a
   colored dot its edge */
@media screen {
  [data-bs-theme=dark] .agenda-surface .ec .ec-event.agenda-slot:not(.ec-list .ec-event),
  [data-bs-theme=dark] .agenda-surface .ec-list .ec-event.agenda-slot .ec-event-tag {
    border-color: color-mix(in srgb, var(--lu-couleur, var(--lu-trait-fort)) 60%, var(--lu-blanc));
  }

  [data-bs-theme=dark] .agenda-surface .ec-list .ec-event:not(.agenda-slot) .ec-event-tag,
  [data-bs-theme=dark] .color-swatch {
    box-shadow: 0 0 0 1px var(--lu-contour-couleur);
  }
}

/* A free slot kept off the booking page: dotted, which also tells it apart in the phone's week, where its text no longer fits */
.agenda-surface .ec .ec-event.agenda-hors-ligne:not(.ec-list .ec-event),
.agenda-surface .ec-list .ec-event.agenda-hors-ligne .ec-event-tag {
  border-style: dotted;
}

.agenda-surface .ec-list .ec-event-time {
  min-width: 6.5rem;
  font-size: 0.875rem;
}

.agenda-surface .ec-list .ec-event-title {
  font-size: 1rem;
}

.agenda-surface .ec .ec-no-events {
  color: var(--lu-mousse);
  padding: 3rem 0;
}

.agenda-surface {
  background: var(--lu-surface);
  border: 1px solid var(--lu-trait);
  border-radius: var(--lu-rayon-grand);
  padding: 0.875rem;
}

/* A phone keeps its height for the appointments (JD, 2026-11-11, P1-92): what stands above them is as low as it reads */
@media (max-width: 767.98px) {
  /* The tab at the bottom already says Agenda, so the buttons take the title's row. The title stays for a screen reader. */
  .agenda-entete {
    gap: 0.5rem;
    margin-bottom: 0.625rem;
  }

  .agenda-entete > h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .agenda-entete > .btn {
    min-height: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.9375rem;
  }

  .agenda-entete > .btn-primary {
    flex: 1;
  }

  .agenda-surface {
    padding: 0.5rem 0 0;
    border-radius: var(--lu-rayon);
  }

  .agenda-surface .ec-toolbar {
    padding: 0 0.625rem;
  }

  /* Two rows: the arrows and the date, then today and the views (agenda.js) */
  .agenda-surface .ec .ec-toolbar {
    flex-wrap: wrap;
    row-gap: 0.375rem;
    margin-bottom: 0.5rem;
  }

  .agenda-surface .ec .ec-button {
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
  }

  .agenda-surface .ec .ec-toolbar > :is(:first-child, :last-child) {
    flex: 1 0 100%;
    align-items: center;
  }

  .agenda-surface .ec .ec-toolbar > :last-child {
    justify-content: space-between;
  }

  .agenda-surface .ec .ec-title {
    font-size: 1.125rem;
  }

  /* The date is by the arrows already, so the day's list does not repeat it in a band of its own */
  .agenda-surface [data-view="listDay"] .ec .ec-day-head {
    display: none;
  }

  .agenda-surface .ec-list .ec-event {
    padding-block: 0.5rem;
  }

  /* « 7h » needs no more of the width, which goes to the days */
  .agenda-surface .ec.ec-time-grid .ec-sidebar {
    padding-inline: 0.25rem;
    font-size: 0.75rem;
  }

  /* Seven days across a phone, as in Google Calendar: the name alone, small, wrapping where it must */
  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event {
    padding: 1px 2px;
  }

  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event-time {
    display: none;
  }

  /* A first visit or an appointment to be paid keeps its time line for its icons alone, smaller, above the name rather
     than across its width. The :not() matches the grid's own rules, which the smaller size must outweigh. */
  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event:is(.agenda-premiere, .agenda-premiere-pro, .agenda-a-payer):not(.ec-list .ec-event) .ec-event-time {
    display: block;
    font-size: 0;
    line-height: 0;
  }

  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event:is(.agenda-premiere, .agenda-premiere-pro):not(.ec-list .ec-event) .ec-event-time::before,
  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event.agenda-a-payer:not(.ec-list .ec-event) .ec-event-time::after {
    width: 0.5625rem;
    height: 0.5625rem;
    margin: 0;
  }

  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event.agenda-a-payer:is(.agenda-premiere, .agenda-premiere-pro):not(.ec-list .ec-event) .ec-event-time::after {
    margin-inline-start: 0.125rem;
  }

  /* A name breaks between two syllables where the browser can, rather than anywhere */
  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event-title {
    font-size: 0.6875rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  /* A free slot is its dashed outline: « Libre » no longer fits */
  .agenda-surface [data-view="timeGridWeek"] .ec .ec-event.agenda-slot .ec-event-title {
    visibility: hidden;
  }

  .agenda-surface [data-view="timeGridWeek"] .ec .ec-col-head {
    padding: 0.25rem 0;
    font-size: 0.75rem;
  }

  .agenda-surface [data-view="timeGridWeek"] .ec .ec-col-head .agenda-monthday {
    width: 1.625rem;
    height: 1.625rem;
    margin-top: 0;
    font-size: 0.9375rem;
  }
}

/* The signature's frame (P2-15): paper to sign on, three times as wide as tall, where the finger draws rather than
   scrolls the page. The ink takes the canvas's colour (signature-pad.js), and that ink goes on a receipt's white page,
   so the frame stays white in the dark mode, and so does a saved signature's picture, whose ground is transparent. */
.signature-pad {
  display: block;
  width: 100%;
  max-width: 37.5rem;
  aspect-ratio: 3 / 1;
  color: var(--lu-encre-fixe);
  background: var(--lu-blanc);
  border: 1px solid var(--lu-trait-fort);
  border-radius: var(--lu-rayon);
  touch-action: none;
  cursor: crosshair;
}

.signature-image {
  display: block;
  max-width: 100%;
  max-height: 6rem;
  padding: 0.25rem;
  background: var(--lu-blanc);
  border: 1px solid var(--lu-trait);
  border-radius: var(--lu-rayon);
}

.signature-image-petite {
  max-height: 3rem;
}

/* Public booking page: narrow enough to read in the clinic's site */
.booking-container {
  max-width: 46rem;
}

/* A day name that starts a line takes a capital: « Mardi 20 octobre » */
.first-letter-upper::first-letter {
  text-transform: uppercase;
}

/* Free text typed on several lines, such as a patient's notes */
.keep-line-breaks {
  white-space: pre-line;
}

/* On a phone, the whole row of the patients list opens the record, so a touch that misses the name still gets there,
   and the number is only read there (JD, 2026-10-28) */
@media (max-width: 767.98px) {
  .patient-list > tbody > tr {
    position: relative;
  }

  .patient-list .patient-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .patient-list .patient-phone {
    color: var(--lu-mousse);
    font-size: 0.875em;
  }

  .patient-list .patient-phone .contact-lien {
    text-decoration-line: none;
  }
}

/* The privacy notice unfolds under the booking form. Its sentence opens it, and the end of the sentence reads as the
   theme's links. */
.booking-avis > summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.booking-avis > summary::-webkit-details-marker {
  display: none;
}

.booking-avis-lien {
  color: var(--lu-encre);
  text-decoration-line: underline;
  text-decoration-color: var(--lu-trait);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.booking-avis > summary:hover .booking-avis-lien {
  text-decoration-color: currentColor;
}

/* In an iframe of the clinic's site, the site shows its own header */
.booking-embedded .booking-header {
  display: none;
}

.booking-embedded body {
  padding-top: 0.5rem;
}

/* The clinic's color, chosen in the Intégration page */
.booking-colored .btn-primary {
  --bs-btn-bg: var(--booking-color);
  --bs-btn-border-color: var(--booking-color);
  --bs-btn-hover-bg: var(--booking-color);
  --bs-btn-hover-border-color: var(--booking-color);
  --bs-btn-active-bg: var(--booking-color);
  --bs-btn-active-border-color: var(--booking-color);
}

.booking-colored .btn-outline-primary {
  --bs-btn-color: var(--booking-color);
  --bs-btn-border-color: var(--booking-color);
  --bs-btn-hover-bg: var(--booking-color);
  --bs-btn-hover-border-color: var(--booking-color);
  --bs-btn-hover-color: var(--lu-blanc);
  --bs-btn-active-bg: var(--booking-color);
  --bs-btn-active-border-color: var(--booking-color);
  --bs-btn-active-color: var(--lu-blanc);
}

.booking-colored .btn-primary:hover,
.booking-colored .btn-outline-primary:hover {
  filter: brightness(0.9);
}

.booking-colored .nav-pills {
  --bs-nav-pills-link-active-bg: var(--booking-color);
}

.booking-colored .nav-pills .nav-link.active {
  border-color: var(--booking-color);
}

/* Off screen rather than display: none, which some robots skip */
.booking-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Patient pages: white, since they often sit inside the clinic's own site */
.lu-reservation {
  --bs-body-bg: var(--lu-surface);
  background: var(--lu-surface);
}

.booking-header {
  border-bottom: 1px solid var(--lu-trait);
  padding: 1.125rem 0;
}

.booking-clinique {
  font-family: var(--lu-police-titre);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--lu-encre);
  text-decoration: none;
}

/* An hour to choose: big enough for any finger, the practitioner's name under the time */
.booking-slot {
  min-width: 5.5rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  line-height: 1.2;
}

.booking-slot .small {
  font-weight: 400;
  margin-top: 0.125rem;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.5rem;
}

/* Wide enough for the practitioner's name on one line */
.booking-slots-names {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}

/* A phone number or an email address that opens its menu (P1-65): it reads as a link, in the colour of the text around it */
.contact-lien {
  padding: 0.125rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--lu-trait-fort);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact-lien:hover,
.contact-lien[aria-expanded=true] {
  text-decoration-color: currentColor;
}

.contact-copie {
  margin-left: 0.375rem;
  color: var(--lu-succes);
  font-size: 0.875em;
}

/* What a receipt says, each label beside its value (ADR 0044) */
.receipt-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
}

.receipt-facts dt {
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.receipt-facts dd {
  margin: 0;
}

/* The reports' filters, side by side on a computer, two by two on a phone (D-91) */
.rapport-filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.rapport-filtres .form-select,
.rapport-filtres .form-control {
  width: auto;
}

@media (max-width: 575.98px) {
  .rapport-filtres > div {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .rapport-filtres .form-select,
  .rapport-filtres .form-control,
  .rapport-afficher .btn {
    width: 100%;
  }
}

/* A report's figures, each label over its value */
.rapport-sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-bottom: 0;
}

.rapport-sommaire dt {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.rapport-sommaire dd {
  margin: 0;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* The footer's language switch posts a form, but reads as the link beside it (docs/decisions/0047-l-app-en-anglais.md) */
.lu-pied-langue {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lu-encre);
  font: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--lu-trait-fort);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.lu-pied-langue:hover {
  text-decoration-color: currentColor;
}

/* Printed or saved as a PDF: the report alone, which names what it covers in place of the filters */
@media print {
  .lu-barre,
  .lu-pied,
  [data-report-filters],
  [data-report-export],
  [data-report-print],
  .rapport-periode a {
    display: none !important;
  }

  body.lu-app.lu-avec-onglets {
    padding-bottom: 0;
  }
}
