/* =========================================================================
   IZIFLO DESIGN SYSTEM - BOOTSTRAP SKIN (Workshop / Parts pages)
   -------------------------------------------------------------------------
   Restyles the existing Bootstrap 5.3 components through their own
   selectors and CSS variables: no template change. Loaded by the Workshop
   and Parts headers, between ds-core.css and the module palette file.

   Rules:
   - Skin properties only: colours, borders, radii, shadows, font weight.
     Never sizes, paddings, line-heights or display, except in the SCALE
     section (fixed scale replacing the legacy resolution-based sizing).
   - Prefer Bootstrap's own variables (`--bs-btn-*`...) over properties.
   - `!important` only where the design system says so: `border-radius`
     (see ds-core.css) and `box-shadow` on the `.shadow*` utilities, which
     components.scss compiles with a literal value + `!important`.
   - Selectors are prefixed with `html.ds-on body` and the file is loaded
     last in <head>, so it overrides components.scss without `!important`.
   - `btn-figure` (round icon buttons) and `btn-tag` (pills) are already in
     the target style and are left untouched.

   Where to add a rule (several developers work on this file, SVN):
   - A rule for one page goes to its page sheet
     (resources/css/ds/pages/workshop|parts/<module>-<view>.css), never here.
   - Here, only what several pages share. Insert the new block just ABOVE the
     "END FAMILY" marker of its family (FAMILIES, at the end of this file),
     never at the very end of the file: each family has its own insertion
     point, so SVN merges the work of different families by itself.
   - Never move or reorder existing blocks: the cascade order would change.
     A rule placed in a family can lose against an equal rule further down:
     check the result in the page after inserting.
   - Missing family: add a FAMILY / END FAMILY pair between two existing
     families (announce it to the team) and the same section in
     docs/design-system/workshop.md or parts.md.
   ========================================================================= */


/* -------------------------------------------------------------------------
   BUTTONS
   Mapping:
     btn-primary, btn-success          -> primary (module colour)
     btn-outline-primary,
     btn-outline-success               -> outline, module colour
     btn-secondary                     -> tonal (soft module colour)
     btn-outline-secondary             -> neutral outline
     btn-warning / btn-outline-warning -> accent
     btn-danger / btn-outline-danger   -> danger
   ------------------------------------------------------------------------- */

/* Shape shared by every button */
html.ds-on body .btn {
    --bs-btn-border-radius: 10px;
    --bs-btn-font-weight: 600;
    --bs-btn-box-shadow: none;
    --bs-btn-focus-box-shadow: var(--ds-focus-ring);
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
html.ds-on body .btn-sm,
html.ds-on body .btn-group-sm > .btn {
    --bs-btn-border-radius: 8px;
}
html.ds-on body .btn-lg,
html.ds-on body .btn-group-lg > .btn {
    --bs-btn-border-radius: 12px;
}

/* Primary: module colour (success is the "validate" action in Workshop) */
html.ds-on body .btn-primary,
html.ds-on body .btn-success {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--ds-primary);
    --bs-btn-border-color: var(--ds-primary);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--ds-primary-strong);
    --bs-btn-hover-border-color: var(--ds-primary-strong);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--ds-primary-deep);
    --bs-btn-active-border-color: var(--ds-primary-deep);
    --bs-btn-disabled-color: #FFFFFF;
    --bs-btn-disabled-bg: var(--ds-primary);
    --bs-btn-disabled-border-color: var(--ds-primary);
}

/* Outline in the module colour */
html.ds-on body .btn-outline-primary,
html.ds-on body .btn-outline-success {
    --bs-btn-color: var(--ds-primary);
    --bs-btn-bg: var(--ds-surface);
    --bs-btn-border-color: var(--ds-primary);
    --bs-btn-hover-color: var(--ds-primary-strong);
    --bs-btn-hover-bg: var(--ds-primary-tint);
    --bs-btn-hover-border-color: var(--ds-primary);
    --bs-btn-active-color: var(--ds-primary-strong);
    --bs-btn-active-bg: var(--ds-primary-soft);
    --bs-btn-active-border-color: var(--ds-primary);
}

/* Accent */
html.ds-on body .btn-warning {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--ds-accent);
    --bs-btn-border-color: var(--ds-accent);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--ds-accent-strong);
    --bs-btn-hover-border-color: var(--ds-accent-strong);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--ds-accent-strong);
    --bs-btn-active-border-color: var(--ds-accent-strong);
}

/* Danger */
html.ds-on body .btn-danger {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--ds-danger);
    --bs-btn-border-color: var(--ds-danger);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--ds-danger-strong);
    --bs-btn-hover-border-color: var(--ds-danger-strong);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--ds-danger-strong);
    --bs-btn-active-border-color: var(--ds-danger-strong);
}
html.ds-on body .btn-outline-danger {
    --bs-btn-color: var(--ds-danger);
    --bs-btn-bg: var(--ds-surface);
    --bs-btn-border-color: var(--ds-danger);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--ds-danger);
    --bs-btn-hover-border-color: var(--ds-danger);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--ds-danger-strong);
    --bs-btn-active-border-color: var(--ds-danger-strong);
}

/* Secondary: tonal (soft module colour) */
html.ds-on body .btn-secondary {
    --bs-btn-color: var(--ds-primary-strong);
    --bs-btn-bg: var(--ds-primary-soft);
    --bs-btn-border-color: var(--ds-primary-soft);
    --bs-btn-hover-color: var(--ds-primary-deep);
    --bs-btn-hover-bg: var(--ds-primary-tint);
    --bs-btn-hover-border-color: var(--ds-primary-soft);
    --bs-btn-active-color: var(--ds-primary-deep);
    --bs-btn-active-bg: var(--ds-primary-soft);
    --bs-btn-active-border-color: var(--ds-primary-soft);
}

/* Neutral outline */
html.ds-on body .btn-outline-secondary {
    --bs-btn-color: var(--ds-text);
    --bs-btn-bg: var(--ds-surface);
    --bs-btn-border-color: var(--ds-border-strong);
    --bs-btn-hover-color: var(--ds-text);
    --bs-btn-hover-bg: var(--ds-surface-2);
    --bs-btn-hover-border-color: var(--ds-border-strong);
    --bs-btn-active-color: var(--ds-text);
    --bs-btn-active-bg: var(--ds-divider);
    --bs-btn-active-border-color: var(--ds-border-strong);
}

/* Accent outline */
html.ds-on body .btn-outline-warning {
    --bs-btn-color: var(--ds-accent-strong);
    --bs-btn-bg: var(--ds-surface);
    --bs-btn-border-color: var(--ds-accent);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--ds-accent);
    --bs-btn-hover-border-color: var(--ds-accent);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--ds-accent-strong);
    --bs-btn-active-border-color: var(--ds-accent-strong);
}


/* -------------------------------------------------------------------------
   FONT - Inter on the whole page, through Bootstrap's own variables
   (body, form controls and Select2 inherit them).
   ------------------------------------------------------------------------- */
html.ds-on {
    --bs-font-sans-serif: var(--ds-font);
    --bs-body-font-family: var(--ds-font);
}
html.ds-on body button,
html.ds-on body input,
html.ds-on body select,
html.ds-on body textarea,
html.ds-on body figure.user-initial-name {
    font-family: var(--ds-font);
}


/* -------------------------------------------------------------------------
   FORM FIELDS - Bootstrap form controls
   Background kept (white, or green for `.filled` fields); radius and border
   through Bootstrap's variables. Focus and checked states use `:where()` so
   that validation states (`is-invalid`, `is-valid`, `.error`) still win.
   Select2 is skinned in ds-core.css (shared with Sales).
   ------------------------------------------------------------------------- */
html.ds-on body .form-control,
html.ds-on body .form-select {
    --bs-border-radius: 8px;
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: 10px;
    --bs-border-color: var(--ds-border-strong);
}
/* Checkboxes / radios read `--bs-border-color` from their containers: inside
   blocks whose separators set it to `--ds-divider` (#EDF0F4) an unchecked box
   was invisible on a light well (user form, 2026-11-11 visual audit). Same
   strong border as the fields; checked / invalid states set their own
   border-color */
html.ds-on body .form-check-input {
    --bs-border-color: var(--ds-border-strong);
}
html.ds-on body :where(.form-control, .form-select):focus {
    border-color: var(--ds-primary);
    box-shadow: var(--ds-focus-ring);
}
/* Indeterminate: checkboxes only, as Bootstrap (2026-11-26 fix, user report
   on the contact form: a radio is `:indeterminate` while no radio of its
   group is checked, so every radio of a group without a default choice was
   filled in the module colour and looked selected) */
html.ds-on body :where(.form-check-input):checked,
html.ds-on body :where(.form-check-input[type="checkbox"]):indeterminate {
    background-color: var(--ds-primary);
    border-color: var(--ds-primary);
}
html.ds-on body :where(.form-check-input):focus {
    border-color: var(--ds-primary);
    box-shadow: var(--ds-focus-ring);
}


/* -------------------------------------------------------------------------
   TABS - Bootstrap `.nav-pills` (also used as vertical menus and as the
   workshop tiles of the planning). The 1px border is kept (only its colour
   changes) so sizes do not move. Bootstrap toggles `.active`.
   The active tab gets the light shadow (components.scss extends the
   compiled `.shadow` onto it, see CARDS AND SHADOWS).
   ------------------------------------------------------------------------- */
html.ds-on body .nav.nav-pills {
    --bs-nav-pills-border-radius: 10px;
}
html.ds-on body .nav.nav-pills .nav-link {
    background-color: var(--ds-surface);
    border-color: var(--ds-border);
    color: var(--ds-text-muted);
    opacity: 1;
    transition: background-color .15s, border-color .15s, color .15s;
}
html.ds-on body .nav.nav-pills .nav-link:hover {
    background-color: var(--ds-primary-tint);
    border-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}
html.ds-on body .nav.nav-pills .nav-link.active {
    background-color: var(--ds-primary-soft);
    border-color: var(--ds-primary);
    color: var(--ds-primary-strong);
}
html.ds-on body .nav.nav-pills .nav-link[disabled],
html.ds-on body .nav.nav-pills .nav-link.disabled {
    background-color: var(--ds-surface);
    border-color: var(--ds-border);
    color: var(--ds-text-muted);
    opacity: .5;
}


/* -------------------------------------------------------------------------
   SCALE - the only section allowed to set sizes.
   The legacy SCSS switched the whole interface at 1400px: text 0.7rem below,
   1rem above (variables.scss), spacing 0.5rem / 1rem, plus a dozen component
   sizes (components.scss, main.scss, mixins.scss, alert.scss, home.scss...).
   Replaced by one fixed scale whatever the screen width: text 14px, spacing
   12px. Only the layout still adapts to the width (Bootstrap grid and
   breakpoints, `#Main` gutter, modal widths, calendar).
   Root stays at the browser default (16px): `rem` keeps following the user's
   own font setting.
   ------------------------------------------------------------------------- */
html.ds-on {
    --font-size-base: .875rem;
    --h1-font-size: calc(var(--font-size-base) * 2);
    --h2-font-size: calc(var(--font-size-base) * 1.75);
    --h3-font-size: calc(var(--font-size-base) * 1.5);
    --h4-font-size: calc(var(--font-size-base) * 1.25);
    --h5-font-size: calc(var(--font-size-base) * 1.2);
    --h6-font-size: var(--font-size-base);
    --spacer: .75rem;
    /* Design system sizes follow the text: 14 / 16 */
    --ds-text-scale: .875;
    /* Left rail (mixins.scss): 2.5rem / 3rem buttons */
    --left-menu-spacing: .75rem;
    --left-menu-btn-size: 2.75rem;
    --left-menu-btn-padding: .625rem;
}

/* Top bar, page header and footer: half spacing under 1400px (main.scss) */
html.ds-on body #TopMenu,
html.ds-on body #Header,
html.ds-on body #Footer {
    padding: var(--spacer);
}
html.ds-on body #TopMenu .left-col,
html.ds-on body #TopMenu .right-col {
    column-gap: var(--spacer);
}
html.ds-on body #TopMenu figure.user-initial-name {
    font-size: 1.4rem !important;
    line-height: 1.95rem;
}
/* Notification panel: under the 60px top bar, aligned on its right edge (the
   bell moves with the length of the user name) (alert.scss) */
html.ds-on body #NotificationWindow {
    right: 16px;
    top: 64px;
}

/* Figures and status dots (components.scss) */
html.ds-on body .figure-lg,
html.ds-on body .figure-circle-lg {
    --fig-size: 2.4rem;
}
html.ds-on body .figure-xs.figure-circle,
html.ds-on body .btn-tag figure.figure-circle {
    padding-top: .1rem !important;
}
html.ds-on body .status-indicator {
    --size: .9rem;
    --font-size-lg: 95%;
    --font-size-md: 90%;
    --font-size-sm: 70%;
}
html.ds-on body .progress-circular {
    width: 120px;
    height: 120px;
}
html.ds-on body .progress-circular .progress-value .h2 {
    font-size: 2rem !important;
}

/* Step tabs (components.scss, order_tracking.scss) */
html.ds-on body .breadcrumb-tabs .breadcrumb-item {
    font-size: 1.25rem;
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.1rem;
}

/* Icons and badges (1.5rem) inside a field (main.scss), centred on a
   `.form-control` (2.1rem high at this scale): .3rem from its edge.
   - Under a label: anchored on the bottom of the column, i.e. on the field,
     instead of a top offset tuned per breakpoint for the label height.
   - Without a label: top offset (inline `top` values still win). */
html.ds-on body .form-label ~ .img-inside-input {
    top: auto;
    bottom: .3rem;
}
html.ds-on body .form-label ~ .img-inside-input.badge-sms-eligible {
    height: 1.5rem !important;
}
html.ds-on body .img-inside-input.js-icon-whatsapp {
    top: .3rem !important;
}
html.ds-on body .img-inside-input-no-label {
    top: .3rem;
}

/* Home launchers (home.scss) and Parts contact search icon */
html.ds-on body .btn-home-figure {
    width: 4.5rem;
}
html.ds-on body[mode="PARTS"] #Main #SearchContactMain {
    background-size: 1.5rem;
    background-position: .25rem center;
}

/* Privilege lists (parameters.scss) */
html.ds-on body #Main .js-privilege-list .privilege-item .privilege-item-header figure {
    --fig-size: 1.5rem;
}
html.ds-on body #Main .js-privilege-list .privilege-item .privilege-item-header .progress-linear div {
    font-size: .9rem !important;
}

/* Modals (components.scss, 2026-11-12): between 576 and 1400px the legacy
   SCSS put 5rem (80px) above and below every dialog and narrowed every
   `.modal-content` to 70% of its dialog (!important): at 1280x650 an XL
   modal showed 750px of content in a 1140px dialog and its body lost 128px
   of height. Same dialog as from 1400px: Bootstrap margin (1.75rem), content
   as wide as its dialog (sm 300, md 500, lg 800, xl 1140px). Short screens
   (max-height 760px): 1rem margin. */
@media (min-width: 576px) and (max-width: 1400px) {
    html.ds-on body .modal-dialog {
        --bs-modal-margin: 1.75rem;
    }
    html.ds-on body .modal-content {
        width: 100% !important;  /* legacy components.scss 70% !important */
    }
}
@media (min-width: 576px) and (max-height: 760px) {
    html.ds-on body .modal-dialog {
        --bs-modal-margin: 1rem;
    }
}


/* -------------------------------------------------------------------------
   CARDS AND SHADOWS
   Workshop cards are `bg-white shadow` (+ `rounded`) blocks.
   - `--bs-border-color` / `--bs-box-shadow*`: every Bootstrap component and
     border utility reading them follows the design system.
   - `.rounded` reads `--bs-border-radius`: set on the element only.
   - `.shadow*` are compiled with a literal value + `!important`: the only way
     to soften them is `!important` (documented exception).
   ------------------------------------------------------------------------- */
html.ds-on {
    --bs-border-color: var(--ds-border);
    --bs-box-shadow: var(--ds-shadow-2);
    --bs-box-shadow-sm: var(--ds-shadow-1);
    --bs-box-shadow-lg: var(--ds-shadow-3);
}
html.ds-on body .rounded {
    --bs-border-radius: 12px;
}
html.ds-on body .shadow {
    box-shadow: var(--ds-shadow-2) !important;
}
html.ds-on body .shadow-sm {
    box-shadow: var(--ds-shadow-1) !important;
}
html.ds-on body .shadow-lg {
    box-shadow: var(--ds-shadow-3) !important;
}
html.ds-on body .nav.nav-pills .nav-link.active {
    box-shadow: var(--ds-shadow-1) !important;
}
/* `.separator` (components.scss): 1px line between blocks */
html.ds-on body .separator {
    background-color: var(--ds-divider);
}


/* -------------------------------------------------------------------------
   MODALS - Bootstrap modals (ModalLight clones the template of
   _tpl_footer.php). Header and footer get a light tint of the module colour,
   except when a caller sets a semantic background (`bg-green-jade-100`,
   `bg-red-100`... through customHeader / customFooter).
   ------------------------------------------------------------------------- */
html.ds-on body .modal {
    --bs-modal-border-radius: 20px;
    --bs-modal-inner-border-radius: 19px;
    --bs-modal-header-border-color: var(--ds-primary-soft);
    --bs-modal-footer-border-color: var(--ds-primary-soft);
    --bs-modal-box-shadow: var(--ds-shadow-3);
}
/* components.scss sets `.modal-content` to `0 0 sm sm` and `.modal-header` to 0
   directly (not through the variables) */
html.ds-on body .modal .modal-content {
    border-radius: var(--bs-modal-border-radius) !important;
}
html.ds-on body .modal .modal-header {
    border-radius: var(--bs-modal-inner-border-radius) var(--bs-modal-inner-border-radius) 0 0 !important;
}
html.ds-on body .modal .modal-content.shadow {
    box-shadow: var(--ds-shadow-3) !important;
}
html.ds-on body .modal .modal-header:not([class*="bg-"]) {
    background-color: var(--ds-primary-tint);
    background-image: linear-gradient(180deg, var(--ds-primary-soft), var(--ds-primary-tint));
}
html.ds-on body .modal .modal-header:not([class*="bg-"]) .modal-title {
    color: var(--ds-primary-deep);
}
html.ds-on body .modal .modal-footer:not([class*="bg-"]) {
    background-color: var(--ds-primary-tint);
}
html.ds-on body .modal-backdrop {
    --bs-backdrop-bg: var(--ds-overlay-solid);
}


/* -------------------------------------------------------------------------
   TABLES - Bootstrap `.table` through its own variables (layout tables
   `.table-no-style` are not touched). Colours only.
   ------------------------------------------------------------------------- */
html.ds-on body .table {
    --bs-table-color: var(--ds-text);
    --bs-table-border-color: var(--ds-divider);
    --bs-table-striped-bg: var(--ds-surface-2);
    --bs-table-hover-bg: var(--ds-primary-tint);
    --bs-table-active-bg: var(--ds-primary-soft);
}
/* The striped and hover backgrounds are opaque here (Bootstrap: translucent):
   rows with their own background (`tr.bg-*`, e.g. the license statistics total)
   keep it */
html.ds-on body .table-striped > tbody > tr[class*="bg-"],
html.ds-on body .table-hover > tbody > tr[class*="bg-"] {
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
}
html.ds-on body .table > thead > tr > th {
    color: var(--ds-text-muted);
    border-bottom-color: var(--ds-border);
}
/* components.scss sets `table th, table td { border: 1px solid #ced4da }`
   directly: give `.table` cells their variable back (colour only) */
html.ds-on body .table > :not(caption) > * > * {
    border-color: var(--bs-table-border-color);
}


/* -------------------------------------------------------------------------
   BADGES, ALERTS, TOASTS - through Bootstrap's variables. Badge colours set
   by utility classes (`bg-*`, `c-*`) are kept; alerts get the status colours
   of the design system.
   ------------------------------------------------------------------------- */
html.ds-on body .badge {
    --bs-badge-border-radius: var(--ds-radius-pill);
    --bs-badge-font-weight: 600;
}
html.ds-on body .alert {
    --bs-alert-border-radius: 12px;
}
html.ds-on body .alert-success {
    --bs-alert-color: var(--ds-success);
    --bs-alert-bg: var(--ds-success-soft);
    --bs-alert-border-color: var(--ds-success-soft);
}
html.ds-on body .alert-warning {
    --bs-alert-color: var(--ds-warning);
    --bs-alert-bg: var(--ds-warning-soft);
    --bs-alert-border-color: var(--ds-warning-soft);
}
html.ds-on body .alert-danger {
    --bs-alert-color: var(--ds-danger);
    --bs-alert-bg: var(--ds-danger-soft);
    --bs-alert-border-color: var(--ds-danger-soft);
}
html.ds-on body .alert-info {
    --bs-alert-color: var(--ds-info);
    --bs-alert-bg: var(--ds-info-soft);
    --bs-alert-border-color: var(--ds-info-soft);
}
html.ds-on body .toast {
    --bs-toast-border-radius: 12px;
    --bs-toast-box-shadow: var(--ds-shadow-3);
    --bs-toast-border-color: var(--ds-border);
}


/* -------------------------------------------------------------------------
   SHELL - PAGE BACKGROUND
   Each Workshop page (inside its iframe) paints its own body: light grey
   page background so that the white cards stand out. Set on `body` only:
   `--bs-body-bg` is NOT changed, form controls, dropdowns, modals and
   tables read it and must stay white. The top bar, transparent until now,
   gets an explicit white background (styled further in the shell lot).
   ------------------------------------------------------------------------- */
html.ds-on body {
    background-color: var(--ds-bg);
}
html.ds-on body #TopMenu {
    background-color: var(--ds-surface);
}
/* Content laid directly on the page, which relied on the former white body */
/* - FullCalendar v6 plannings (intervention, receipt / return): white card */
html.ds-on body .fc.fc-theme-bootstrap5 {
    background-color: var(--ds-surface);
    border-radius: 12px !important;
    box-shadow: var(--ds-shadow-1);
}


/* -------------------------------------------------------------------------
   SHELL - SIDE RAIL (Workshop / Parts)
   `#LeftMenu` of the parent page (above the page iframe). Collapsed: 56px;
   expanded on hover (20rem) with labels; Frame.js toggles `li-active` and
   `left-menu-disabled`. Colours only, sizes and transitions untouched.
   - `.bg-white` (!important) reads `--bs-bg-opacity`: set to 0 on the rail
     only, the deep colour is painted as a background image. Children with
     their own `bg-*` utility reset the variable themselves.
   - Icons are inline SVG following `currentColor` (components.scss).
   ------------------------------------------------------------------------- */
html.ds-on body #LeftMenu {
    --bs-bg-opacity: 0;
    --bs-border-color: transparent;
    background-image: linear-gradient(var(--ds-nav-bg), var(--ds-nav-bg));
}
/* main.scss sets `background: $gray-100` on hover, which resets the image */
html.ds-on body #LeftMenu:hover {
    background-image: linear-gradient(var(--ds-nav-bg), var(--ds-nav-bg));
    box-shadow: var(--ds-shadow-3);
}
html.ds-on body #LeftMenu .left-menu-module a.embed-content .icon-container figure svg {
    color: var(--ds-nav-fg);
}
html.ds-on body #LeftMenu .left-menu-module a.embed-content .text {
    color: var(--ds-nav-fg);
}
html.ds-on body #LeftMenu .left-menu-module:not(.li-active):hover {
    background-color: var(--ds-nav-hover-bg);
}
html.ds-on body #LeftMenu .left-menu-module:not(.li-active):hover a.embed-content .icon-container figure svg,
html.ds-on body #LeftMenu .left-menu-module:not(.li-active):hover a.embed-content .text {
    color: var(--ds-nav-active-fg);
}
html.ds-on body #LeftMenu .left-menu-module.li-active {
    background: var(--ds-nav-active-bg);
}
html.ds-on body #LeftMenu .left-menu-module.li-active a.embed-content .text {
    color: var(--ds-nav-active-fg);
}
/* "Pills" look, same as the Sales rail (user choice A among 3 live previews,
   2026-11-11). Was: round items (44px circles) when collapsed, 8px radius
   when expanded, bold labels, "..." image for the open pages.
   - Items: 10px radius in both states (sizes and `overflow: hidden` kept);
     active pill with a 3px white bar on its left edge.
   - Labels: 500 (600 when active, 400 for sub-frames).
   - Open page (`.embed-content-opened`, added / removed by
     frame-managment.js; a click closes the page): 8px accent dot in the top
     right corner when collapsed, close icon in the label colour when
     expanded (accent on hover). */
html.ds-on body #LeftMenu .left-menu-module-container .left-menu-module {
    border-radius: 10px !important;
}
html.ds-on body #LeftMenu .left-menu-module-container .left-menu-module.li-active::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0 !important;
    background-color: var(--ds-nav-active-fg);
}
html.ds-on body #LeftMenu .left-menu-module-container .left-menu-module a.embed-content .text {
    font-weight: 500;
}
html.ds-on body #LeftMenu .left-menu-module-container .left-menu-module.li-active a.embed-content .text {
    font-weight: 600;
}
html.ds-on body #LeftMenu .left-menu-module-container .left-menu-module.sub-frame a.embed-content .text {
    font-size: calc(.9375rem * var(--ds-text-scale));
    font-weight: 400;
}
html.ds-on body #LeftMenu .left-menu-module-container .left-menu-module .embed-content-opened {
    top: 6px;
    right: 6px;
    bottom: auto;
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    background: var(--ds-accent);
    box-shadow: 0 0 0 2px var(--ds-nav-bg);
}
html.ds-on body #LeftMenu:hover .left-menu-module-container .left-menu-module .embed-content-opened {
    top: 50%;
    right: .5rem;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    box-shadow: none;
    background: var(--ds-nav-fg);
    -webkit-mask: url("../../img/icons/icons_grey/icon-work-in-progress.svg") center / contain no-repeat;
    mask: url("../../img/icons/icons_grey/icon-work-in-progress.svg") center / contain no-repeat;
}
html.ds-on body #LeftMenu:hover .left-menu-module-container .left-menu-module .embed-content-opened:hover {
    background: var(--ds-accent);
    -webkit-mask-image: url("../../img/icons/icons_grey/icon-work-in-progress-close.svg");
    mask-image: url("../../img/icons/icons_grey/icon-work-in-progress-close.svg");
}
/* Expanded rail: light version of the logo (white letters) */
html.ds-on body #LeftMenu:hover .logo-iz img {
    content: url("../../img/logo/logo-iziflo/logo-iziflo-transparent.png");
}


/* -------------------------------------------------------------------------
   SHELL - TOP BAR (Workshop / Parts): `#TopMenu` rendered by each page
   (workshop/module/common/front/_tpl_top-menu.php and its Parts copy).
   Same look as the Sales top bar (ds-materialize.css): 60px white bar with a
   thin bottom line; company and site as pills (light border, 10px corners)
   starting with a 30px filled icon square; icon buttons as 32px filled
   squares; user as a pill with the initials square and the full name
   (`ds-topbar-user`, name hidden under 1200px like the pill texts).
   Sizes allowed here: shell geometry, overrides the SCALE section.
   ------------------------------------------------------------------------- */
html.ds-on body #TopMenu {
    height: 60px;
    padding: 0 16px !important;
    border-bottom-color: var(--ds-border) !important;
    box-shadow: none !important;
}
html.ds-on body #TopMenu .left-col,
html.ds-on body #TopMenu .right-col {
    column-gap: 10px !important;
}

/* Company / site pills: the dropdown becomes the pill; the toggle text
   loses its own frame (`border`, `p-2 ps-4` are !important) */
html.ds-on body #TopMenu .left-col > .dropdown {
    gap: 8px;
    height: 32px;
    padding-right: 10px;
    border: 1px solid var(--ds-border);
    border-radius: 10px !important;
    background-color: var(--ds-surface);
}
html.ds-on body #TopMenu .left-col > .dropdown > .btn-figure {
    border-radius: 9px !important;
}
html.ds-on body #TopMenu .left-col > .dropdown > .btn-figure .figure-circle {
    --fig-size: 30px;
    padding: 6px !important;
    border: 0;
    border-radius: 9px !important;
    background-color: var(--ds-primary) !important;
    color: #FFFFFF !important;
}
/* the pills carry `border-primary-500` (!important, reads --primary-500):
   the variable is redefined on the pill only. Chain as long as main.scss
   (`#TopMenu .left-col .dropdown .dropdown-toggle-content`, padding-left
   !important) */
html.ds-on body #TopMenu .left-col .dropdown .dropdown-toggle-content {
    --primary-500: var(--ds-border);
    gap: 8px;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ds-text) !important;
}
html.ds-on body #TopMenu .left-col > .dropdown .dropdown-toggle-text p {
    font-size: calc(1.0714rem * var(--ds-text-scale));
}
html.ds-on body #TopMenu .left-col > .dropdown .dropdown-toggle-arrow {
    color: var(--ds-text-muted);
    font-size: 9px;
}

/* Icon buttons (refresh, notifications, help): filled squares */
html.ds-on body #TopMenu .right-col .btn-figure {
    border-radius: 8px !important;
}
html.ds-on body #TopMenu .right-col .btn-figure > .figure-circle {
    --fig-size: 32px;
    padding: 6px !important;
    border: 0;
    border-radius: 8px !important;
    background-color: var(--ds-primary) !important;
    color: #FFFFFF !important;
}

/* User: pill with the initials square and the full name */
html.ds-on body #TopMenu .ds-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px 0 0;
    border: 1px solid var(--ds-border);
    border-radius: 10px !important;
    background-color: var(--ds-surface);
}
/* `.right-col` so that it wins over the icon buttons rule above (6px padding
   pushed the initials down); flex centres them whatever the font metrics */
html.ds-on body #TopMenu .right-col .ds-topbar-user > figure.user-initial-name {
    --fig-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: calc(.875rem * var(--ds-text-scale)) !important;
    line-height: 1;
}
html.ds-on body #TopMenu .ds-topbar-user-name {
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    white-space: nowrap;
}
/* under 1200px the pill texts and the name are hidden (`d-xl-*`): icon
   squares alone, without the pill frame */
@media (max-width: 1199.98px) {
    html.ds-on body #TopMenu .left-col > .dropdown,
    html.ds-on body #TopMenu .ds-topbar-user {
        padding: 0;
        border-color: transparent;
    }
}
/* Short screens (max-height 760px, e.g. 1280x780 with the browser bars,
   2026-11-12): 48px bar (the 32px pills and squares keep their size), the
   notification panel follows it (was 64px from the top, SCALE section) */
@media (max-height: 760px) {
    html.ds-on body #TopMenu {
        height: 48px;
    }
    html.ds-on body #NotificationWindow {
        top: 52px;
    }
}


/* -------------------------------------------------------------------------
   SHARED TEMPLATES - partials of `workshop/module/common/front` (and their
   Parts copies) included by several pages: styled here once, through their
   own classes, never in a page sheet.
   Contact / vehicle search (`_tpl_*_search_body`, `_tpl_*_search_row`, used
   by home, intervention update, vehicle create / search / detail, contact
   detail, Parts home and e-contact): white result cards instead of the
   alternating greys of components.scss. `.selected` keeps its legacy look.
   ------------------------------------------------------------------------- */
html.ds-on body .table-cards .search-result-col .search-result-card {
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .table-cards .search-result-col .search-result-card:not(.selected) {
    border: 1px solid var(--ds-border);
    background-color: var(--ds-surface);
    transition: border-color .15s;
}
html.ds-on body .table-cards .search-result-col:hover .search-result-card:not(.selected) {
    border-color: var(--ds-primary-soft);
}

/* Contact and vehicle result cards (`_tpl_contact_search_row`,
   `_tpl_vehicle_search_row`, every page listed above; 2026-11-09, user choice
   among nine mockups: contact "tinted header", vehicle "plate header"), CSS
   only. Was one line per field, each with a 20px module-colour icon, name
   and plate in plain text. Now:
   - a header band in `--ds-primary-tint` (`--ds-primary-soft` on hover and
     when selected; 52px high, was 66px until the user asked for a lower
     band) with a 32px round avatar in the module colour (contact:
     the bust icon; vehicle: a car drawn by a mask over the plate icon), the
     name (600, deep colour, 2 lines max) or the plate (700, spaced letters)
     with the DMS sync mark; beside the avatar, under it, the account number
     as a white pill (contact) and the contact role chips (intervention
     update). A vehicle without registration shows its VIN in the band;
   - a white body: phone (SMS eligibility as status chips), e-mail, address;
     vehicle: brand (600) and model on one line, VIN. 16px module-colour
     icons, 13px text.
   The fields are the `.js-col` children of `.js-card-element`, hidden by the
   JS when empty (inline `display: none`): only order, full width, paddings,
   margins and backgrounds are set on them, never `display`; band / body
   placement through `order` and `:has()` on their visible state. The nested
   grid gutters (card `.p-2` / `.p-1` / `.ps-5`, rows -12px, columns `.p-1`)
   are reset so the band reaches the card edges.
   `--ds-src-end`: right padding of the band (room for the eye, 14px without
   it); `--ds-src-band`: band background. */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card {
    --ds-src-end: 48px;
    --ds-src-band: var(--ds-primary-tint);
    overflow: hidden;
    padding: 0 !important;  /* legacy .p-2 / .p-1 / .ps-5 !important */
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card:not(:has(> .row > :not(.d-none) > .ds-see-sheet)) {
    --ds-src-end: 14px;
}
html.ds-on body .js-entity-search-result-tr.cursor-pointer:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]):hover .search-result-card,
html.ds-on body .js-entity-search-result-tr.is-selected:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card,
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card.selected {
    --ds-src-band: var(--ds-primary-soft);
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card > .row {
    margin: 0;
    padding: 0;
}
/* Content column on the whole width; the empty first column (vehicle form,
   no opening mode) takes no room, like the eye column (see "See the sheet") */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card > .row > :has(> .js-card-element) {
    flex: 1 1 0;
    width: auto;
    max-width: 100%;
    padding: 0 !important;  /* legacy .p-1 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .search-result-card > .row > :not(:has(*)) {
    flex: 0 0 0;
    width: 0;
    padding: 0 !important;  /* legacy .pt-2 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element {
    margin: 0;
    padding: 0 0 11px;
}
/* Body lines */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-col {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 3px 14px !important;  /* legacy .p-1 / .p-0 !important */
    color: var(--ds-text);
    font-size: calc(.9375rem * var(--ds-text-scale));
    line-height: 1.4;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-col > .hstack {
    min-width: 0;
    gap: 10px !important;  /* legacy .gap-3 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-col > .hstack > span:not(.figure-circle) {
    min-width: 0;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-col figure.figure-sm {
    --fig-size: 16px;
    color: var(--ds-primary) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-col figure.figure-sm svg {
    width: 16px;
    height: 16px;
}
/* SMS eligibility of the phone (shown / hidden by the JS) as status chips */
html.ds-on body .js-entity-search-result-tr .js-card-element :is(.js-phone-sms-eligible, .js-phone-not-sms-eligible) {
    height: 20px;
    padding: 0 8px;
    border-radius: var(--ds-radius-pill) !important;
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
    line-height: 20px;
}
html.ds-on body .js-entity-search-result-tr .js-card-element .js-phone-sms-eligible {
    background-color: var(--ds-success-soft) !important;  /* legacy .bg-green-avocado-200 !important */
    color: var(--ds-success) !important;  /* legacy .c-green-avocado-500 !important */
}
html.ds-on body .js-entity-search-result-tr .js-card-element .js-phone-not-sms-eligible {
    background-color: var(--ds-danger-soft) !important;  /* legacy .bg-red-200 !important */
    color: var(--ds-danger) !important;  /* legacy .c-red-500 !important */
}
/* Vehicle: brand and model on one line (model cut by an ellipsis), then the VIN */
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="brand"] {
    order: 1;
    flex: 0 1 auto;
    width: auto;
    padding-right: 0 !important;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="model"] {
    order: 2;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-left: 5px !important;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="vin_number"] {
    order: 3;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > :is([data-db-name="brand"], [data-db-name="model"]) span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element .js-brand {
    font-weight: 600;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="model"] figure {
    display: none;
}
/* No brand: the model keeps its icon and the left padding */
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="brand"][style*="display: none"] + [data-db-name="model"] {
    padding-left: 14px !important;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="brand"][style*="display: none"] + [data-db-name="model"] figure {
    display: block;
}
/* Header band: name / plate (VIN without registration), then the account
   pill and the role chips */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > :is([data-db-name="full_name"], [data-db-name="registration_number"], [data-db-name="account"]),
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-contact-type-of-vehicle:not(:empty),
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] {
    margin-bottom: 8px;
    background-color: var(--ds-src-band);
    box-shadow: inset 0 -1px 0 var(--ds-primary-soft);
    transition: background-color .15s;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > :is([data-db-name="full_name"], [data-db-name="registration_number"]),
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] {
    order: -2;
    padding: 10px var(--ds-src-end) 10px 14px !important;  /* legacy .p-1 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > :is([data-db-name="full_name"], [data-db-name="registration_number"], [data-db-name="vin_number"]) > .hstack {
    gap: 10px !important;  /* legacy .gap-3 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > :is([data-db-name="full_name"], [data-db-name="registration_number"]) figure.figure-sm,
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] figure.figure-sm {
    --fig-size: 32px;
    display: grid;
    place-items: center;
    border-radius: 50% !important;
    background-color: var(--ds-primary);
    color: var(--ds-surface) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"]) .js-card-element > [data-db-name="full_name"] figure.figure-sm svg {
    width: 16px;
    height: 16px;
}
/* Vehicle avatar: a car instead of the plate / barcode icon */
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="registration_number"] figure.figure-sm svg,
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] figure.figure-sm svg {
    display: none;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element > [data-db-name="registration_number"] figure.figure-sm::after,
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] figure.figure-sm::after {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("../../img/v2/icons/icon-vehicle.svg") center / contain no-repeat;
    mask: url("../../img/v2/icons/icon-vehicle.svg") center / contain no-repeat;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"]) .js-card-element .js-full-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ds-primary-deep);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 20px;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element .js-registration-number {
    color: var(--ds-primary-deep);
    font-size: calc(1.0625rem * var(--ds-text-scale));
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 20px;
    white-space: nowrap;
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] .js-vin-number {
    overflow: hidden;
    color: var(--ds-primary-deep);
    font-size: calc(1rem * var(--ds-text-scale));
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* DMS sync mark (shown by the JS) beside the plate */
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element .js-vehicle-sync {
    --fig-size: 22px;
    margin: 0 !important;  /* legacy .me-2 !important */
    padding: 5px !important;  /* legacy .p-1 !important */
    background-color: var(--ds-surface) !important;  /* legacy .bg-blue-100 !important */
    color: var(--ds-primary) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element .js-vehicle-sync svg {
    display: block;
    width: 12px;
    height: 12px;
}
/* Second band line(s), beside the avatar under the name / plate */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > [data-db-name="account"],
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-contact-type-of-vehicle:not(:empty) {
    order: -1;
    padding: 2px var(--ds-src-end) 10px 56px !important;  /* legacy .p-1 / .p-0 !important; 56px: 14px + avatar 32px + 10px */
}
/* Roles after the account (first in the DOM; still before the body lines) */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"]) .js-card-element > .js-contact-type-of-vehicle:not(:empty) {
    order: 0;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element:has(> .js-contact-type-of-vehicle:not(:empty)) > [data-db-name="account"] {
    margin-bottom: 0;
    padding-bottom: 4px !important;
}
/* With a second line: the name / plate sits at the top of the avatar, which
   overlaps the second line (it is positioned, so painted over its band) */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element:has(> [data-db-name="account"]:not([style*="display: none"]), > .js-contact-type-of-vehicle:not(:empty)) > :is([data-db-name="full_name"], [data-db-name="registration_number"]),
html.ds-on body .js-entity-search-result-tr[data-context="vehicle"] .js-card-element:has(> .js-contact-type-of-vehicle:not(:empty)):not(:has(> [data-db-name="registration_number"]:not([style*="display: none"]))) > [data-db-name="vin_number"] {
    margin-bottom: 0;
    padding-bottom: 0 !important;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element:has(> [data-db-name="account"]:not([style*="display: none"]), > .js-contact-type-of-vehicle:not(:empty)) > :is([data-db-name="full_name"], [data-db-name="registration_number"], [data-db-name="vin_number"]) > .hstack {
    align-items: flex-start;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element:has(> [data-db-name="account"]:not([style*="display: none"]), > .js-contact-type-of-vehicle:not(:empty)) > :is([data-db-name="full_name"], [data-db-name="registration_number"], [data-db-name="vin_number"]) figure.figure-sm {
    margin-top: 4px;
    margin-bottom: -16px;  /* 20px in the flow: the height of the name line */
}
/* Account number as a white pill */
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"]) .js-card-element > [data-db-name="account"] > .hstack {
    width: fit-content;
    max-width: 100%;
    height: 22px;
    padding: 0 10px;
    gap: 5px !important;  /* legacy .gap-3 !important */
    border: 1px solid var(--ds-primary-soft);
    border-radius: var(--ds-radius-pill) !important;
    background-color: var(--ds-surface);
    color: var(--ds-primary-strong);
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
    line-height: 1;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"]) .js-card-element > [data-db-name="account"] figure.figure-sm {
    --fig-size: 11px;
    color: inherit !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"]) .js-card-element > [data-db-name="account"] figure.figure-sm svg {
    width: 11px;
    height: 11px;
}
/* Contact role chips (`.btn-tag` built by intervention_update__listeners.js,
   data colours kept) */
html.ds-on body .js-entity-search-result-tr .js-card-element > .js-contact-type-of-vehicle:not(:empty) {
    gap: 6px;
}
html.ds-on body .js-entity-search-result-tr:is([data-context="contact"], [data-context="econtact"], [data-context="vehicle"]) .js-card-element > .js-contact-type-of-vehicle:empty {
    padding: 0 !important;  /* no room when there is no role */
}
html.ds-on body .js-entity-search-result-tr .js-card-element > .js-contact-type-of-vehicle .btn-tag {
    height: 22px !important;  /* inline 1.9rem written by the JS */
    margin: 0 !important;  /* legacy .me-2 .mb-1 !important */
    padding: 0 10px;
    border-color: transparent;
    border-radius: var(--ds-radius-pill) !important;
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600 !important;  /* legacy .fw-medium !important */
    line-height: 1;
}

/* Entity cards (2026-11-09, user request: same look as the result cards
   above): contact and vehicle cards rendered by PHP on the vehicle detail
   (contacts, `tpl_vehicle_detail.php`), the contact detail (fleet,
   `tpl_contact_detail.php`) and the intervention folder (vehicle, main and
   additional contacts, `tpl_intervention_detail.php`). Was grey wells with
   one line per field (module-colour icons or plain text), name / plate in
   bold. Hooks added to the templates (classes only):
   - `ds-entity-card` + `is-contact` / `is-vehicle` on the card (avatar icon);
   - `ds-entity-content` on the element holding the band and the lines when
     it is not the card itself (flex column), `ds-entity-contents` on a
     wrapper flattened into it (`display: contents`);
   - band: `ds-entity-head` (name / plate; avatar drawn by `::before` /
     `::after`), `ds-entity-sub` (`ds-entity-account` as a white pill,
     `ds-entity-roles` with the role chips); body: `ds-entity-line`
     (`ds-entity-ico-*` draws an icon where the template has none);
     `ds-entity-plate` on the plate text, `ds-entity-vin` on the VIN block
     (moved into the band when the plate is "not specified"),
     `ds-entity-brand`, `ds-entity-extra` (manufacturer portal row).
   The legacy grid inside (`.container` / `.row` / `.col-*` gutters, `p-3`,
   `gap-2`, `mt-1`) is reset so the band reaches the card edges. Same
   `--ds-src-end` / `--ds-src-band` as the result cards. The fleet filter of
   the contact detail shows / hides the card: no display set on it. */
html.ds-on body .ds-entity-card {
    --ds-src-end: 48px;
    --ds-src-band: var(--ds-primary-tint);
    --ds-entity-avatar: url("../../img/v2/icons/icon-bust.svg");
    overflow: hidden;
    padding: 0 !important;  /* legacy .p-3 / .py-2 .px-3 !important */
    border: 1px solid var(--ds-border) !important;  /* legacy .border !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
    box-shadow: var(--ds-shadow-1) !important;  /* legacy .shadow !important */
    color: var(--ds-text);
    font-size: calc(.9375rem * var(--ds-text-scale));
}
html.ds-on body .ds-entity-card.is-vehicle {
    --ds-entity-avatar: url("../../img/v2/icons/icon-vehicle.svg");
}
html.ds-on body .ds-entity-card:not(:has(.ds-see-sheet)) {
    --ds-src-end: 14px;
}
html.ds-on body .ds-entity-card:is(.cursor-pointer:hover, :has(.cursor-pointer:hover)) {
    --ds-src-band: var(--ds-primary-soft);
}
html.ds-on body .ds-entity-content,
html.ds-on body .ds-entity-card:has(> .ds-entity-vin) {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    width: auto;
    min-width: 0;
    margin: 0 !important;  /* legacy .my-2 !important */
    padding: 0 0 10px !important;  /* legacy .p-3 !important */
    gap: 0 !important;  /* legacy .gap-2 !important */
    background-color: transparent !important;  /* legacy .bg-gray-100 !important */
    color: var(--ds-text);
    overflow-wrap: anywhere;
}
html.ds-on body .ds-entity-content:not(:has(.ds-entity-line)) {
    padding-bottom: 0 !important;
}
html.ds-on body .ds-entity-contents {
    display: contents;
}
/* Legacy grid inside the card */
html.ds-on body .ds-entity-card .container {
    max-width: none;
    margin: 0;
}
html.ds-on body .ds-entity-card .container:not(.ds-entity-head, .ds-entity-sub, .ds-entity-vin),
html.ds-on body .ds-entity-card .container.ds-entity-vin {
    padding: 0 !important;  /* legacy .py-1 !important (VIN: unless in the band) */
}
html.ds-on body .ds-entity-card .container .row:not(.ds-entity-line),
html.ds-on body .ds-entity-card :is(.ds-entity-head, .ds-entity-sub, .ds-entity-line, .ds-entity-extra) > :not(.btn-tag),
html.ds-on body .ds-entity-card :is(.ds-entity-head, .ds-entity-sub, .ds-entity-line, .ds-entity-extra) [class*="col-"] {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    min-width: 0;
    margin: 0 !important;  /* legacy .mt-1 !important */
    padding: 0 !important;  /* legacy .ps-0 / .pe-0 !important */
    gap: 10px;
}
html.ds-on body .ds-entity-card :is(.ds-entity-head, .ds-entity-sub, .ds-entity-line, .ds-entity-extra) .col-2,
html.ds-on body .ds-entity-card .ds-entity-head > .d-flex {
    flex: 0 0 auto;
}
/* Delete / edit buttons of the contact detail fleet, on the right of the band */
html.ds-on body .ds-entity-card .ds-entity-head > .d-flex {
    margin-left: auto !important;
}
/* Band: name / plate, then the account and the roles */
html.ds-on body .ds-entity-head,
html.ds-on body .ds-entity-sub {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 6px !important;  /* legacy .row / .mb-2 !important */
    background-color: var(--ds-src-band);
    box-shadow: inset 0 -1px 0 var(--ds-primary-soft);
    transition: background-color .15s;
}
html.ds-on body .ds-entity-head {
    position: relative;
    order: -3;
    min-height: 52px;
    padding: 10px var(--ds-src-end) 10px 56px !important;  /* legacy .row gutters / .p-* !important; 56px: 14px + avatar 32px + 10px */
    color: var(--ds-primary-deep);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 20px;
}
html.ds-on body .ds-entity-head::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background-color: var(--ds-primary);
}
html.ds-on body .ds-entity-head::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 22px;
    width: 16px;
    height: 16px;
    background-color: var(--ds-surface);
    -webkit-mask: var(--ds-entity-avatar) center / contain no-repeat;
    mask: var(--ds-entity-avatar) center / contain no-repeat;
}
/* The avatar replaces the icon column of the name / plate line */
html.ds-on body .ds-entity-head .col-2 {
    display: none;
}
html.ds-on body .ds-entity-head :is(.ds-vehicle-contact-name, .col-9) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ds-primary-deep) !important;  /* legacy .c-primary-500 !important */
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    white-space: normal !important;  /* legacy .text-truncate */
}
html.ds-on body .ds-entity-sub {
    order: -2;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 var(--ds-src-end) 8px 56px !important;  /* legacy .row gutters / .gap-2 !important */
}
html.ds-on body .ds-entity-roles {
    order: -1;
}
/* No role, account not specified: no band line */
html.ds-on body .ds-entity-roles:not(:has(.btn-tag)),
html.ds-on body .ds-entity-account:has(i.c-gray-500) {
    display: none;
}
/* With a second line: the name / plate at the top of the avatar, which
   overlaps the second line (pseudo of a positioned element: painted over) */
html.ds-on body .ds-entity-card:has(.ds-entity-account):not(:has(.ds-entity-account i.c-gray-500)) .ds-entity-head,
html.ds-on body .ds-entity-card:has(.ds-entity-roles .btn-tag) .ds-entity-head {
    min-height: 0;
    margin-bottom: 0 !important;
    padding-bottom: 2px !important;
}
html.ds-on body .ds-entity-card:has(.ds-entity-roles .btn-tag) .ds-entity-account {
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
}
/* Band only (additional contacts): no room under it */
html.ds-on body .ds-entity-card:not(:has(.ds-entity-line)) :is(.ds-entity-head, .ds-entity-sub) {
    margin-bottom: 0 !important;
}
/* Account as a white pill with a hashtag */
html.ds-on body .ds-entity-account .col-2 {
    display: none;
}
/* (2026-11-09 fix: was stretched to the line width without padding by the
   grid reset above, text 1px high in a 20px pill) */
html.ds-on body .ds-entity-card .ds-entity-account.row > span,
html.ds-on body .ds-entity-card .ds-entity-account .row > [class*="col-"]:not(.col-2) > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    height: 22px;
    padding: 0 10px !important;  /* grid reset above !important */
    border: 1px solid var(--ds-primary-soft);
    border-radius: var(--ds-radius-pill) !important;
    background-color: var(--ds-surface);
    color: var(--ds-primary-strong);
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
html.ds-on body .ds-entity-account.row > span::before,
html.ds-on body .ds-entity-account .row > [class*="col-"]:not(.col-2) > span::before {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    background-color: currentColor;
    -webkit-mask: url("../../img/v2/icons/icon-hashtag-border.svg") center / contain no-repeat;
    mask: url("../../img/v2/icons/icon-hashtag-border.svg") center / contain no-repeat;
}
/* Role chips (data colours kept) */
html.ds-on body .ds-entity-roles :is(.d-flex, [class*="col-"]) {
    flex-wrap: wrap;
    gap: 6px !important;  /* legacy .gap-2 !important */
    margin: 0 !important;  /* legacy .me-auto !important */
}
/* Sized to their text, text centred (2026-11-09 fix: were stretched to
   share the line, text on the left) */
html.ds-on body .ds-entity-roles .btn-tag {
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    height: 22px !important;  /* inline 1.9rem in the intervention folder */
    margin: 0 !important;  /* legacy .me-2 .mb-1 !important */
    padding: 0 10px;
    border-color: transparent;
    border-radius: var(--ds-radius-pill) !important;
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600 !important;  /* legacy .fw-medium !important */
    line-height: 1;
}
/* Plate: bold spaced text (was a chip on the contact detail), DMS mark as a
   white 22px circle */
html.ds-on body .ds-entity-plate {
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background-color: transparent;
    color: var(--ds-primary-deep) !important;  /* legacy .c-blue-500 !important */
    font-size: calc(1.0625rem * var(--ds-text-scale));
    font-variant-numeric: tabular-nums;
    font-weight: 700 !important;  /* legacy .fw-bold !important */
    letter-spacing: .06em;
    line-height: 20px;
    white-space: nowrap;
}
html.ds-on body .ds-entity-plate .figure-circle {
    --fig-size: 22px;
    margin: 0 0 0 4px !important;  /* legacy .me-2 !important */
    padding: 5px !important;  /* legacy .p-1 !important */
    background-color: var(--ds-surface) !important;  /* legacy .bg-blue-100 !important */
    color: var(--ds-primary) !important;  /* legacy .c-blue-500 !important */
    vertical-align: -5px;
}
html.ds-on body .ds-entity-plate .figure-circle svg {
    display: block;
    width: 12px;
    height: 12px;
}
/* Body lines: 16px module-colour icon, 13px text */
html.ds-on body .ds-entity-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;  /* legacy .row / .mb-2 !important */
    padding: 3px 14px !important;  /* legacy .row gutters !important */
    color: var(--ds-text);
    font-size: calc(.9375rem * var(--ds-text-scale));
    line-height: 1.4;
}
html.ds-on body .ds-entity-line[class*="ds-entity-ico-"]::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background-color: var(--ds-primary);
    -webkit-mask: var(--ds-entity-ico) center / contain no-repeat;
    mask: var(--ds-entity-ico) center / contain no-repeat;
}
html.ds-on body .ds-entity-ico-phone { --ds-entity-ico: url("../../img/v2/icons/icon-phone.svg"); }
html.ds-on body .ds-entity-ico-letter { --ds-entity-ico: url("../../img/v2/icons/icon-letter.svg"); }
html.ds-on body .ds-entity-ico-vehicle { --ds-entity-ico: url("../../img/v2/icons/icon-vehicle.svg"); }
html.ds-on body .ds-entity-line figure.figure-sm {
    --fig-size: 16px;
    color: var(--ds-primary) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .ds-entity-line figure.figure-sm svg {
    width: 16px;
    height: 16px;
}
html.ds-on body .ds-entity-line figure.figure-sm.c-green-jade-500 {
    color: var(--green-jade-500) !important;  /* WhatsApp mark: data colour kept */
}
html.ds-on body .ds-entity-brand [class*="col-"]:not(.col-2) {
    font-weight: 600;
}
/* Manufacturer portal under the brand, aligned on the text */
html.ds-on body .ds-entity-card .container .row.ds-entity-extra {
    margin: 0 !important;
    padding: 0 14px 3px 40px !important;
}
html.ds-on body .ds-entity-extra > :empty {
    display: none;
}
/* Vehicle without registration (intervention folder): the VIN takes the
   band; the plate line keeps only the eye (absolute) */
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) .ds-entity-head {
    position: static;  /* the eye is placed from the card again */
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    box-shadow: none;
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) .ds-entity-head::before,
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) .ds-entity-head::after {
    content: none;
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) .ds-entity-head [class*="col-"]:not(.ds-see-sheet) {
    display: none;
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin {
    position: relative;
    order: -4;
    min-height: 52px;
    margin-bottom: 6px;
    padding: 10px var(--ds-src-end) 10px 56px !important;
    background-color: var(--ds-src-band);
    box-shadow: inset 0 -1px 0 var(--ds-primary-soft);
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin::before,
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background-color: var(--ds-primary);
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin::after {
    top: 18px;
    left: 22px;
    width: 16px;
    height: 16px;
    border-radius: 0 !important;
    background-color: var(--ds-surface);
    -webkit-mask: var(--ds-entity-avatar) center / contain no-repeat;
    mask: var(--ds-entity-avatar) center / contain no-repeat;
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin .ds-entity-line {
    padding: 6px 0 !important;
    color: var(--ds-primary-deep);
    font-weight: 600;
}
/* 17 characters on one line (cut by an ellipsis in very narrow cards) */
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin .ds-entity-line [class*="col-"]:not(.col-2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;  /* legacy .text-wrap !important */
}
html.ds-on body .ds-entity-card:has(.ds-entity-plate > i.c-gray-500) > .ds-entity-vin .col-2 {
    display: none;
}

/* Meetings panel (`_tpl_meetings_panel`: vehicle and contact detail; `ds-card` on
   the panel rounds its coloured header) and meeting card (`_tpl_meeting_card`:
   panel and intervention update). The header of a meeting of the current site
   (`bg-secondary-200`) gets the accent tint; other sites keep their grey. */
html.ds-on body .ds-meetings-panel > :first-child h3 {
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .ds-meeting-card {
    overflow: hidden;
}
html.ds-on body .ds-meeting-card-h.bg-secondary-200 {
    background-color: var(--ds-accent-soft);
    color: var(--ds-accent-strong);
    font-weight: 600;
}

/* Intervention folder detail modal (`_tpl_intervention_folder_detail_modal`,
   loaded by the three plannings, the lead list and the intervention folder):
   blocks carry `ds-well`; the contact strip is light instead of grey-200.
   Intervention cards keep their status colours. */
html.ds-on body .ds-folder-modal-contact {
    background-color: var(--ds-surface-2);
}

/* Plannings (intervention, receipt / return, workload: same toolbar): the
   date navigation sits on the page instead of a grey bar (`ds-planning-datebar`)
   and "Today" is in sentence case like every other button (`ds-planning-today`,
   neutralises `text-uppercase`; the translation is already "Aujourd'hui").
   The "to plan" column carries `ds-card` + `ds-card-t`. */
html.ds-on body .ds-planning-datebar {
    background-color: transparent;
}
html.ds-on body .ds-planning-today {
    text-transform: none !important;
}

/* Page title (`#Main h1.page-title`, ~25 Workshop pages; the technician app
   header title, outside `#Main`, is left alone): dark, 24px semibold */
html.ds-on body #Main h1.page-title {
    color: var(--ds-text);
    font-size: calc(1.5rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* legacy .page-title 400 !important (compiled page scss, e.g. vehicle_scss.css), seen 2026-11-09 */
    letter-spacing: -.01em;
}

/* Form sections (`_tpl_vehicle_form`, contact form page and `_tpl_contact_form`,
   public folder creation...): `ds-form-section` on the section heading (icon
   in a tinted circle + `div` or `h6` label): icon always in the module colour, dark label;
   field groups carry `ds-well`. */
html.ds-on body .ds-form-section > .figure-circle {
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}
html.ds-on body .ds-form-section > :not(.figure-circle) {
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600 !important;
}

/* Contact cards (`ds-well` on `bg-gray-100 border border-gray-200`: vehicle
   detail and vehicle form): softer border through the variable read by
   `.border-gray-200` (!important) */
html.ds-on body .ds-well.border-gray-200 {
    --gray-200: var(--ds-border);
}

/* Step bar (`#tabsNavigationBar`: intervention folder create / edit, public
   folder creation): steps as pills, current step tinted with a filled number,
   valid steps in the success tint, others muted. The arrows (`ds-stepper-arrow`)
   lose the `m-3` margins (!important) so the three steps fit on one line. */
html.ds-on body #tabsNavigationBar .item {
    padding: 4px 14px 4px 4px;
    border-radius: var(--ds-radius-pill) !important;
    color: var(--ds-text-muted);
    font-size: calc(.9375rem * var(--ds-text-scale));
    font-weight: 500;
}
html.ds-on body #tabsNavigationBar .item figure {
    --size: 1.75rem;
    margin-right: 8px;
    border: 1px solid var(--ds-border);
    background-color: var(--ds-surface);
    color: var(--ds-text-muted);
    font-weight: 600;
}
html.ds-on body #tabsNavigationBar .item.valid {
    color: var(--ds-success);
}
html.ds-on body #tabsNavigationBar .item.valid figure {
    border-color: transparent;
    background-color: var(--ds-success-soft);
    color: var(--ds-success);
}
html.ds-on body #tabsNavigationBar .item.active {
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
    font-weight: 600 !important;
}
html.ds-on body #tabsNavigationBar .item.active figure {
    border-color: transparent;
    background-color: var(--ds-primary);
    color: #FFFFFF;
}
html.ds-on body #tabsNavigationBar .ds-stepper-arrow {
    margin: 0 6px !important;
    color: var(--ds-border-strong);
}

/* Accordion tables of the parameters (`ds-card ds-accordion-table` on the
   tabs content: schedules, statuses, standby screen logins). Nested
   `table-no-style` with collapsible rows: header in light grey, level 1
   (`tr.site-name`) in the module soft tint, level 2 (`tr.workshop-name`,
   `tr.user-name`) in the module tint, level 3 (`tr.bg-gray-100`) in light
   grey. The 5px white row borders keep separating the rows. */
html.ds-on body .ds-accordion-table {
    padding: 8px;
}
html.ds-on body .ds-accordion-table thead {
    background-color: var(--ds-surface-2);
}
html.ds-on body .ds-accordion-table thead th {
    color: var(--ds-text-muted);
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
}
html.ds-on body .ds-accordion-table tr.site-name {
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}
html.ds-on body .ds-accordion-table tr.workshop-name,
html.ds-on body .ds-accordion-table tr.user-name {
    background-color: var(--ds-primary-tint);
}
html.ds-on body .ds-accordion-table tr.bg-gray-100 {
    background-color: var(--ds-surface-2);
}
/* Status rows (statuses): the legacy zebra (`#Main.status ... tr:nth-child(2n)`)
   reads `--gray-100` / `--gray-200`: redefined on the rows */
html.ds-on body .ds-accordion-table tr.status-list-row {
    --gray-100: var(--ds-surface);
    --gray-200: var(--ds-surface-2);
}
/* Level 1 painted on the cell (`td.js-head-row bg-blue-100 c-blue-500`:
   standby screen logins). Not every `td.js-head-row`: the schedules use it
   on their level 2 and 3 cells */
html.ds-on body .ds-accordion-table td.js-head-row.bg-blue-100 {
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}

/* Privileges editor (`_tpl_privilege_user_list` + `_tpl_privilege_list`:
   users and profiles, profile creation; `ds-card` on the tabs content).
   The tree comes from `Privilege::buildTreeHtml()` and reads its colours
   from variables (`--mainColor`... on `#Main`, the `2` set on even items):
   redefined with the module colour for users, the accent for profiles. */
html.ds-on body #Main.user-profile-list,
html.ds-on body #Main.profile-create-update {
    --mainColor: var(--ds-primary);
    --lightColor: var(--ds-primary-soft);
    --lighterColor: var(--ds-surface-2);
    --textColor: var(--ds-primary-strong);
    --mainColor2: var(--ds-primary-strong);
    --lightColor2: var(--ds-primary-soft);
    --lighterColor2: var(--ds-surface-2);
    --textColor2: var(--ds-primary-strong);
}
html.ds-on body #Main.user-profile-list[data-type="profile"],
html.ds-on body #Main.profile-create-update[data-type="profile"] {
    --mainColor: var(--ds-accent);
    --lightColor: var(--ds-accent-soft);
    --lighterColor: var(--ds-surface-2);
    --textColor: var(--ds-accent-strong);
    --mainColor2: var(--ds-accent-strong);
    --lightColor2: var(--ds-accent-soft);
    --lighterColor2: var(--ds-surface-2);
    --textColor2: var(--ds-accent-strong);
}
html.ds-on body .js-privilege-page .ds-divider.border-blue-500 {
    border-color: var(--ds-divider) !important;
}
/* Items: light border, 12px corners; the legacy rules go through `#Main` */
html.ds-on body #Main .js-privilege-list .privilege-item {
    border-color: var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    overflow: hidden;
}
html.ds-on body #Main .js-privilege-list .privilege-item .privilege-name,
html.ds-on body #Main .js-privilege-list .privilege-item .progress-linear {
    border-radius: 0 !important;
}
html.ds-on body #Main .js-privilege-list .privilege-item .progress-linear div {
    font-weight: 600;
}
html.ds-on body #Main .js-privilege-list .privilege-item-body .privilege-item-privilege {
    border-bottom-color: var(--ds-divider);
}

/* Step indicator (`.breadcrumb-tabs`, components.scss: lead processing,
   vehicle merge, history and intervention modals). Current step in the
   module colour (was orange), done steps with a check in the module colour:
   the legacy check is a fixed blue-green image, redrawn here with a mask. */
html.ds-on body .breadcrumb-tabs .breadcrumb-item {
    color: var(--ds-text-muted);
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item::after {
    color: var(--ds-border-strong);
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item.active {
    color: var(--ds-primary-strong);
    font-weight: 600;
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item.active::before {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-soft);
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item.done {
    color: var(--ds-text);
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item.done::before {
    background-image: none;
    background-color: var(--ds-primary);
    -webkit-mask: url("../../img/v2/icons/icon-checkmark-circle.svg") center / contain no-repeat;
    mask: url("../../img/v2/icons/icon-checkmark-circle.svg") center / contain no-repeat;
}
html.ds-on body .breadcrumb-tabs .breadcrumb-item[disabled] {
    color: var(--ds-border-strong);
}

/* Accordion (`.accord`, components.scss: aside summary of the lead
   processing modal): light rounded frame, thin dividers, titles in the module
   colour (legacy: fixed blue-green literals), open item tinted */
html.ds-on body .accord {
    overflow: hidden;
    border-color: var(--ds-border) !important;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
}
html.ds-on body .accord .accord-item {
    border-bottom: 1px solid var(--ds-divider);
}
html.ds-on body .accord .accord-item:last-child {
    border-bottom: 0;
}
html.ds-on body .accord .accord-item .accord-header h2 {
    color: var(--ds-primary-strong);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .accord .accord-item .accord-header:hover,
html.ds-on body .accord .accord-item .accord-header:focus-visible,
html.ds-on body .accord .accord-item.active .accord-header {
    background-color: var(--ds-primary-tint);
    box-shadow: none;
}

/* Lead processing modal (`workshop/module/lead/front/_tpl_lead_item_process_modal`,
   `LeadItemProcessModal.js`: Workshop and Parts lead lists). Summary as a
   rounded well (black column separators softened), processing choices as
   cards with a thin border (the JS sets `.active` on the chosen one),
   duplicate cards to match (the JS toggles `.active` and `border-blue-500`) */
html.ds-on body .lead-item-process-modal .js-tab[data-step="summary"] {
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
}
html.ds-on body .lead-item-process-modal .js-tab[data-step="summary"] .border-black {
    border-width: 1px !important;
    border-color: var(--ds-divider) !important;
}
html.ds-on body .lead-item-process-modal .js-process-choice {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    box-shadow: var(--ds-shadow-1) !important;
    transition: background-color .15s, border-color .15s;
}
html.ds-on body .lead-item-process-modal .js-process-choice:hover {
    border-color: var(--ds-primary);
}
html.ds-on body .lead-item-process-modal .js-process-choice.active {
    border: 1px solid var(--ds-primary);
    background-color: var(--ds-primary-tint);
    color: var(--ds-primary-deep);
    font-weight: 600;
}
html.ds-on body .lead-item-process-modal .js-item-card-inner {
    border-width: 1px !important;
    border-color: var(--ds-border) !important;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface) !important;
}
html.ds-on body .lead-item-process-modal .js-item-card.active .js-item-card-inner {
    border-color: var(--ds-primary) !important;
    background-color: var(--ds-primary-tint) !important;
}


/* -------------------------------------------------------------------------
   MODULE COLOUR - legacy literals
   Bootstrap and the Workshop SCSS were compiled with the Workshop teal
   written as a value (#0A8295 scale), not as a variable. It looks right in
   SAV by chance (the blue-green is close), but stays teal in Parts and with
   the user themes. Each rule below points one of those values back to the
   palette: 500 -> primary, 600 -> primary-strong, 100 / 200 -> tint / soft.
   Status colours (work order statuses...) are data and stay untouched.
   ------------------------------------------------------------------------- */

/* Bootstrap components */
html.ds-on body .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--ds-primary);
}
html.ds-on body .list-group {
    --bs-list-group-active-bg: var(--ds-primary);
    --bs-list-group-active-border-color: var(--ds-primary);
}
html.ds-on body .progress,
html.ds-on body .progress-stacked {
    --bs-progress-bar-bg: var(--ds-primary);
}
html.ds-on body .accordion {
    --bs-accordion-active-color: var(--ds-primary-strong);
    --bs-accordion-active-bg: var(--ds-primary-tint);
    --bs-accordion-btn-focus-box-shadow: var(--ds-focus-ring);
    /* the active chevron is an SVG holding the teal: neutral one instead */
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}
html.ds-on body .btn-close {
    --bs-btn-close-focus-shadow: var(--ds-focus-ring);
}
html.ds-on body .form-range::-webkit-slider-thumb {
    background-color: var(--ds-primary);
}
html.ds-on body .form-range::-moz-range-thumb {
    background-color: var(--ds-primary);
}
html.ds-on body .form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px var(--ds-surface), var(--ds-focus-ring);
}
html.ds-on body .form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px var(--ds-surface), var(--ds-focus-ring);
}
/* Bootstrap tooltips only show text: never under the cursor, so a tooltip
   reaching its element cannot hide / show in a loop or block the click */
html.ds-on body .tooltip {
    pointer-events: none;
}
html.ds-on body :where([tabindex]):focus-visible,
html.ds-on body #Main.intervention-config-list .input-group:has(input[type="search"]:focus),
html.ds-on body #Main.license-manager .input-group:has(input[type="search"]:focus) {
    box-shadow: var(--ds-focus-ring);
}
/* main.scss: `option:hover` with `!important` */
html.ds-on body option:hover {
    background-color: var(--ds-primary-soft) !important;
    color: var(--ds-primary-strong) !important;
}
html.ds-on body select option:checked {
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}
/* Elements extended from `.btn-primary` / `.btn-outline-primary` by the
   SCSS (`@extend`): they get the literal values, not the class rules above */
html.ds-on body #tabsContainer #tabCalendarContainer .js-wished-dates-choice-container button.selected,
html.ds-on body #tabsContainer #tabCalendarContainer .js-wished-dates-choice-container button[disabled],
html.ds-on body #LeftMenu.left-menu-disabled .left-menu-module-container button.left-menu-module:not(.li-active) {
    --bs-btn-bg: var(--ds-primary);
    --bs-btn-border-color: var(--ds-primary);
    --bs-btn-hover-bg: var(--ds-primary-strong);
    --bs-btn-hover-border-color: var(--ds-primary-strong);
    --bs-btn-active-bg: var(--ds-primary-deep);
    --bs-btn-active-border-color: var(--ds-primary-deep);
    --bs-btn-disabled-bg: var(--ds-primary);
    --bs-btn-disabled-border-color: var(--ds-primary);
}
html.ds-on body #tabsContainer #tabCalendarContainer .js-wished-dates-choice-container button:not(.selected, [disabled]) {
    --bs-btn-color: var(--ds-primary);
    --bs-btn-border-color: var(--ds-primary);
    --bs-btn-hover-color: var(--ds-primary-strong);
    --bs-btn-hover-bg: var(--ds-primary-tint);
    --bs-btn-hover-border-color: var(--ds-primary);
    --bs-btn-active-color: var(--ds-primary-strong);
    --bs-btn-active-bg: var(--ds-primary-soft);
    --bs-btn-active-border-color: var(--ds-primary);
    --bs-btn-disabled-color: var(--ds-primary);
    --bs-btn-disabled-border-color: var(--ds-primary);
}

/* Shell: notification parameters, company menu (alert.scss, main.scss).
   The notification panel itself: FAMILY "Workshop - shell and shared
   templates" (2026-11-08, cards look shared with Sales) */
html.ds-on body #AlertParamModal .accord-header label {
    color: var(--ds-primary-strong);
}
html.ds-on body #TopMenu .dropdown .dropdown-item .active figure {
    background: var(--ds-primary-soft);
}

/* Shared partials: attachments, mini calendar, search results */
html.ds-on body .attachment-card-wrapper[data-is-viewable="1"] .attachment-card:hover .attachment-card-body,
html.ds-on body .attachment-card-wrapper[data-is-viewable="1"] .attachment-card:focus-within .attachment-card-body,
html.ds-on body .js-search-intervention-result:hover,
html.ds-on body .hover-color-blue:hover,
html.ds-on body .hover-color-blue > :focus {
    background-color: var(--ds-primary-tint);
}
html.ds-on body .mini-calendar .datepicker-inline .table-condensed tbody td:hover .js-day-bubble {
    box-shadow: 0 0 0 2px var(--ds-primary-soft), inset 0 0 0 1px var(--ds-surface);
}
html.ds-on body .mini-calendar .datepicker-inline .table-condensed .active .js-day-bubble {
    box-shadow: 0 0 0 3px var(--ds-primary-soft), inset 0 0 0 1px var(--ds-surface);
}

/* Plannings: FullCalendar legacy toolbar and list views
   (intervention, receipt_return, workload .scss) */
html.ds-on body #Calendar .fc-header-toolbar .fc-toolbar-chunk:last-child,
html.ds-on body #Calendar .fc-list .fc-list-day-cushion {
    background: var(--ds-primary-tint);
}
html.ds-on body #Calendar .fc-event:has(.task) {
    background-color: var(--ds-primary-soft);
}
html.ds-on body #Calendar .fc-header-toolbar .fc-toolbar-title,
html.ds-on body #Calendar .fc-list .fc-list-day-cushion .fc-list-day-text {
    color: var(--ds-primary-strong);
}

/* Intervention folder: split modal, time slots (intervention.scss) */
html.ds-on body #cutInterventionModal .js-separator {
    /* dashed frame drawn by an SVG holding the teal: outline instead, which
       keeps the size */
    background-image: none;
    outline: 1px dashed var(--ds-primary);
    outline-offset: -1px;
}
html.ds-on body #cutInterventionModal .js-separator > div,
html.ds-on body #cutInterventionModal .js-slider-container ul li:hover {
    color: var(--ds-primary);
}
html.ds-on body #tabsContainer #tabCalendarContainer .accordion-item .js-time-choice.selected {
    border-color: var(--ds-primary);
    background: var(--ds-primary-soft);
}

/* Work order sheet table (vehicle, intervention, receipt_return .scss) */
html.ds-on body .table-list-custom thead tr th {
    background-color: var(--ds-primary);
}
html.ds-on body .table-list-custom tbody tr:hover > td {
    background-color: var(--ds-primary-tint) !important;
}
html.ds-on body .table-list-custom tbody tr.line-checked > td {
    background-color: var(--ds-primary-soft) !important;
    color: var(--ds-primary-strong) !important;
}

/* Modals: PDF form steps (home.scss), history timeline (history_modal.scss),
   schedule (parameters.scss) */
/* steps in error keep their red (`.is-invalid`) */
html.ds-on body .form-pdf-modal .nav.nav-pills .nav-link:not(.is-invalid) {
    background-color: var(--ds-primary-soft) !important;
}
html.ds-on body .form-pdf-modal .nav.nav-pills .nav-link.active:not(.is-invalid),
html.ds-on body .form-pdf-modal .nav.nav-pills .nav-link.is-viewed:not(.is-invalid) {
    background-color: var(--ds-primary) !important;
}
html.ds-on body #HistoModal #ModalHistoryTimeline {
    border-right-color: var(--ds-primary);
}
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-year-container h3,
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-year-container .h3 {
    color: var(--ds-primary-strong);
}
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-year-container .month.active {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-year-container .month.active:after {
    border-color: transparent transparent transparent var(--ds-primary);
}
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-year-container .month.active:before {
    border-color: transparent transparent transparent var(--ds-primary-soft);
}
html.ds-on body #ScheduleModal #ScheduleModalContent .days-tabs .day-timeslot .timeslot .step-element {
    border-bottom-color: var(--ds-primary);
    border-left-color: var(--ds-primary);
}

/* Parameters switches (parameters.scss, with `!important`): off state only,
   the on state keeps its green */
html.ds-on body #Main.license-manager .form-switch .form-check-input:not(:checked),
html.ds-on body #Main.standby-screen .form-switch .form-check-input:not(:checked) {
    border-color: var(--ds-primary) !important;
    background-color: var(--ds-primary-soft) !important;
}


/* -------------------------------------------------------------------------
   SHELL - environment badge and temporary banner (Workshop / Parts,
   2026-11-07; same look as the Sales shell in ds-materialize.css). Colours
   from the settings (`environmentTxtColor`, `topBannerColor`, inline): data,
   kept.
   ------------------------------------------------------------------------- */
/* Environment badge (`#TopEnvironmentTxt` in the left part of the top bar,
   workshop/module/common/front/_tpl_top-menu.php): one 24px pill, icon then
   label, fully opaque (was a circle with a 27px icon overlapping a square
   label, 70% opacity, 32px high). Legacy height / line-height `!important` under `#TopMenu #TopEnvironmentTxt` (two ids: `:is(#TopMenu, body)` matches it);
   the icon size is an inline `--fig-size`. */
html.ds-on body :is(#TopMenu, body) #TopEnvironmentTxt {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 24px !important;
    margin-left: 4px;
    overflow: hidden;
    border-radius: 999px !important;
    line-height: 24px !important;
    opacity: 1;
}
html.ds-on body :is(#TopMenu, body) #TopEnvironmentTxt .env-icon {
    display: flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    float: none;
    top: 0;
    width: 22px;
    height: 24px !important;
    border-radius: 0 !important;
}
html.ds-on body :is(#TopMenu, body) #TopEnvironmentTxt .env-icon figure {
    --fig-size: 16px !important;  /* inline 1.7rem */
    bottom: 0 !important;  /* inline 1px */
    margin: 0;
}
html.ds-on body :is(#TopMenu, body) #TopEnvironmentTxt .env-txt {
    top: 0;
    left: 0;
    height: 24px;
    padding: 0 10px 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 24px;
}

/* Temporary banner (`.top-banner` above the top bar, in the flow,
   workshop/module/common/front/_tpl_header.php; the JS scrolls the text
   when `topBannerIsScrolling`): 13px medium text in the text colour, bold
   links, thin bottom line instead of the shadow, "close" as a small white
   pill (was the module colour outline button). */
html.ds-on body .top-banner {
    padding: 6px 8px 6px 16px !important;  /* Bootstrap p-2 */
    box-shadow: none !important;  /* Bootstrap .shadow */
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}
html.ds-on body .top-banner a {
    color: inherit;
    font-weight: 600;
    text-underline-offset: 2px;
}
/* Scrolling text (`.scrolling-text`: the text block is absolute and runs
   across): clipped by the banner, which stays one line high, and the close
   button kept on the right above it (it was the only flex item left, so it
   went to the left) */
html.ds-on body .top-banner.scrolling-text {
    position: relative;
    min-height: 37px;
    overflow: hidden;
}
html.ds-on body .top-banner .top-banner-close-button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px !important;
    background-color: rgba(255, 255, 255, .85);
    color: var(--ds-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    transition: background-color .15s;
}
html.ds-on body .top-banner .top-banner-close-button:is(:hover, :focus) {
    border-color: rgba(0, 0, 0, .12);
    background-color: #FFFFFF;
    color: var(--ds-text);
}


/* #########################################################################
   FAMILIES (2026-11-07)
   One section per family of Workshop / Parts screens, same families as
   docs/design-system/workshop.md and parts.md. New shared rules go just
   ABOVE the "END FAMILY" marker of their family; page rules go to the page
   sheets. Nothing may be written after the last END FAMILY marker.
   ######################################################################### */


/* =========================================================================
   FAMILY: Workshop - shell and shared templates
   Rail, top bar, banner, partials included by several pages
   (workshop/module/common/front/_tpl_*, also used by Parts). Reaches
   Workshop and Parts: announce changes to the team.
   ========================================================================= */

/* -------------------------------------------------------------------------
   NOTIFICATION PANEL (pages/common/front/_tpl_alert_window.php, included by
   the Workshop and Parts top bars; rows from the `#NotificationParse`
   template, header buttons cloned by resources/script/alert.js).
   2026-11-08, same "N2 cards" look as the Sales panel (ds-materialize.css),
   adapted to the Workshop markup. Was: white panel padded 1rem, teal title,
   round outlined header buttons, rows on blue-100 / gray-100.
   Now: rounded panel (shadow 3) on --ds-surface-2, 52px header with the
   light module gradient, header buttons as 32px white squares with muted
   icons (primary on hover), each notification a white card (unread: 3px
   accent bar), pictogram in a 36px tinted square, title / message / time
   hierarchy, read toggle (`btn-figure`) as a 28px ghost button (the Sales
   dot since 2026-11-30, see below). Panel width
   / height and position kept (alert.js toggles its display; position in the
   SCALE section).
   ------------------------------------------------------------------------- */
html.ds-on body #NotificationWindow {
    padding: 0;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg) !important;
    background-color: var(--ds-surface-2);
    box-shadow: var(--ds-shadow-3) !important;  /* @extend .shadow (literal + !important) */
    color: var(--ds-text);
}
html.ds-on body #NotificationWindow #NotificationWindowHeader {
    box-sizing: border-box;
    flex: 0 0 auto;
    gap: 4px;
    height: 52px;
    margin: 0;
    padding: 0 12px 0 18px;
    border-bottom: 1px solid var(--ds-border);
    background: linear-gradient(180deg, var(--ds-primary-soft), var(--ds-primary-tint));
    color: var(--ds-primary-deep);
    font-size: calc(1.0714rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body #NotificationWindow #NotificationWindowHeader #NotificationWindowHeaderParam {
    margin-right: 0;
}
html.ds-on body #NotificationWindow #NotificationWindowHeader .btn-figure {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--ds-radius-sm) !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}
/* the figures carry `c-primary-500` (`!important`, reads --primary-500) */
html.ds-on body #NotificationWindow #NotificationWindowHeader .btn-figure figure {
    --primary-500: var(--ds-text-muted);
    border: 0;
    background-color: transparent;
}
html.ds-on body #NotificationWindow #NotificationWindowHeader .btn-figure:hover figure {
    --primary-500: var(--ds-primary);
}
/* Hover (2026-11-30, user report: a round tint around the icon in the SAV,
   nearly nothing in the Sales panel): the whole 32px square reacts, 1px
   module colour ring and module colour icon, same as the Sales panel
   (ds-materialize.css); never a round fill on the icon (figure-circle) */
html.ds-on body #NotificationWindow #NotificationWindowHeader .btn-figure:hover {
    box-shadow: inset 0 0 0 1px var(--ds-primary), var(--ds-shadow-1);
}
html.ds-on body #NotificationWindow #NotificationWindowHeader .btn-figure:hover figure {
    background-color: transparent !important;  /* legacy figure-circle hover fills */
}
/* the round tint itself (second user report, same day): components.scss
   shows the `.figure-circle::before` disc (currentColor) at opacity .2 on
   hover, .25 on focus, .3 when active */
html.ds-on body #NotificationWindow #NotificationWindowHeader .btn-figure figure::before {
    opacity: 0 !important;
}

/* Menu (display toggled by alert.js) */
html.ds-on body #NotificationWindow #NotificationMenu {
    top: 46px;
    right: 12px;
    width: 190px;
    padding: 6px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    box-shadow: var(--ds-shadow-3);
}
html.ds-on body #NotificationWindow #NotificationMenu .notification-menu-item {
    height: 32px;
    padding: 0 10px;
    border-radius: var(--ds-radius-sm) !important;
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 32px;
}
html.ds-on body #NotificationWindow #NotificationMenu .notification-menu-item:hover {
    background-color: var(--ds-primary-tint);
    color: var(--ds-primary-strong);
}

/* List and notification cards */
html.ds-on body #NotificationWindow #NotificationWindowBody {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
    padding: 10px;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row-list {
    gap: 8px;
    padding-right: 0;
}
html.ds-on body #NotificationWindow .notification-empty {
    padding: 40px 24px;
    border: 0;
    background-color: transparent;
    color: var(--ds-text-muted);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-style: italic;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row:nth-child(n) {
    gap: 12px;
    min-height: 0;
    padding: 12px 14px;  /* 2026-11-30: as the Sales cards (was 10px on the right) */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
    color: var(--ds-text);
    transition: border-color .15s;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row:not(.read):not(.simulate) {
    box-shadow: inset 3px 0 0 var(--ds-primary), var(--ds-shadow-1);
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row:nth-child(n):not(.simulate):hover {
    border-color: var(--ds-primary);
    background-color: var(--ds-surface);
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-primary-soft);
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row.read .notification-icon {
    background-color: var(--ds-surface-sunken);
}
/* 20px as the Sales icons (2026-11-30: `--fig-size`, the width / height
   lost to the min-width / min-height 1.5rem of the legacy .figure-sm; first
   seen then, the pictograms were never filled before, see alert.js) */
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-icon figure {
    --fig-size: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-content {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-title {
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 1.3;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row.read .notification-title {
    color: var(--ds-text-muted);
    font-weight: 500;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-content.invalid .notification-title {
    color: var(--ds-danger);
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-message {
    margin-top: 2px;
    color: var(--ds-text-muted);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 1.4;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row .notification-time {
    padding-top: 6px;
    color: var(--ds-text-muted);
    font-size: max(calc(.8214rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Read / unread toggle (`btn-figure`, click handled by the template).
   2026-11-30, user request (same look as the Sales panel): was a 24px
   "work in progress" icon in a 28px ghost button at the top right of the
   card; now the Sales dot, vertically centred: 10px module colour with a
   4px soft halo when unread, a 1.5px ring once read, grows on hover. The
   button stays the click target (16px, its centre 22px from the card edge
   like the Sales dot; -5px so the text ends 37px from the edge as there) */
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row > .btn-figure {
    flex: 0 0 auto;
    align-self: center;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    margin-left: -5px;
    padding: 0;
    border-radius: 50% !important;
    background-color: transparent;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row > .btn-figure figure {
    --fig-size: 10px;  /* legacy .figure-sm: width / height / min-* 1.5rem */
    margin: 0;
    border-radius: 50%;
    background-color: var(--ds-primary);
    box-shadow: 0 0 0 4px var(--ds-primary-soft);
    transition: transform .15s;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row > .btn-figure figure > svg {
    display: none;
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row > .btn-figure:hover figure {
    transform: scale(1.25);
}
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row.read > .btn-figure figure {
    background-color: transparent;
    box-shadow: inset 0 0 0 1.5px var(--ds-border-strong);
}

/* Loading skeleton */
html.ds-on body #NotificationWindow #NotificationWindowBody .notification-row.simulate :is(.notification-icon, .notification-title, .notification-message) {
    border-radius: 6px !important;
    background-color: var(--ds-surface-sunken);
}

/* Bell counter (display set by alert.js) */
html.ds-on body #TopMenu #NotificationCount {
    background-color: var(--ds-danger);
    box-shadow: 0 0 0 2px var(--ds-surface);
    font-weight: 700;
}

/* -------------------------------------------------------------------------
   NOTIFICATION SETTINGS MODAL (`#AlertParamModal`, ModalLight built by
   resources/script/alert.js with workshop/module/common/front/
   _tpl_alert_param_modal.php from `a=get-alert-param-modal`). 2026-11-08,
   same look as the Sales modal (ds-materialize.css). Was: zebra grey
   categories (compiled `#AlertParamModal .modal-body ul li:nth-child()`),
   titles and chevrons in the module colour, round outlined channel icons,
   cancel in red outline. Now: categories as light bordered cards (header
   on --ds-surface-2, tinted when open; the JS still adds `border-bottom
   border-primary`, recoloured to the divider), dark titles, muted chevron
   and info pictos (`--blue-500` redefined on them, the `c-blue-500`
   utilities read it), rows tinted on hover, each channel a 32px round
   toggle: neutral ring, soft success when selected (`is-selected`), faded
   when unavailable; cancel as a neutral outline. The uppercase texts of
   the footer buttons come from the JS (`toUpperCase()`): unchanged.
   ------------------------------------------------------------------------- */
/* Categories (2026-11-30, user request: same accordion as the Sales modal,
   mockup C). Were light bordered cards 8px apart in a body padded 20px
   24px, chevron on the right, rows padded 8px. Now flush in the body like
   Sales: categories separated by a divider, 44px header on --ds-surface-2
   (tinted when open) padded 24px, 14px chevron on the left (same glyph,
   rotated by alert.js), title at 52px; rows of 44px padded 24px / 52px with
   dividers, info picto 16px (the Sales `icon-info` glyph by a mask) */
html.ds-on body #AlertParamModal .modal-body {
    padding: 0;
}
html.ds-on body #AlertParamModal .modal-body ul.accord {
    margin: 0;
    padding: 0;
    border-radius: 0 !important;  /* shared `.accord` card (12px !important): flush here (user report, same day: round corners above the open first category) */
}
html.ds-on body #AlertParamModal .modal-body ul li.accord-item:nth-child(n) {
    margin: 0 !important;  /* `mb-2` utility */
    border: 0 !important;  /* `border-0` utility */
    border-radius: 0 !important;
    background-color: var(--ds-surface);
}
html.ds-on body #AlertParamModal .modal-body ul li.accord-item + li.accord-item {
    border-top: 1px solid var(--ds-divider) !important;
}
html.ds-on body #AlertParamModal .accord-header {
    gap: 8px;
    min-height: 44px;
    padding: 0 24px !important;
    border-radius: 0 !important;
    background-color: var(--ds-surface-2);
    cursor: pointer;
}
html.ds-on body #AlertParamModal .accord-item.active > .accord-header {
    border-bottom-color: var(--ds-divider) !important;  /* `border-primary` utility added by alert.js */
    background-color: var(--ds-primary-tint);
}
html.ds-on body #AlertParamModal .accord-header > .form-check {
    min-height: 0;
    margin: 0;
    padding: 0;
}
html.ds-on body #AlertParamModal .accord-header span {
    --blue-500: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* `fw-bold` utility */
}
html.ds-on body #AlertParamModal .accord-header > div:has(> .js-accord-figure) {
    order: -1;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}
html.ds-on body #AlertParamModal .accord-header .js-accord-figure {
    --fig-size: 14px;
    --blue-500: var(--ds-text-muted);
    margin: 0;
    transition: rotate .15s;
}
html.ds-on body #AlertParamModal .accord-item.active > .accord-header .js-accord-figure {
    --blue-500: var(--ds-primary);
}
html.ds-on body #AlertParamModal .accord-body {
    padding: 0;
}
html.ds-on body #AlertParamModal .js-alert-div {
    gap: 10px;
    min-height: 44px;
    margin: 0 !important;  /* `mb-1` utility */
    padding: 4px 24px 4px 52px;
    border-radius: 0 !important;
    transition: background-color .15s;
}
html.ds-on body #AlertParamModal .js-alert-div + .js-alert-div {
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body #AlertParamModal .js-alert-div:hover {
    background-color: var(--ds-row-alt);
}
html.ds-on body #AlertParamModal .js-alert-div .form-check-label {
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
}
/* info picto: the Sales glyph (circled "i"), 16px, muted, primary on hover */
html.ds-on body #AlertParamModal .js-alert-div > div:has(.js-btn-information-tooltip) {
    display: flex;
    flex: 0 0 16px;
}
html.ds-on body #AlertParamModal .js-btn-information-tooltip {
    --fig-size: 16px;
    margin: 0 !important;  /* `me-2` utility */
    border: 0;
    background-color: transparent !important;  /* `bg-white` utility */
    color: var(--ds-text-muted) !important;  /* `c-blue-500` utility */
    cursor: help;
}
html.ds-on body #AlertParamModal .js-btn-information-tooltip > svg {
    opacity: 0;
}
html.ds-on body #AlertParamModal .js-btn-information-tooltip::before {
    opacity: 1 !important;  /* legacy hover disc of `.btn-figure` (components.scss), redrawn as the glyph */
    background-color: currentColor !important;
    box-shadow: none !important;
    -webkit-mask: url("../../img/icons/icons_blue/icon-info.svg") center / contain no-repeat;
    mask: url("../../img/icons/icons_blue/icon-info.svg") center / contain no-repeat;
}
html.ds-on body #AlertParamModal .js-alert-div .btn-figure:hover .js-btn-information-tooltip {
    color: var(--ds-primary) !important;
}

/* Channel toggles (mobile, Windows, e-mail, web): 2026-11-30, pills in
   labelled columns shared with the Sales modal, see ds-core.css
   (NOTIFICATION SETTINGS); were 32px round toggles. Here only the label
   row padding, aligned on the rows (24px right, 52px left) */
html.ds-on body #AlertParamModal .accord-body > .ds-alert-channels {
    padding-right: 24px;
    padding-left: 52px;
}

/* footer: cancel as a neutral outline (modal conventions) */
html.ds-on body #AlertParamModal .modal-footer .btn-outline-danger {
    --bs-btn-color: var(--ds-text);
    --bs-btn-border-color: var(--ds-border-strong);
    --bs-btn-hover-color: var(--ds-text);
    --bs-btn-hover-bg: var(--ds-surface-2);
    --bs-btn-hover-border-color: var(--ds-border-strong);
    --bs-btn-active-color: var(--ds-text);
    --bs-btn-active-bg: var(--ds-surface-2);
    --bs-btn-active-border-color: var(--ds-border-strong);
}

/* "See the contact / vehicle sheet" eye (2026-11-09), same look and place
   wherever it is shown: `ds-see-sheet` on the element wrapping the eye figure
   (button or column), `ds-see-sheet-host` on the card. Vehicle detail and form
   contact cards, contact and vehicle search results (`_tpl_contact_search_row`,
   `_tpl_vehicle_search_row`, open-sheet mode: Workshop and Parts homes,
   contact detail, e-contact detail), intervention folder contact cards, work
   order send modal (no card: in the flow). Was a round figure, blue, amber or
   orange depending on the page, on the left of some cards and on the right of
   others. Now a 30px white square with an orange eye (`--ds-orange`, stays
   orange in Parts), tinted on hover, pinned to the top-right corner of its
   card. Not included: the lead duplicates "detail" button (contact or
   vehicle, LeadItemProcessModal). */
html.ds-on body .ds-see-sheet-host {
    position: relative;
}
html.ds-on body .ds-see-sheet-host .ds-see-sheet {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: auto;
    margin: 0;
    padding: 0;
}
html.ds-on body .ds-see-sheet .figure-circle {
    --fig-size: 30px;
    margin: 0 !important;  /* legacy .ms-auto / .ms-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: 10px !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-white !important */
    color: var(--ds-orange);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
html.ds-on body .ds-see-sheet:hover .figure-circle,
html.ds-on body .search-result-col:hover .ds-see-sheet .figure-circle {
    border-color: var(--ds-orange);
    background-color: color-mix(in srgb, var(--ds-orange) 10%, var(--ds-surface)) !important;  /* legacy .bg-white !important */
}
/* The grid column that held the eye (vehicle cards, search results: `col-2`)
   is emptied: no width left (it stays in the DOM, the eye inside it is out of
   the flow). Columns hidden by `d-none` (search results, `md` size) stay hidden. */
html.ds-on body .ds-see-sheet-host.row > :has(> .ds-see-sheet):not(.ds-see-sheet, .row),
html.ds-on body .ds-see-sheet-host .row > :has(> .ds-see-sheet):not(.ds-see-sheet, .row) {
    flex: 0 0 0;
    width: 0;
    padding: 0 !important;  /* legacy .pt-2 !important */
}
/* Cards whose content is one grid row (vehicle form contact cards, search
   results with a visible eye): the content keeps clear of the eye (48px:
   eye 30px + 10px from the edge + 8px gap; was 40px, the vehicle form trash
   button ended 6px from the eye). Search result cards have their own
   layout (SHARED TEMPLATES, `--ds-src-end`). */
html.ds-on body .ds-see-sheet-host:not(.search-result-card):has(> .row > :not(.d-none) > .ds-see-sheet) > .row {
    padding-right: 48px;
}

/* Square icon buttons inside a `.btn-figure` (user report 2026-11-09): the
   legacy hover / focus / active state of `.btn-figure` (components.scss)
   shows the `::before` of the figure, a round halo in the figure colour
   (border-radius 1000px !important, 0.25rem spread) over square buttons.
   Removed on the design system squares (`ds-icon-btn`, "see the sheet" eye,
   attachment file button, search / export squares of the vehicle modals and
   form), which get their own states: soft buttons one step darker, outlined
   ones in the light grey surface, focus ring on keyboard focus. */
html.ds-on body .btn-figure :is(.ds-icon-btn, .figure-circle)::before {
    border-radius: inherit !important;  /* legacy 1000px !important */
}
html.ds-on body .btn-figure .ds-icon-btn::before,
html.ds-on body .ds-see-sheet .figure-circle::before,
html.ds-on body .js-attachment-insert #AddTmpFile .figure-circle::before,
html.ds-on body .js-vehicle-merge-modal .js-form button[type="submit"] .figure-circle::before,
html.ds-on body #HistoModal .modal-footer .btn-figure .figure-circle::before,
html.ds-on body #Main.vehicle-create-update .js-search-vehicle .figure-circle::before {
    display: none;
}
html.ds-on body :is(#Main, body) .btn-figure:is(:hover, :focus-visible) .ds-icon-btn.is-soft:is(.figure-circle, *),  /* id weight: page sheets set the soft background with an id selector */
html.ds-on body .js-vehicle-merge-modal .js-form button[type="submit"]:is(:hover, :focus-visible) .figure-circle {
    background-color: color-mix(in srgb, var(--ds-primary) 22%, var(--ds-surface)) !important;  /* `.bg-white` / is-soft background */
}
html.ds-on body .btn-figure:is(:hover, :focus-visible) .ds-icon-btn:not(.is-soft, .is-primary) {
    background-color: var(--ds-surface-2) !important;  /* `.bg-white` on some figures */
}
html.ds-on body #Main.vehicle-create-update .js-search-vehicle:is(:hover, :focus-visible) .figure-circle,
html.ds-on body .js-attachment-insert #AddTmpFile:is(:hover, :focus-visible) .figure-circle,
html.ds-on body #HistoModal .modal-footer .btn-figure:is(:hover, :focus-visible) .figure-circle {
    background-color: var(--ds-primary-strong) !important;  /* legacy .bg-*-500 !important */
}
html.ds-on body .btn-figure:focus-visible :is(.ds-icon-btn, .figure-circle) {
    box-shadow: var(--ds-focus-ring);
}

/* Meetings panel (`_tpl_meetings_panel`, vehicle and contact detail; visual
   check 2026-11-09): tabs and meeting cards 12px from the panel edge like
   its header title (were 6px and 18px: `p-2`, `p-4`) */
html.ds-on body .ds-meetings-panel .nav-container > .nav {
    padding: 12px 12px 0 !important;  /* legacy .p-2 .pb-0 !important */
}
html.ds-on body .ds-meetings-panel .nav-container > .tab-content {
    padding: 12px !important;  /* legacy .p-4 !important */
}
/* Header title centred on the "+" button (the header is a flex row without
   `align-items`: the title took the 30px button height, its text 7px
   higher; user report 2026-11-09) */
html.ds-on body .ds-meetings-panel > :first-child {
    align-items: center;
}
/* "+" (create an intervention folder) of the header (2026-11-25, user
   request): 30px square, radius 10, like the "+" of the attachments card;
   white with the orange 18px icon centred (user request the same day: keep
   the orange; first done in translucent white with a white icon), same
   colours as the "see the sheet" eye, orange tint on hover, focus ring. Was
   a white circle with an amber border and an amber 20px icon off-centre
   (figure padding 3 / 4px). */
html.ds-on body .ds-meetings-panel > :first-child .btn-figure {
    border-radius: 10px !important;  /* legacy .btn-figure round */
}
html.ds-on body .ds-meetings-panel > :first-child .btn-figure .figure-circle {
    --fig-size: 30px;
    display: grid;
    place-items: center;
    padding: 0 !important;  /* legacy .figure-circle padding !important */
    border: 0;
    border-radius: 10px !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-white !important */
    color: var(--ds-orange) !important;  /* legacy .c-secondary-500 !important */
    transition: background-color .15s;
}
html.ds-on body .ds-meetings-panel > :first-child .btn-figure .figure-circle::before {
    display: none;  /* round halo of `.btn-figure` */
}
html.ds-on body .ds-meetings-panel > :first-child .btn-figure .figure-circle svg {
    width: 18px;
    height: 18px;
}
html.ds-on body .ds-meetings-panel > :first-child .btn-figure:is(:hover, :focus-visible) .figure-circle {
    background-color: color-mix(in srgb, var(--ds-orange) 12%, var(--ds-surface)) !important;  /* see above */
}
html.ds-on body .ds-meetings-panel > :first-child .btn-figure:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px #FFFFFF;
}

/* Attachment cards (workshop/module/common/front/_tpl_attachment_manager.php,
   `AttachmentManager.initCardList()`: vehicle and contact detail,
   intervention folder modal). CSS only, 2026-11-09. Category bar: white,
   thin divider, 13px semibold name in the text colour, muted chevron (was a
   36px module-tint band in the module colour); its inline `position:
   sticky` is kept, the white background still covers the scrolled cards.
   "Download all" as a tonal 30px button (was filled). Cards: 12px corners,
   light border and shadow (were square, `.shadow`), the hover actions bar
   follows the corners; caption 12px muted italic (was 14px medium), file
   name 13px, size 12px muted (was 12.25px) */
html.ds-on body .js-attachment-card-category {
    min-height: 40px;
    border-bottom: 1px solid var(--ds-divider);
    background-color: var(--ds-surface) !important;  /* legacy .bg-blue-100 !important */
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-attachment-card-category .js-category-name {
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body .js-attachment-card-category .collapse-figure {
    color: var(--ds-text-muted) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-attachment-card-category .download-all-attachment {
    height: 30px;
    padding: 0 12px;
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
    font-size: 13px;
}
html.ds-on body .js-attachment-card-category .download-all-attachment:hover {
    border-color: transparent;
    background-color: var(--ds-primary);
    color: #FFFFFF;
}
/* Chevron and cards 12px from the card edge like the card header (were 6px
   and 16px; visual check 2026-11-09) */
html.ds-on body .js-attachment-card-category > .js-toggle-row {
    margin: 0 6px 0 12px !important;  /* legacy .m-2 !important */
}
html.ds-on body .js-attachment-card-container {
    padding: 12px 12px 16px !important;  /* legacy .p-4 !important */
    gap: 16px !important;  /* legacy .gap-2 !important */
}
html.ds-on body .attachment-card-wrapper {
    margin-right: 0 !important;  /* legacy @extend .me-4 !important, the container gap spaces the cards */
}
html.ds-on body .attachment-card-wrapper .attachment-card-body {
    border-color: var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    box-shadow: var(--ds-shadow-1) !important;  /* legacy .shadow !important */
}
html.ds-on body .attachment-card-wrapper .attachment-card-actions {
    border-radius: 0 0 var(--ds-radius-md) var(--ds-radius-md) !important;
}
html.ds-on body .attachment-card-wrapper .js-attachment-type {
    color: var(--ds-text-muted) !important;  /* legacy .c-gray-600 !important */
    font-size: 12px;
    font-weight: 400 !important;  /* legacy .fw-medium !important */
}
html.ds-on body .attachment-card-wrapper .js-file-name {
    font-size: 13px;
}
html.ds-on body .attachment-card-wrapper .js-file-size {
    color: var(--ds-text-muted);
    font-size: 12px;
}
/* Renaming a card (textarea shown by the JS, `d-none` toggled): 13px with
   8px corners (was 14px), the extension left below it muted */
html.ds-on body .attachment-card-wrapper .js-file-name-field {
    margin-bottom: 4px;
    padding: 6px 8px;
    border-radius: var(--ds-radius-sm) !important;
    font-size: 13px;
}
html.ds-on body .attachment-card-wrapper .js-file-name-field.is-renaming + .js-file-name {
    color: var(--ds-text-muted);
}

/* Z-scan download modal (`.js-zscan-download-modal`, opened by the store
   badges of the QR code card): padding 20px 24px (was 40px), QR code and
   text 16px apart, sentence 13px, close as a neutral outline 120px */
html.ds-on body .modal:has(.modal-body > .js-zscan-download-modal) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .modal .js-zscan-download-modal {
    gap: 16px;
}
html.ds-on body .modal .js-zscan-download-modal .js-qr-code {
    margin: 0 !important;  /* legacy .me-3 !important */
}
html.ds-on body .modal .js-zscan-download-modal .js-sentence {
    margin-bottom: 10px;
    font-size: 13px;
}
html.ds-on body .modal:has(.modal-body > .js-zscan-download-modal) .modal-footer .btn-primary {
    min-width: 120px;
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .js-zscan-download-modal) .modal-footer .btn-primary:hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* Add an attachment modal (same template, `.js-attachment-insert` cloned by
   `AttachmentManager.initInsert()` into a ModalLight: vehicle and contact
   detail, intervention folder, Parts order tracking). CSS only, 2026-11-09,
   look of the Sales add attachments modal: body padding 20px 24px (was
   40px); "from your computer / phone" titles 13px semibold in the text
   colour (were bold module colour / amber); computer form and QR code as
   light bordered cards of the same height (were a grey well and a 2px amber
   frame); labels 12px muted; file button as a 32px rounded square; needed /
   added lists in a light frame with a white header (were amber / module
   tint labels), empty rows muted; category row of the added list as the
   card list one (its "download all" label is upper case in the template);
   close button as a neutral outline (was filled) */
html.ds-on body .modal:has(.modal-body > .js-attachment-insert) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .js-attachment-insert > .row:first-child > .col-xl-6 > p {
    margin-bottom: 8px;
    color: var(--ds-text) !important;  /* legacy .c-primary-500 / .c-secondary-500 !important */
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .js-attachment-insert > .row:first-child > .col-xl-6:first-child {
    display: flex;
    flex-direction: column;
}
html.ds-on body .js-attachment-insert > .row:first-child > .col-xl-6:first-child > .bg-gray-100 {
    flex: 1 1 auto;
    padding: 18px 20px 14px !important;  /* legacy .p-4 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
}
html.ds-on body .js-attachment-insert .js-tab-qr-code {
    height: 100%;  /* as high as the computer form card (only its display is toggled by the JS) */
    border: 1px solid var(--ds-border) !important;  /* legacy .border-2 .border-secondary-500 !important */
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .js-attachment-insert :is(.form-label, .small) {
    color: var(--ds-text-muted);
    font-size: 12px;
}
html.ds-on body .js-attachment-insert .form-label {
    font-weight: 500;
}
html.ds-on body .js-attachment-insert #AddTmpFile .figure-circle {
    --fig-size: 32px;
    border-radius: var(--ds-radius-sm) !important;
}
html.ds-on body .js-attachment-insert .table-label {
    padding: 8px 14px !important;  /* legacy `.p-2, .table-label` !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) var(--ds-radius-md) 0 0 !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-*-100 !important */
    color: var(--ds-text) !important;  /* legacy .c-*-500 !important */
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body .js-attachment-insert .table-label + .overflow-auto:has(> table:not([style*="display: none"], [style*="display:none"])) {
    border: 1px solid var(--ds-border);
    border-top: 0;
    border-radius: 0 0 var(--ds-radius-md) var(--ds-radius-md) !important;
}
html.ds-on body .js-attachment-insert .table-label ~ .border {
    padding: 10px 14px !important;  /* legacy .p-2 !important */
    border-color: var(--ds-border) !important;  /* legacy .border-grey-500 !important */
    border-top: 0 !important;
    border-radius: 0 0 var(--ds-radius-md) var(--ds-radius-md) !important;
    color: var(--ds-text-muted);
    font-size: 13px;
    font-style: italic;
}
html.ds-on body .js-attachment-insert .table {
    margin-bottom: 0;
    border: 0;
    font-size: 13px;
}
html.ds-on body .js-attachment-insert .table th {
    background-color: var(--ds-surface-2);
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body .js-attachment-insert .table tr:last-child td {
    border-bottom: 0;
}
html.ds-on body .js-attachment-insert .table thead :is(th, td) {
    border-bottom-color: var(--ds-divider);
}
/* Needed list statuses ("added" / "missing", 2026-11-09 variants pass):
   semibold in the success / danger colours (were bold jade green / red) */
html.ds-on body .js-attachment-insert .js-is-added .js-valid {
    color: var(--ds-success) !important;  /* legacy .c-green-jade-500 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .js-attachment-insert .js-is-added .js-invalid {
    color: var(--ds-danger) !important;  /* legacy .c-red-500 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* "Refresh the QR code" state (the QR code expired): dashed rounded frame
   as high as the computer form card, button tonal 32px (was a filled
   button floating in the empty column). Only the display of the two tabs
   is toggled by the JS. */
html.ds-on body .js-attachment-insert .js-tab-show-qr-code {
    border: 1px dashed var(--ds-border-strong);
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .js-attachment-insert .js-show-qr-code {
    height: 32px;
    padding: 0 14px;
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
    font-size: 13px;
}
html.ds-on body .js-attachment-insert .js-show-qr-code:hover {
    border-color: transparent;
    background-color: var(--ds-primary);
    color: #FFFFFF;
}
html.ds-on body .js-attachment-insert .js-attachment-table-category {
    background-color: var(--ds-surface) !important;  /* legacy .bg-blue-100 !important */
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-attachment-insert .js-attachment-table-category td {
    color: var(--ds-text);
    font-weight: 600;
}
html.ds-on body .js-attachment-insert .js-attachment-table-category .collapse-figure {
    color: var(--ds-text-muted) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .js-attachment-insert .js-attachment-table-category .download-all-attachment {
    height: 30px;
    padding: 0 12px;
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
    font-size: 13px;
}
html.ds-on body .js-attachment-insert .js-attachment-table-category .download-all-attachment:hover {
    border-color: transparent;
    background-color: var(--ds-primary);
    color: #FFFFFF;
}
html.ds-on body .modal:has(.modal-body > .js-attachment-insert) .modal-footer .btn-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .js-attachment-insert) .modal-footer .btn-primary:hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* Delete an attachment (`.js-modal-attachment-delete` of
   _tpl_attachment_manager.php, ModalLight "delete" of
   `AttachmentManager.#triggerDelete()`; 2026-11-09, simulated): content
   padding 20px 24px (was 40px), warning as a danger callout (was a
   module-colour picto and 16.8px text), file name in a light rounded well,
   13px semibold, question 14px semibold; cancel as a neutral outline,
   delete stays in the danger colour, buttons 120px */
html.ds-on body .modal:has(.modal-body > .js-modal-attachment-delete) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .js-modal-attachment-delete > .hstack:first-child {
    gap: 10px !important;  /* legacy .gap-3 !important */
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-danger-soft);
}
html.ds-on body .js-modal-attachment-delete > .hstack:first-child figure {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--ds-danger) !important;  /* legacy .c-primary-500 !important */
}
html.ds-on body .js-modal-attachment-delete > .hstack:first-child p {
    color: var(--ds-danger);
    font-size: 14px !important;  /* legacy .fs-5 !important */
    font-weight: 600;
}
html.ds-on body .js-modal-attachment-delete .js-attachment-name {
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 10px 14px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    overflow-wrap: anywhere;
}
html.ds-on body .js-modal-attachment-delete > p:last-child b {
    font-weight: 600;
}
html.ds-on body .modal:has(.modal-body > .js-modal-attachment-delete) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body .modal:has(.modal-body > .js-modal-attachment-delete) .modal-footer .btn-outline-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .js-modal-attachment-delete) .modal-footer .btn-outline-primary:hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* History modal (`#HistoModal`, ModalLight of resources/script/histo.js,
   templates pages/common/front/_tpl_histo_modal.php: vehicle, contact and
   intervention folder history buttons). CSS only, 2026-11-09, reworked the
   same day on user request to match the Sales chassis / transaction
   history (`#HistoModal` of ds-materialize.css):
   - filter band in the module tint closed by a divider (was light grey),
     labels 13px semibold on the left of their field, on one line (were
     above the fields: the Bootstrap label took the column width), fields
     32px (were 29 / 32 / 34px);
   - timeline: years 20px bold in the module colour, months 14px (as Sales);
   - month titles 20px light (as Sales; were 21px light black);
   - operation cards with 10px corners, 14px text, date line bold (as
     Sales; their colours per type are data: kept), labels as pills;
   - footer: export as a 36px filled square in the module colour with a
     white icon (Sales `level-one` button; was an outlined circle), close as
     a 150 x 36px neutral outline (Sales `cancel`; was filled). */
html.ds-on body #HistoModal .filters {
    border-bottom: 1px solid var(--ds-primary-soft);
    background-color: var(--ds-primary-tint);
}
/* Title: history icon and number of operations, as in the Sales history
   (added by histo.js on show, 2026-11-09, user approved: the figure cloned
   from `#WorkshopHistoTemplateTitleIcon` and a `small`) */
html.ds-on body #HistoModal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
html.ds-on body #HistoModal .modal-title > figure {
    --fig-size: 24px;
    flex: 0 0 auto;
    margin: 0;
    color: var(--ds-primary);
}
html.ds-on body #HistoModal .modal-title > small {
    color: var(--ds-text-muted);
    font-size: 14px;
    font-weight: 400;
}
/* As high as the Sales history (was 300px minimum, set inline by the JS:
   the list showed 3 operations). 2026-11-25 fix (user report: the Excel
   export was gone): the 620px minimum was on the body, inside a scrollable
   dialog capped by the viewport (`modal-dialog-scrollable`, 570px high at
   1850x890 with the legacy 160px margins): header + body ran past the cut
   content box and the footer (export, close) was hidden. The minimum height
   is now on the content box, capped by the dialog (header 43 + body 620 +
   footer 77px), and the body shrinks and scrolls inside it */
html.ds-on body #HistoModal .modal-content {
    min-height: min(740px, 100%);
}
html.ds-on body #HistoModal .modal-body {
    flex: 1 1 auto;
    min-height: 0 !important;  /* inline min-height: 300px */
}
html.ds-on body #HistoModal .filters .field-container,
html.ds-on body #HistoModal .filters form .row:first-child .field-container {  /* legacy history_modal.scss: first row in column */
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
html.ds-on body #HistoModal .filters .field-container > label {
    flex: 0 0 auto;
    width: auto !important;  /* legacy .w-40 !important */
    margin: 0;
    padding: 0;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600;
    text-align: left !important;  /* inline text-align: right */
    white-space: nowrap;
}
html.ds-on body #HistoModal .filters .field-container > :is(input, .select2-container, .select-materialize-container) {
    flex: 1 1 auto;
    width: auto !important;  /* inline widths (300px, auto) */
    min-width: 0;
}
html.ds-on body #HistoModal .filters .field-container > .select-materialize-container > .select2-container {
    width: 100% !important;  /* inline width: auto */
}
html.ds-on body #HistoModal .filters :is(input.form-control, .select2-selection) {
    --height: 32px;  /* read by the legacy Select2 height !important */
    height: 32px;
    min-height: 32px;
    font-size: 13px;
}
html.ds-on body #HistoModal .filters .select2-selection__rendered {
    line-height: 30px;
}
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-year-container h3 {
    color: var(--ds-primary);
    font-size: 20px;
    font-weight: 700;
}
html.ds-on body #HistoModal #ModalHistoryTimeline .timeline-months-container .month {
    font-size: 14px;
}
html.ds-on body #HistoModal .month-container h3.month {
    margin-bottom: 4px;
    color: var(--ds-text);
    font-size: 20px;
    font-weight: 300;
}
html.ds-on body #HistoModal .month-events .month-event {
    overflow: hidden;
    border-radius: 10px !important;
    font-size: 14px;
}
html.ds-on body #HistoModal .month-events .month-event > b {
    font-weight: 700;
}
html.ds-on body #HistoModal .month-events .month-event .badge-event {
    border-radius: 999px !important;
    font-size: 11px;
}
html.ds-on body #HistoModal .modal-footer .btn-figure.export {
    margin-right: 10px !important;  /* legacy .me-2 !important */
}
html.ds-on body #HistoModal .modal-footer figure.figure-circle {
    --fig-size: 36px;
    border-color: transparent;
    border-radius: 10px !important;
    background-color: var(--ds-primary);
    color: #FFFFFF !important;  /* legacy .c-blue-500 !important */
    cursor: pointer;
}
html.ds-on body #HistoModal .modal-footer .btn-primary {
    min-width: 150px;
    height: 36px;
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body #HistoModal .modal-footer .btn-primary:hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* Manufacturer portals modal (workshop/module/common/front/
   _tpl_manufacturer_portal_list.php, cloned into a ModalLight by the
   "manufacturer portal" button of the vehicle detail). CSS only,
   2026-11-09: content padding 20px 24px (was 40px), intro 14px;
   portals as a light framed list of whole-row clickable entries, 13px
   semibold in the module colour, tinted on hover (were bright blue
   underlined links in a grid row); close as a neutral outline */
html.ds-on body .modal:has(.modal-body > .js-manufacturer-portal-list) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .modal .js-manufacturer-portal-list > p {
    margin: 0 0 12px;
    color: var(--ds-text);
}
html.ds-on body .modal .js-manufacturer-portal-list > p b {
    font-weight: 600;
}
html.ds-on body .modal .js-manufacturer-portal-list .js-list-portal {
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .modal .js-manufacturer-portal-list .js-list-portal > .js-li-template {
    padding: 0;
}
html.ds-on body .modal .js-manufacturer-portal-list .js-list-portal > .js-li-template + .js-li-template {
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .modal .js-manufacturer-portal-list .js-list-portal > .js-li-template.templates + .js-li-template {
    border-top: 0;
}
html.ds-on body .modal .js-manufacturer-portal-list .js-list-portal a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    color: var(--ds-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
html.ds-on body .modal .js-manufacturer-portal-list .js-list-portal a:hover {
    background-color: var(--ds-primary-tint);
}

/* Footers of the ModalLight above (attachments, history, manufacturer
   portals): buttons 120px wide at least (modal content conventions) */
html.ds-on body .modal:has(.modal-body > :is(.js-attachment-insert, .js-manufacturer-portal-list)) .modal-footer .btn-primary {
    min-width: 120px;  /* the history close button is 150px, as in Sales (history block above) */
}
html.ds-on body .modal:has(.modal-body > .js-manufacturer-portal-list) .modal-footer .btn-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .js-manufacturer-portal-list) .modal-footer .btn-primary:hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* Client communication modal (SMS / e-mail / call: `.communication-modal-body`,
   workshop/module/common/front/_tpl_communication_modal.php rendered by
   `CommunicationModal.js`; contact detail and intervention folder). CSS only,
   2026-11-09, modal content conventions: contact / channels band as a full
   width light band closed by a divider, 14px 24px (was a grey band, 18px
   36px), its captions 13px semibold in the text colour (were module
   colour); labels 13px semibold, fields 32px 13px (were 14px regular /
   29px); body 20px 24px (was 18px 36px), section title 14px semibold (was
   17.5px), variable chips 12px with 8px corners (colours kept), hints 12px
   muted, editor and preview 12px corners (preview: light border instead of
   the shadow); footer: cancel as a neutral outline (was red), buttons 120 x
   32px. Texts of the buttons stay upper case (JS). */
html.ds-on body .communication-modal-body > .bg-gray-100 {
    padding: 14px 24px !important;  /* legacy .px-5 .py-4 !important */
    border-bottom: 1px solid var(--ds-divider);
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-100 !important */
}
html.ds-on body .communication-modal-body > .bg-gray-100 p.c-primary-500 {
    color: var(--ds-text) !important;  /* legacy .c-primary-500 !important */
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-medium !important */
}
html.ds-on body .communication-modal-body :is(.form-label, .form-check-label) {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body .communication-modal-body :is(input.form-control:not([type="file"]), .form-select) {
    height: 32px;
    font-size: 13px;
}
html.ds-on body .communication-modal-body :is(input[type="file"], textarea).form-control {
    font-size: 13px;
}
html.ds-on body .communication-modal-body > :is(.js-display-for-email-sms, .js-display-for-phone) {
    padding: 20px 24px !important;  /* legacy .px-5 .py-4 !important */
}
html.ds-on body .communication-modal-body > :is(.js-display-for-email-sms, .js-display-for-phone) > h4 {
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    font-size: 14px;
    font-weight: 600;
}
html.ds-on body .communication-modal-body .js-variable {
    border-radius: var(--ds-radius-sm) !important;
    font-size: 12px;
}
html.ds-on body .communication-modal-body :is(#Variables small, .js-email-attachment > div:not(.d-flex) p, .js-email-attachment > div:not(.d-flex) strong, .js-total-file-size) {
    color: var(--ds-text-muted);
    font-size: 12px;
}
html.ds-on body .communication-modal-body .js-email-attachment > div:not(.d-flex) strong {
    font-weight: 600;
}
html.ds-on body .communication-modal-body :is(#Message, #Preview) {
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .communication-modal-body #Preview {
    border: 1px solid var(--ds-border);
    box-shadow: none !important;  /* legacy .shadow !important */
}
html.ds-on body .communication-modal-body .js-sms-not-eligible-error-message {
    color: var(--ds-danger) !important;  /* legacy .c-red-500 !important */
    font-size: 13px;
}
html.ds-on body .modal:has(.communication-modal-body) .modal-footer .btn {
    min-width: 120px;
    height: 32px;
}
html.ds-on body .modal:has(.communication-modal-body) .modal-footer .btn-outline-danger {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.communication-modal-body) .modal-footer .btn-outline-danger:hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* Client communication modal, e-mail from an intervention folder: "add the
   work order" block (`ds-comm-wo-list`, intervention folder context only,
   hidden by intervention.scss when it has no work order: display left to
   it; 2026-11-09 visual check). Was a grey band 6px with round outlined
   buttons; now a light rounded well with a border, 10px 14px, 13px, work
   orders 8px apart; add as a soft 30px square, see as a white one. */
html.ds-on body .ds-comm-wo-list {
    gap: 6px 16px;
    margin-bottom: 8px !important;  /* legacy .mb-2 !important */
    padding: 10px 14px !important;  /* legacy .p-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
    font-size: 13px;
}
html.ds-on body .ds-comm-wo-list > span {
    margin-bottom: 0 !important;  /* legacy .mb-2 !important, replaced by the gap */
    color: var(--ds-text-muted);
}
html.ds-on body .ds-comm-wo-list .wsp-work-order-pdf {
    gap: 6px;
    font-weight: 600;
}
html.ds-on body .ds-comm-wo-list .wsp-work-order-pdf :is(span, .btn-figure) {
    margin: 0 !important;  /* legacy .mx-1 !important */
}
html.ds-on body .ds-comm-wo-list .ds-icon-btn {
    padding: 6px !important;  /* legacy .figure-circle padding !important */
}

/* -------------------------------------------------------------------------
   CONTACT / VEHICLE SEARCH FORM (`_tpl_contact_search_body`,
   `_tpl_vehicle_search_body`), shared by the Workshop home (`.ds-home-search`),
   the intervention folder create / edit page (`.ds-ifu-search` on
   `#tabContactContainer`) and, since 2026-11-25 (user report: round buttons
   left in the old style), the owner / other contacts searches of the vehicle
   form (`#Main.vehicle-create-update .js-contact-search`, no DOM change).
   Moved here from `pages/workshop/home-home.css` on 2026-11-10 (user
   decision: one copy, the other pages using the partials keep their look).
   Each selector is written once per host so that the home keeps its
   specificity. Was a 29px plain field, 2.6rem circles and a bold link:
   - label 13px semibold; field 40px with a magnifier drawn on its wrapper;
     search and create as 40px squares, primary and accent soft;
   - "advanced search" as a small ghost button with a filter icon and a
     chevron following `aria-expanded` (Bootstrap collapse); open advanced
     fields in a light well, labels 12px muted above 34px fields.
   ------------------------------------------------------------------------- */
html.ds-on body .ds-home-search form > label,
html.ds-on body .ds-ifu-search form > label,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > label {
    display: block;
    margin: 0 0 6px;
    color: var(--ds-text);
    font-size: calc(.8125rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .ds-home-search form > .hstack:first-of-type,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type {
    flex-wrap: nowrap;
    gap: 8px !important;  /* legacy .gap-3 !important */
    margin: 0 !important;  /* legacy .mb-1 !important */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type > div:first-child,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type > div:first-child,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type > div:first-child {
    position: relative;
    flex: 1 1 auto;
    width: auto !important;  /* legacy .w-75 !important */
    max-width: 640px;
}
html.ds-on body .ds-home-search form > .hstack:first-of-type > div:first-child::before,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type > div:first-child::before,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type > div:first-child::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 16px;
    height: 16px;
    background-color: var(--ds-text-muted);
    -webkit-mask: url("../../img/v2/icons/icon-magnifying-glass.svg") center / contain no-repeat;
    mask: url("../../img/v2/icons/icon-magnifying-glass.svg") center / contain no-repeat;
    pointer-events: none;
}
/* White field (2026-11-10, user request: the grey `--ds-surface-2` fill read
   as a disabled field) */
html.ds-on body .ds-home-search form input[name="search"],
html.ds-on body .ds-ifu-search form input[name="search"],
html.ds-on body #Main.vehicle-create-update .js-contact-search form input[name="search"] {
    height: 40px;
    padding-left: 38px;
    border-radius: 10px !important;
    background-color: var(--ds-surface);
    font-size: calc(1rem * var(--ds-text-scale));
}
html.ds-on body .ds-home-search form > .hstack:first-of-type > div:last-child,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type > div:last-child,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type > div:last-child {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    width: auto !important;  /* legacy .w-25 !important */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type .btn-figure,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type .btn-figure,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type .btn-figure {
    border-radius: 10px !important;
}
html.ds-on body .ds-home-search form > .hstack:first-of-type .btn-figure figure,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type .btn-figure figure,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type .btn-figure figure {
    --fig-size: 40px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;  /* legacy .m-2 !important */
    padding: 0 !important;  /* inline 0.4rem (shared template) / figure padding !important */
    border: 0;
    border-radius: 10px !important;
    transition: background-color .15s, color .15s;
}
html.ds-on body .ds-home-search form > .hstack:first-of-type .btn-figure figure::before,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type .btn-figure figure::before,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type .btn-figure figure::before {
    display: none;  /* round halo of `.btn-figure` */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type .btn-figure figure svg,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type .btn-figure figure svg,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type .btn-figure figure svg {
    width: 18px;
    height: 18px;
}
html.ds-on body .ds-home-search form > .hstack:first-of-type button[type="submit"] figure,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type button[type="submit"] figure,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type button[type="submit"] figure {
    background-color: var(--ds-primary) !important;  /* legacy .bg-blue-500 !important */
    color: var(--ds-surface) !important;  /* legacy .text-white !important */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type button[type="submit"]:is(:hover, :focus-visible) figure,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type button[type="submit"]:is(:hover, :focus-visible) figure,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type button[type="submit"]:is(:hover, :focus-visible) figure {
    background-color: var(--ds-primary-strong) !important;  /* see above */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type button[type="button"] figure,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type button[type="button"] figure,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type button[type="button"] figure {
    background-color: var(--ds-accent-soft) !important;  /* legacy .bg-white !important */
    color: var(--ds-accent-strong) !important;  /* legacy .c-orange-500 !important */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type button[type="button"]:is(:hover, :focus-visible) figure,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type button[type="button"]:not(:disabled):is(:hover, :focus-visible) figure,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type button[type="button"]:not(:disabled):is(:hover, :focus-visible) figure {
    background-color: var(--ds-accent) !important;  /* see above */
    color: var(--ds-surface) !important;  /* see above */
}
html.ds-on body .ds-home-search form > .hstack:first-of-type .btn-figure:focus-visible,
html.ds-on body .ds-ifu-search form > .hstack:first-of-type .btn-figure:focus-visible,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:first-of-type .btn-figure:focus-visible {
    outline: 0;
    box-shadow: var(--ds-focus-ring);
}
/* "Advanced search" toggle */
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2),
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2),
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) {
    margin-top: 8px;
}
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px 0 8px;
    border-radius: 8px !important;
    color: var(--ds-primary-strong);
    font-size: calc(.8125rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    text-decoration: none;
    transition: background-color .15s;
}
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a:hover,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a:hover,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a:hover {
    background-color: var(--ds-primary-tint);
}
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a::before,
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a::after,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a::before,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a::after,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a::before,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a::after {
    content: "";
    flex: none;
    background-color: currentColor;
}
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a::before,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a::before,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a::before {
    width: 14px;
    height: 14px;
    -webkit-mask: url("../../img/v2/icons/icon-filter.svg") center / contain no-repeat;
    mask: url("../../img/v2/icons/icon-filter.svg") center / contain no-repeat;
}
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a::after,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a::after,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a::after {
    width: 10px;
    height: 10px;
    -webkit-mask: url("../../img/v2/icons/icon-arrow-rafter-right.svg") center / contain no-repeat;
    mask: url("../../img/v2/icons/icon-arrow-rafter-right.svg") center / contain no-repeat;
    transform: rotate(90deg);
    transition: transform .2s;
}
html.ds-on body .ds-home-search form > .hstack:nth-of-type(2) > a[aria-expanded="true"]::after,
html.ds-on body .ds-ifu-search form > .hstack:nth-of-type(2) > a[aria-expanded="true"]::after,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .hstack:nth-of-type(2) > a[aria-expanded="true"]::after {
    transform: rotate(-90deg);
}
/* Advanced fields (Bootstrap collapse: `.collapse` / `.collapsing`, display
   left to Bootstrap) */
html.ds-on body .ds-home-search form > .row:is(.collapse, .collapsing),
html.ds-on body .ds-ifu-search form > .row:is(.collapse, .collapsing),
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .row:is(.collapse, .collapsing) {
    column-gap: 12px;
    margin: 8px 0 0 !important;  /* legacy .mt-2 !important */
    padding: 12px 16px 0;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
}
html.ds-on body .ds-home-search form > .row:is(.collapse, .collapsing) > *,
html.ds-on body .ds-ifu-search form > .row:is(.collapse, .collapsing) > *,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .row:is(.collapse, .collapsing) > * {
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 0;
}
html.ds-on body .ds-home-search form > .row:is(.collapse, .collapsing) .form-label,
html.ds-on body .ds-ifu-search form > .row:is(.collapse, .collapsing) .form-label,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .row:is(.collapse, .collapsing) .form-label {
    margin-bottom: 4px;
    color: var(--ds-text-muted);
    font-size: max(calc(.75rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
}
html.ds-on body .ds-home-search form > .row:is(.collapse, .collapsing) .form-control,
html.ds-on body .ds-ifu-search form > .row:is(.collapse, .collapsing) .form-control,
html.ds-on body #Main.vehicle-create-update .js-contact-search form > .row:is(.collapse, .collapsing) .form-control {
    height: 34px;
    border-radius: 8px !important;
    font-size: calc(.8125rem * var(--ds-text-scale));
}

/* DELETE CONFIRMATION - shared look (`ds-delete-confirm` on the body template
   of a ModalLight; 2026-11-11, user decision: one shared look instead of a
   copy per family). Body = first row "picto + sentence", optional grey
   `.bg-gray-200` block, last paragraph "do you wish to delete". Used by the
   Workshop parameters: delete a status and "status cannot be deleted"
   (tpl_status_list.php), delete an intervention setting
   (tpl_intervention_config_list.php). Was: padding 40px, module-colour
   picto 38px, 16.8px sentence, grey square band, bold text, buttons 29px.
   Now: padding 20px 24px; first row as a danger callout (24px danger picto,
   14px semibold); grey block as a light rounded well 13px; question 14px
   semibold; cancel as a neutral outline, buttons 36px / 120px, 10px apart.
   The intervention delete block of the family "interventions and plannings"
   has the same look with its own selectors (could move here later). */
html.ds-on body .modal:has(.modal-body .ds-delete-confirm) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .ds-delete-confirm > :first-child {
    align-items: center;
    gap: 10px !important;  /* legacy .gap-3 !important */
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-danger-soft);
}
html.ds-on body .ds-delete-confirm > :first-child figure {
    --fig-size: 24px;
    flex: 0 0 24px;
    margin: 0 !important;  /* legacy .me-3 !important */
    color: var(--ds-danger);
}
html.ds-on body .ds-delete-confirm > :first-child .row {
    --bs-gutter-x: 0;
    margin: 0;
}
html.ds-on body .ds-delete-confirm > :first-child p {
    margin: 0 !important;  /* legacy .m-1 !important */
    color: var(--ds-danger);
    font-size: 14px !important;  /* legacy .fs-5 !important */
    font-weight: 600;
}
html.ds-on body .ds-delete-confirm > :first-child p.fw-bold,
html.ds-on body .ds-delete-confirm > :first-child p .fw-bold {
    font-weight: 700;
}
html.ds-on body .ds-delete-confirm > p:empty {
    margin: 0;
}
html.ds-on body .ds-delete-confirm > .bg-gray-200 {
    margin: 0 0 12px !important;  /* legacy .mb-3 !important, row gutters */
    padding: 10px 14px !important;  /* legacy .p-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
    font-size: 13px;
}
html.ds-on body .ds-delete-confirm > .bg-gray-200 :is(p, .fw-bold) {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-delete-confirm > p:last-child {
    padding: 0 !important;  /* legacy .p-2 !important ("cannot be deleted") */
    font-size: 14px;
}
html.ds-on body .ds-delete-confirm > p:last-child :is(b, .fw-bold),
html.ds-on body .ds-delete-confirm > p.fw-bold:last-child {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .modal:has(.modal-body .ds-delete-confirm) .modal-footer {
    gap: 10px;
    padding: 12px 24px;
}
html.ds-on body .modal:has(.modal-body .ds-delete-confirm) .modal-footer > .btn {
    height: 36px;
    min-width: 120px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 34px;
}
html.ds-on body .modal:has(.modal-body .ds-delete-confirm) .modal-footer > :is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body .ds-delete-confirm) .modal-footer > :is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):hover {
    background-color: var(--ds-surface-2);
}

/* TEXT-ONLY MODALS - shared look (2026-11-11, user request from the login
   page). ModalLight `.content(string)` writes plain text in `.modal-body`
   (workshop/class/script/ModalLight.js `#buildTemplate`): the pre-set modals
   `new ModalLight("error" | "success" | "confirmation" | "delete" |
   "understood")` and every call whose string holds no HTML element. Matched
   by a body without any child element (`:not(:has(*))`; the footer through
   `+`, no nested `:has()`): a string with markup (`<br>`, `<b>`, lists...)
   keeps the frame only, as before. Rules of the families with an id or a
   body class win (higher specificity). Was: padding 40px, buttons 29px in
   upper case (ModalLight `toUpperCase()` on every label), cancel as a module
   colour outline. Now: padding 20px 24px, 14px text in the text colour with
   a 1.5 line height; footer 12px 24px, buttons 36px / 120px, 10px apart,
   sentence case, cancel as a neutral outline (delete stays `btn-danger`). */
html.ds-on body .modal .modal-body:not(:has(*)) {
    padding: 20px 24px;
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    line-height: 1.5;
}
html.ds-on body .modal .modal-body:not(:has(*)) + .modal-footer {
    gap: 10px;
    padding: 12px 24px;
}
html.ds-on body .modal .modal-body:not(:has(*)) + .modal-footer > .btn {
    height: 36px;
    min-width: 120px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 34px;
    text-transform: lowercase;
}
html.ds-on body .modal .modal-body:not(:has(*)) + .modal-footer > .btn::first-letter {
    text-transform: uppercase;
}
html.ds-on body .modal .modal-body:not(:has(*)) + .modal-footer > :is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal .modal-body:not(:has(*)) + .modal-footer > :is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):hover {
    background-color: var(--ds-surface-2);
}

/* User menu of the top bar (`.user-overlay` + its button `.ds-topbar-user`,
   workshop/module/common/front/_tpl_top-menu.php and its Parts copy, every
   Workshop / Parts page), aligned on the Sales user menu (proposal C,
   ds-materialize.css, 2026-11-13). Was a grey 300px box 32px below the
   button and 16px short of its right edge, with three white blocks: initials
   in a 48px outlined circle, name 17px in the module colour, outlined
   "manage my profile" button (Workshop only); spaces in upper case, the
   current one bold in the module colour; filled 18px "log out" button
   centred. Now a 272px white card 6px below the button and aligned on its
   right edge, blocks separated by dividers: identity (40px initials disc in
   the soft module colour, name 600, e-mail 12px muted, profile as a small
   tonal button); spaces as in Sales: 30px icon square in the colour of each
   space (`ds-mod-*` on the row), label 600 in sentence case + description
   (approved DOM change: `span.ds-user-menu-desc` in the label, keys
   `iziflo_mode_*_desc`), the current space (legacy `active` class) tinted,
   its square filled and a check on the right; logout as a 36px danger row
   with the legacy logout picto (mask). The Bootstrap utilities of the
   template (`m-2`, `p-2`, `p-3`, `ps-2`, `mx-3`, `mb-3`, `w-25`, `w-75`,
   `bg-gray-200`, `bg-white`, `text-uppercase`, `c-primary-500`, border
   utilities, `justify-content-center`) are `!important`: restated with
   `!important`. The overlay is shown / hidden by header.js with the `d-none`
   class only (nothing measured): its width and position are set here.
   Button: chevron when the name shows (1200px and up), turned up while open
   (`active`, header.js). */
html.ds-on body #TopMenu .user-overlay.ds-user-overlay {
    top: calc(100% + 6px);
    right: 0;
    width: 272px;
    padding: 6px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface) !important;  /* bg-gray-200 */
    box-shadow: var(--ds-shadow-3) !important;  /* .shadow */
    font-family: var(--ds-font);
    text-align: left;
}
/* Identity */
html.ds-on body #TopMenu .ds-user-overlay > .ds-user-overlay-id {
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 8px 10px 10px !important;
    background-color: transparent !important;
}
html.ds-on body #TopMenu .ds-user-overlay-id > .ds-user-overlay-avatar {
    flex: none;
    width: auto !important;
    margin: 0 !important;
}
html.ds-on body #TopMenu .ds-user-overlay-id > .ds-user-overlay-info {
    flex: 1;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
}
html.ds-on body #TopMenu .ds-user-overlay-avatar > h2.user-initial-name {
    width: 40px;
    height: 40px;
    margin: 0;
    border: 0 !important;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;
    font-size: calc(1.0714rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 1;
}
html.ds-on body #TopMenu .ds-user-overlay-info > .mb-3 {
    margin-bottom: 0 !important;
}
html.ds-on body #TopMenu .ds-user-overlay-info h5 {
    overflow: hidden;
    color: var(--ds-text) !important;
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.ds-on body #TopMenu .ds-user-overlay-info h5 + div {
    overflow: hidden;
    color: var(--ds-text-muted);
    font-size: calc(.8571rem * var(--ds-text-scale));
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.ds-on body #TopMenu .ds-user-overlay-info > div:has(> .js-manage-user-profile) {
    margin-top: 8px;
}
html.ds-on body #TopMenu .ds-user-overlay .js-manage-user-profile.btn {
    --bs-btn-padding-x: 10px;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: calc(.8571rem * var(--ds-text-scale));
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 26px;
    --bs-btn-color: var(--ds-primary-strong);
    --bs-btn-bg: var(--ds-primary-soft);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--ds-primary-strong);
    --bs-btn-hover-bg: var(--ds-primary-soft);
    --bs-btn-hover-border-color: var(--ds-primary);
    --bs-btn-active-color: var(--ds-primary-strong);
    --bs-btn-active-bg: var(--ds-primary-soft);
    --bs-btn-active-border-color: var(--ds-primary);
    border-radius: var(--ds-radius-sm) !important;
    box-shadow: none;
}
/* Spaces */
html.ds-on body #TopMenu .ds-user-overlay > .ds-user-overlay-modes {
    margin: 0 !important;
    padding: 4px 0 !important;
    border-top: 1px solid var(--ds-divider);
    border-bottom: 1px solid var(--ds-divider);
    background-color: transparent !important;
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .js-switch-mode.ds-user-menu-mode {
    gap: 10px;
    padding: 6px 10px !important;
    border-radius: var(--ds-radius-sm) !important;
    color: var(--ds-text);
    font-weight: 400;
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .js-switch-mode.ds-user-menu-mode:hover {
    background-color: var(--ds-primary-tint);
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode > figure {
    --fig-size: 30px;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 6px;
    border-radius: var(--ds-radius-sm) !important;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary);  /* pictos: `figure path { fill: currentcolor !important }` */
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode > figure svg {
    width: 18px;
    height: 18px;
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode > .ds-user-menu-text {
    flex: 1;
    min-width: 0;
    padding-left: 0 !important;
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale)) !important;
    font-weight: 600;
    line-height: 20px;
    text-transform: none !important;
}
html.ds-on body #TopMenu .ds-user-overlay-modes .ds-user-menu-desc {
    display: block;
    overflow: hidden;
    color: var(--ds-text-muted);
    font-size: calc(.8571rem * var(--ds-text-scale));
    font-weight: 400;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Current space */
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode.active {
    background-color: var(--ds-primary-tint);
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode.active > figure {
    background-color: var(--ds-primary);
    color: var(--ds-surface);
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode.active > .ds-user-menu-text {
    color: var(--ds-primary-strong);
}
html.ds-on body #TopMenu .ds-user-overlay-modes > .ds-user-menu-mode.active::after {
    content: "";
    flex: none;
    width: 5px;
    height: 10px;
    margin: -3px 4px 0 0;
    border: solid var(--ds-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Logout */
html.ds-on body #TopMenu .ds-user-overlay > .ds-user-overlay-logout {
    padding: 4px 0 0 !important;
    justify-content: stretch !important;
}
html.ds-on body #TopMenu .ds-user-overlay-logout > form {
    flex: 1;
    margin: 0;
}
html.ds-on body #TopMenu .ds-user-overlay-logout .btn {
    --bs-btn-padding-x: 10px;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: calc(1rem * var(--ds-text-scale));
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 20px;
    --bs-btn-color: var(--ds-danger);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--ds-danger);
    --bs-btn-hover-bg: var(--ds-danger-soft);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--ds-danger);
    --bs-btn-active-bg: var(--ds-danger-soft);
    --bs-btn-active-border-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 36px;
    border-radius: var(--ds-radius-sm) !important;
    box-shadow: none;
    font-size: calc(1rem * var(--ds-text-scale));  /* `.btn-lg` 1.125rem */
    text-align: left;
}
/* legacy logout picto, drawn in the middle of a 75px viewBox (28% of it):
   enlarged so that the drawing is about 16px */
html.ds-on body #TopMenu .ds-user-overlay-logout .btn::before {
    content: "";
    flex: none;
    width: 20px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("../../img/icons/icons_blue/icon-logout.svg") center / 54px 54px no-repeat;
    mask: url("../../img/icons/icons_blue/icon-logout.svg") center / 54px 54px no-repeat;
}
/* Button: chevron on the right of the name */
@media (min-width: 1200px) {
    html.ds-on body #TopMenu .ds-topbar-user {
        padding-right: 28px;
    }
    html.ds-on body #TopMenu .ds-topbar-user::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 12px;
        width: 6px;
        height: 6px;
        margin-top: -5px;
        border: solid var(--ds-text-muted);
        border-width: 0 1.5px 1.5px 0;
        transform: rotate(45deg);
        transition: transform .15s ease, margin-top .15s ease;
    }
    html.ds-on body #TopMenu .ds-topbar-user.active::after {
        margin-top: -1px;
        transform: rotate(-135deg);
    }
}

/* Company menu of the top bar (`#MenuCompany.ds-company-menu`, Bootstrap
   dropdown; workshop/module/common/front/_tpl_top-menu.php and its Parts
   copy), same look as the Sales one (ds-materialize.css, 2026-11-16): 400px
   card, each company on two lines after a 32px badge with the ISO code of
   its country, "current country" / "other countries" titles
   (`.dropdown-header.ds-company-group`, no `data-id`: ignored by the click
   handler of global.js), the active company tinted with a check. Was a
   max-content list, "COUNTRY - Company" on one line, the current country
   rows in `--primary-100` (`bg-primary-100`), the active one filled by
   Bootstrap. Inline `width: max-content !important` and `max-height: 20rem`
   removed from the templates; position, top and z-index stay inline. */
html.ds-on body #TopMenu #MenuCompany.ds-company-menu {
    width: 400px;
    max-height: min(560px, calc(100vh - 90px));
    padding: 6px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-shadow-3);
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item {
    padding: 0;
    border-radius: 8px !important;
    background-color: transparent;
    color: var(--ds-text);
    white-space: normal;
    cursor: pointer;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item:hover {
    background-color: var(--ds-primary-tint);
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item.active {
    background-color: var(--ds-primary-soft);
    color: var(--ds-text);
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    color: var(--ds-text);
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item.active > a::after {
    content: "";
    flex: 0 0 14px;
    height: 14px;
    margin-left: auto;
    background-color: var(--ds-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu .ds-company-badge {
    display: inline-grid;
    flex: 0 0 32px;
    place-items: center;
    height: 32px;
    border-radius: 8px !important;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu .ds-company-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu .ds-company-country {
    color: var(--ds-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu .ds-company-name {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item.active .ds-company-badge {
    background-color: var(--ds-primary);
    color: var(--ds-surface);
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.dropdown-item.active .ds-company-name {
    color: var(--ds-primary-deep);
    font-weight: 600;
}
html.ds-on body #TopMenu #MenuCompany.ds-company-menu > li.ds-company-group {
    padding: 10px 10px 4px;
    color: var(--ds-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    pointer-events: none;
}

/* -------------------------------------------------------------------------
   WORKSHOP CHIP (`ds-chip ds-chip-primary ds-workshop-chip`, 2026-11-25, user
   request: same look as the workshop chips of the intervention folder,
   `ds-folder-chip`). Used by the workshop pill template cloned by the JS in
   the appointment summary (concerned, receipt and return workshops) of
   `tpl_intervention_update.php` and of the public booking page
   `public/front/tpl_intervention_folder_create.php`; inline `height /
   width: max-content` removed. Was an outlined pill (1px module colour,
   13px bold, 3px padding, 26px high); now a 22px soft chip, 11px semibold;
   a name longer than the column wraps inside the chip (nothing cut).
   Same day: also the workshop and brand chips of the intervention settings
   list (`ds-brand-chip` for the brands, same look; `is-empty` for "none
   selected": neutral surface, muted text; inline `height: 1.9rem` removed;
   their margin is set by the page sheet)
   ------------------------------------------------------------------------- */
html.ds-on body :is(.ds-workshop-chip, .ds-brand-chip) {
    display: inline-block;
    max-width: 100%;
    height: auto;
    min-height: 22px;
    padding: 4px 10px !important;  /* legacy .p-1 / .btn-tag !important */
    border: 0 !important;  /* legacy .border .border-blue-500 / .btn-tag !important */
    border-radius: 11px !important;  /* ds-chip pill radius !important (two-line names) */
    background-color: var(--ds-primary-soft) !important;  /* legacy .bg-blue-100 !important */
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
    font-size: 11px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    line-height: 14px;
    white-space: normal;
}
/* "None selected": the neutral chip of ds-core (light surface, 1px border:
   the settings list rows alternate white and the same light surface) */
html.ds-on body :is(.ds-workshop-chip, .ds-brand-chip).is-empty {
    padding: 3px 9px !important;  /* 22px with the border */
    border: 1px solid var(--ds-border) !important;  /* legacy .btn-tag !important */
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-100 !important */
    color: var(--ds-text-muted) !important;  /* legacy .c-gray-500 !important */
}
/* Appointment summary pills: 6px apart */
html.ds-on body .ds-workshop-chip.js-workshop-pill {
    margin: 2px 0 2px 6px !important;  /* legacy .m-1 !important */
}

/* ==== END FAMILY: Workshop - shell and shared templates - insert above ==== */


/* =========================================================================
   FAMILY: Workshop - home, vehicles and contacts
   Home, vehicle detail / form, contact detail / form, search results.
   ========================================================================= */

/* Vehicle modals (groups 2 and 3, 2026-11-09, CSS only), ModalLight opened
   from the vehicle detail and the vehicle form, following the modal content
   conventions: content padding 20px 24px (was 40px), footer buttons 120px
   wide at least, cancel / previous / "do not replace" / "keep the current
   owner" as neutral outlines (were red or module-colour outlines). Texts of
   the buttons stay upper case (`toUpperCase()` / `mb_strtoupper` in the JS
   and templates). */
html.ds-on body .modal:has(.modal-body > :is(.js-vehicle-merge-modal, .js-merged-vehicle, #js-vehicle-intervention-folder-modal)) .modal-body,
html.ds-on body #otherDmsContactFound .modal-body {
    padding: 20px 24px;
}
html.ds-on body #VehicleDupeCheckModal .modal-body > .container {
    padding: 20px 24px;
}
html.ds-on body :is(.modal:has(.modal-body > :is(.js-vehicle-merge-modal, .js-merged-vehicle, #js-vehicle-intervention-folder-modal)), #VehicleDupeCheckModal, #otherDmsContactFound) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body :is(.modal:has(.modal-body > :is(.js-vehicle-merge-modal, .js-merged-vehicle, #js-vehicle-intervention-folder-modal)), #VehicleDupeCheckModal, #otherDmsContactFound) .modal-footer :is(.btn-outline-danger, .btn-outline-primary) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body :is(.modal:has(.modal-body > :is(.js-vehicle-merge-modal, .js-merged-vehicle, #js-vehicle-intervention-folder-modal)), #VehicleDupeCheckModal, #otherDmsContactFound) .modal-footer :is(.btn-outline-danger, .btn-outline-primary):hover {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}

/* Merge two vehicle sheets (workshop/module/vehicle/front/
   _tpl_merge_vehicle_modal.php, VehicleMergeModal.js; vehicle detail
   "merge" button and the "merge" choice of the existing vehicle modal).
   Search step: section titles 14px semibold in the text colour (were bold
   module colour), "current vehicle" and "vehicle to merge" as light rounded
   wells, the second in the module tint (were a grey and a tinted square
   band), labels 13px semibold, fields 32px 13px, search button as a 32px
   tonal square (was an outlined circle), "no results" muted italic (was
   14px medium). Merge step: comparison table in a
   light frame (was grey header and grey body), header 12px muted, field
   names 13px semibold, values 13px, rows split by dividers, chosen value
   tinted with 8px corners, "same value" cells in light grey. Step
   indicator: shared rule (SHARED TEMPLATES). */
html.ds-on body .js-vehicle-merge-modal h5 {
    margin-bottom: 8px !important;  /* legacy .mb-3 !important */
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
    font-size: 14px !important;  /* legacy .fs-6 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .js-vehicle-merge-modal .js-tab[data-step="search"] p.c-gray-900 {
    margin-bottom: 12px;
    font-size: 14px !important;  /* legacy .fs-6 !important */
}
html.ds-on body .js-vehicle-merge-modal .js-form :is(.bg-gray-100, .bg-blue-100) {
    padding: 12px 16px !important;  /* legacy .p-3 !important */
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .js-vehicle-merge-modal .js-form .bg-gray-100 {
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-100 !important */
}
html.ds-on body .js-vehicle-merge-modal .js-form .bg-blue-100 {
    background-color: var(--ds-primary-tint) !important;  /* legacy .bg-blue-100 !important */
}
html.ds-on body .js-vehicle-merge-modal .js-form .form-label {
    margin-bottom: 6px !important;  /* legacy .mb-1 !important */
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
    font-size: 13px !important;  /* legacy .fs-6 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .js-vehicle-merge-modal .js-form .form-control {
    height: 32px;
    font-size: 13px;
}
html.ds-on body .js-vehicle-merge-modal .js-form button[type="submit"] .figure-circle {
    --fig-size: 32px;
    border-color: transparent;
    border-radius: var(--ds-radius-sm) !important;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
}
/* Search results (shared vehicle search cards, `md` size; layout from the
   shared result cards, SHARED TEMPLATES): the selected card (`.is-selected`,
   JS 2px primary border) tinted */
html.ds-on body .js-vehicle-merge-modal .js-entity-search-results .is-selected .search-result-card {
    background-color: var(--ds-primary-tint);
}
html.ds-on body .js-vehicle-merge-modal .js-entity-search-no-results {
    margin-top: 12px !important;  /* legacy .mt-4 !important */
    color: var(--ds-text-muted);
    font-size: 13px;
    font-style: italic;
    font-weight: 400 !important;  /* legacy .fw-medium !important */
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    font-size: 13px;
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison thead {
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison thead th {
    padding: 9px 12px;
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison thead th em {
    color: var(--ds-text-muted);
    font-weight: 400 !important;  /* inline font-weight: lighter */
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison tbody {
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison tbody :is(th, td) {
    padding: 6px 12px;
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .js-vehicle-merge-modal .js-item-comparison tbody th {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body .js-vehicle-merge-modal .item-field-comparison-line .item-field-value-inner {
    padding: 4px 10px;
    border-radius: var(--ds-radius-sm) !important;
}
html.ds-on body .js-vehicle-merge-modal .item-field-comparison-line .item-field-value-inner:has(input[type="radio"]:checked) {
    background-color: var(--ds-primary-tint);
}
html.ds-on body .js-vehicle-merge-modal .item-field-comparison-line .js-item-value.disabled .item-field-value-inner:has(input[type="radio"]:checked) {
    background-color: var(--ds-surface-2);
    color: var(--ds-text-muted);
}
html.ds-on body .js-vehicle-merge-modal .item-field-comparison-line .form-check-label {
    font-size: 13px;
}

/* Existing vehicle (`#VehicleDupeCheckModal`, AJAX
   workshop/module/vehicle/front/_tpl_existing_vehicle_modal.php, vehicle
   form when the registration or the VIN already exists). Warning as a
   callout (was a module-colour picto on white), each similar vehicle as a
   light rounded card (was a module-tint band) with "merge" tonal and "use
   the vehicle" primary, 32px and 13px (were two filled buttons); facts
   13px, label muted, value medium, identical values in the danger colour
   (were `c-red-500`); explanations 13px muted, terms in the text colour */
html.ds-on body #VehicleDupeCheckModal .container > .d-flex.p-4:first-child {
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px !important;  /* legacy .p-4 !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-warning-soft);
    font-weight: 600;
}
html.ds-on body #VehicleDupeCheckModal .container > .d-flex.p-4:first-child figure {
    width: 24px;
    height: 24px;
    margin: 0 !important;  /* legacy .me-3 !important */
    color: var(--ds-warning) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 {
    align-items: center;
    margin: 0;
    padding: 14px 16px !important;  /* legacy .p-4 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-blue-100 !important */
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 .btn {
    width: 100%;  /* both stacked buttons as wide as the longer one */
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 .js-merge-vehicle {
    margin-bottom: 8px !important;  /* legacy .mb-3 !important */
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 .js-merge-vehicle:hover {
    background-color: var(--ds-primary);
    color: #FFFFFF;
}
/* Create mode: a vehicle picto above "use the vehicle" instead of the merge
   button (variants pass) */
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 > .col-auto > figure {
    margin-bottom: 8px !important;  /* legacy .mb-2 !important */
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 p {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 500;
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 p b {
    color: var(--ds-text-muted);
    font-weight: 400;
}
html.ds-on body #VehicleDupeCheckModal .row.p-4.bg-blue-100 .c-red-500 {
    color: var(--ds-danger) !important;  /* legacy .c-red-500 !important */
    font-weight: 600;
}
html.ds-on body #VehicleDupeCheckModal .container > .p-4:last-child {
    padding: 14px 0 0 !important;  /* legacy .p-4 !important */
    color: var(--ds-text-muted);
    font-size: 13px;
}
html.ds-on body #VehicleDupeCheckModal .container > .p-4:last-child b {
    color: var(--ds-text);
    font-weight: 600;
}

/* Owner changed (workshop/module/vehicle/front/
   _tpl_modal_vehicle_intervention_folder.php, vehicle form after a new
   owner is saved, with the upcoming intervention folders). Notice as a
   warning callout (was a module-colour picto on white); folders as option
   cards: white, 1px border, 12px corners, primary border on hover, selected
   (`.is-selected`) with a 1px primary border and the module tint (were grey
   cards with a 2px grey border, the selected one in a square 2px frame);
   reference 13px semibold, other facts 13px muted */
html.ds-on body #js-vehicle-intervention-folder-modal .alert-infos {
    gap: 10px !important;  /* legacy .gap-1 !important */
    padding: 12px 14px !important;  /* legacy .pb-0 !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-warning-soft);
}
html.ds-on body #js-vehicle-intervention-folder-modal .alert-infos figure {
    width: 24px;
    height: 24px;
    margin: 0 !important;  /* legacy .me-2 !important */
    color: var(--ds-warning) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #js-vehicle-intervention-folder-modal .js-intervention-folder-row {
    margin-top: 8px !important;  /* legacy .mt-3 !important */
}
html.ds-on body #js-vehicle-intervention-folder-modal .js-item-card-inner {
    padding: 10px 14px !important;  /* legacy .px-3 .py-2 !important */
    border: 1px solid var(--ds-border) !important;  /* legacy .border-2 .border-gray-200 !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
    color: var(--ds-text-muted);
    font-size: 13px;
    transition: border-color .15s, background-color .15s;
}
html.ds-on body #js-vehicle-intervention-folder-modal .js-item-card-inner:hover {
    border-color: var(--ds-primary) !important;
}
/* The JS adds `border border-primary border-2` to the column around the card
   (`.js-item-card`): square 2px frame around the rounded card, removed */
html.ds-on body #js-vehicle-intervention-folder-modal .is-selected .js-item-card {
    border: 0 !important;  /* JS .border .border-2 !important */
}
html.ds-on body #js-vehicle-intervention-folder-modal .is-selected .js-item-card-inner {
    border-color: var(--ds-primary) !important;  /* legacy .border-gray-200 !important */
    background-color: var(--ds-primary-tint) !important;
}
html.ds-on body #js-vehicle-intervention-folder-modal .js-intervention-reference {
    color: var(--ds-text);
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body #js-vehicle-intervention-folder-modal .js-item-card-inner figure {
    color: var(--ds-text-muted);
}

/* Different contacts (`#otherDmsContactFound`, built by
   vehicle_create_update__functions.js when the DMS owner differs from the
   current one; cards from the shared contact search row). Question in the
   text colour, semibold (was bold module colour); cards as white rounded
   cards like the search results (outside `.table-cards` they had only the
   legacy shadow), layout from the shared result cards (SHARED TEMPLATES) */
html.ds-on body #otherDmsContactFound .modal-body > div > .mb-4 {
    margin-bottom: 14px !important;  /* legacy .mb-4 !important */
}
html.ds-on body #otherDmsContactFound .modal-body > div > .mb-4 .fw-bold {
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* Dissociate a merged vehicle sheet (`.js-merged-vehicle` in the templates of
   tpl_vehicle_detail.php, ModalLight of vehicle_detail__listeners.js, merged
   vehicles only). Explanation as a warning callout (was a module-colour
   picto and plain text), the two restored vehicles as white rounded cards
   with a light border (the JS gives them a 2px primary frame), layout from
   the shared result cards; confirmation question 14px semibold */
html.ds-on body .modal .js-merged-vehicle > .d-flex:first-child {
    align-items: center;
    gap: 10px;
    margin-bottom: 14px !important;  /* legacy .mb-4 !important */
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-warning-soft);
}
html.ds-on body .modal .js-merged-vehicle > .d-flex:first-child figure {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin: 0;
    color: var(--ds-warning) !important;  /* legacy .c-primary-500 !important */
}
html.ds-on body .modal .js-merged-vehicle > .d-flex:first-child > div {
    margin: 0 !important;  /* legacy .ms-4 !important */
    color: var(--ds-text) !important;  /* legacy .c-gray-900 !important */
    font-size: 14px !important;  /* legacy .fs-6 !important */
    font-weight: 600;
}
html.ds-on body .modal .js-merged-vehicle .table-cards {
    margin-bottom: 14px !important;  /* legacy .mb-4 !important */
}
/* One card per row (was two of 127px: the vehicle page sheet keeps its modal
   content at 70% of a 500px dialog, the plate was cut after one letter) */
html.ds-on body .modal .js-merged-vehicle .search-result-col {
    width: 100%;
}
html.ds-on body .modal .js-merged-vehicle .search-result-card {
    border: 1px solid var(--ds-border) !important;  /* JS .border-primary .border-2 */
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .modal .js-merged-vehicle > .fw-bold {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}

html.ds-on body #otherDmsContactFound .search-result-card {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-shadow-1) !important;  /* legacy .shadow !important */
    cursor: default;
}

/* Contact detail modals (2026-11-09, user request; contact_detail__listeners.js,
   CSS only except the two ids below and the inline font of the delete plate).
   Send to DMS: error list (`#SendContactToDmsErrorModal`) and confirmation
   (`#SendContactToDmsConfirmModal`), ids added with `.setId()`: content
   padding 20px 24px (was 40px), the error as a danger callout (was a bold
   sentence and plain lines), 14px text; return / close as neutral outlines,
   buttons 120px. */
html.ds-on body :is(#SendContactToDmsErrorModal, #SendContactToDmsConfirmModal) .modal-body {
    padding: 20px 24px;
    font-size: 14px;
}
html.ds-on body #SendContactToDmsErrorModal .modal-body {
    margin: 20px 24px;
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-danger-soft);
    color: var(--ds-danger);
    font-size: 13px;
}
html.ds-on body #SendContactToDmsErrorModal .modal-body > span:first-child {
    font-size: 14px;
    font-weight: 600 !important;  /* inline font-weight: bold */
}
html.ds-on body :is(#SendContactToDmsErrorModal, #SendContactToDmsConfirmModal) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body #SendContactToDmsErrorModal .modal-footer .btn-primary,
html.ds-on body #SendContactToDmsConfirmModal .modal-footer :is(.btn-outline-primary, .btn-outline-danger) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* Remove a vehicle from the contact fleet (`.js-vehicle-delete-modal`,
   workshop/module/common/front/_tpl_modal_vehicle_delete.php, ModalLight
   "delete"): same look as the attachment delete modal. Padding 20px 24px
   (was 40px), warning as a danger callout (was a module-colour picto and
   16.8px text), the vehicle in a light rounded well (was a grey square
   band), plate as the vehicle detail plate chip (was a 16.8px Consolas
   bold box cut at 97px; inline font removed from the template), name 13px
   medium, question 14px semibold; cancel as a neutral outline, delete in
   the danger colour, buttons 120px.
   Same look for the unlink confirmation of the e-commerce access
   (`.js-confirmation-delete-modal`, contact detail and PARTS e-contact
   detail templates, simulated): the e-contact name in the same well. */
html.ds-on body .modal:has(.modal-body > :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal)) .modal-body {
    padding: 20px 24px;
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) > .hstack:first-child {
    gap: 10px !important;  /* legacy .gap-3 !important */
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-danger-soft);
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) > .hstack:first-child figure {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--ds-danger) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) > .hstack:first-child p {
    color: var(--ds-danger);
    font-size: 14px !important;  /* legacy .fs-5 !important */
    font-weight: 600;
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) > .bg-gray-200 {
    gap: 10px !important;  /* legacy .gap-2 !important */
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 10px 14px !important;  /* legacy .p-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) .js-registration {
    flex: 0 0 auto;
    padding: 4px 10px !important;  /* legacy .py-1 .px-2 !important */
    border-color: transparent !important;  /* legacy .border-gray-800 !important */
    border-radius: 999px !important;
    background-color: var(--ds-primary-soft) !important;  /* legacy .bg-white !important */
    color: var(--ds-primary-strong);
    font-size: 13px !important;  /* legacy .fs-5 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    letter-spacing: .02em;
    white-space: nowrap;
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) .js-name {
    font-size: 13px;
}
html.ds-on body :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal) > p:last-child b {
    font-weight: 600;
}
html.ds-on body .modal:has(.modal-body > :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal)) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body .modal:has(.modal-body > :is(.js-vehicle-delete-modal, .js-confirmation-delete-modal)) .modal-footer .btn-outline-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .js-confirmation-delete-modal > .js-content-detail {
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 10px 14px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background-color: var(--ds-surface-2);
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .js-confirmation-delete-modal > .js-confirmation-asking {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}

/* E-commerce access of a contact (PARTS, `#ManageEcommerceAccess`,
   parts/module/common/front/_tpl_modal_econtact_assignment.php; assigned
   e-contacts and search result simulated): padding 20px 24px (was 40px),
   section title 13px semibold (was 14px bold), search field 32px 13px,
   search / create buttons as 32px squares 8px apart (were 38px circles, the
   create one with a 6px margin), advanced search link 12px semibold, empty
   list muted; assigned e-contacts as white bordered cards radius 12 (were
   grey with a 2px border), name 13px semibold, phone 12px muted, eye and
   unlink as 30px squares; cancel as a neutral outline, buttons 120px. */
html.ds-on body #ManageEcommerceAccess .modal-body {
    padding: 20px 24px;
}
html.ds-on body #ManageEcommerceAccess #header {
    margin-top: 0 !important;  /* legacy .mt-2 !important */
}
html.ds-on body #ManageEcommerceAccess #header .title,
html.ds-on body #ManageEcommerceAccess .js-entity-search-form > label {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body #ManageEcommerceAccess #header .title {
    margin-bottom: 18px;  /* the cards row pulls itself up by 18px */
}
html.ds-on body #ManageEcommerceAccess .js-econtact-list > i {
    display: block;
    margin-top: 18px;
    color: var(--ds-text-muted) !important;  /* legacy .c-primary-500 !important */
    font-size: 13px;
}
html.ds-on body #ManageEcommerceAccess .js-entity-search-form {
    margin-top: 20px !important;  /* legacy .mt-3 !important */
}
html.ds-on body #ManageEcommerceAccess #SearchMain {
    height: 32px;
    font-size: 13px;
}
html.ds-on body #ManageEcommerceAccess .js-entity-search-form > .hstack:first-of-type {
    margin-bottom: 8px !important;  /* legacy .mb-1 !important */
}
html.ds-on body #ManageEcommerceAccess .js-entity-search-form > .hstack:first-of-type > .col-4 {
    display: flex;
    align-items: center;
    gap: 8px;
}
html.ds-on body #ManageEcommerceAccess .js-entity-search-form > .hstack:first-of-type .figure-circle {
    --fig-size: 32px;
    margin: 0 !important;  /* legacy .m-2 !important */
    border-radius: var(--ds-radius-sm) !important;
}
html.ds-on body #ManageEcommerceAccess .js-entity-search-form button[type="submit"] .figure-circle {
    border-color: transparent;
    background-color: var(--ds-primary) !important;  /* legacy .bg-primary-500 !important */
}
html.ds-on body #ManageEcommerceAccess .js-create-sheet-form-search .figure-circle {
    border-color: transparent;
    background-color: var(--ds-primary-soft) !important;  /* legacy .bg-white !important */
    color: var(--ds-primary-strong) !important;  /* legacy .c-orange-500 !important */
}
html.ds-on body #ManageEcommerceAccess .js-advanced-search-contact {
    font-size: 12px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body #ManageEcommerceAccess .js-item-card-inner {
    padding: 10px 12px !important;  /* legacy .px-3 .py-2 !important */
    border: 1px solid var(--ds-border) !important;  /* legacy .border-2 .border-gray-200 !important */
    border-radius: var(--ds-radius-md) !important;  /* legacy .rounded-1 !important */
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
    transition: border-color .15s, background-color .15s;
}
html.ds-on body #ManageEcommerceAccess .js-item-card-inner:hover {
    border-color: var(--ds-primary) !important;
    background-color: var(--ds-primary-tint) !important;
}
html.ds-on body #ManageEcommerceAccess .js-item-card .js-item-detail {
    margin-right: 10px !important;  /* legacy .me-3 !important */
}
html.ds-on body #ManageEcommerceAccess .js-item-card .figure-circle {
    border-radius: var(--ds-radius-sm) !important;
}
html.ds-on body #ManageEcommerceAccess .js-item-card .js-item-detail .figure-circle {
    border-color: transparent;
    background-color: var(--ds-warning-soft) !important;  /* legacy .bg-white !important */
    color: var(--ds-orange) !important;  /* legacy .c-orange-500 !important */
}
html.ds-on body #ManageEcommerceAccess .js-item-card button.js-dissociate-contact .figure-circle {
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;  /* legacy .c-primary-500 !important */
}
html.ds-on body #ManageEcommerceAccess .js-item-full-name {
    margin-bottom: 2px !important;  /* legacy .mb-1 !important */
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body #ManageEcommerceAccess .js-item-phone {
    color: var(--ds-text-muted);
    font-size: 12px;
}
html.ds-on body #ManageEcommerceAccess .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body #ManageEcommerceAccess .modal-footer .btn-outline-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* ==== END FAMILY: Workshop - home, vehicles and contacts - insert above ==== */


/* =========================================================================
   FAMILY: Workshop - interventions and plannings
   Intervention folders (detail, create / edit), plannings (intervention,
   receipt / return, workload), work orders, technician app.
   ========================================================================= */

/* Delete an intervention / an intervention folder (ModalLight "delete",
   workshop/module/common/front/_tpl_modal_intervention_delete.php: cloned
   by the intervention folder detail and the intervention create / edit
   page; 2026-11-09). Same look as the vehicle removal modal: padding 20px
   24px (was 40px); intervention: warning as a danger callout (was a module
   colour picto and 16.8px text); consequences in a light rounded well (was
   a grey square band), 13px list; question 14px semibold; cancel as a
   neutral outline, delete in the danger colour, buttons 120px. The red
   "parent intervention" line (data of the JS) is kept.
   Also the absence removal (`ds-absence-delete`, user_absence/front/
   tpl_user_absence.php, the three plannings; 2026-11-09): same structure,
   its first row is a `.d-flex` instead of an `.hstack`. */
html.ds-on body .modal:has(.modal-body > :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete)) .modal-body {
    padding: 20px 24px;
}
html.ds-on body :is(.js-intervention-delete-modal > .hstack, .ds-absence-delete > .d-flex):first-child {
    gap: 10px !important;  /* legacy .gap-3 !important */
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-danger-soft);
}
html.ds-on body :is(.js-intervention-delete-modal > .hstack, .ds-absence-delete > .d-flex):first-child figure {
    --fig-size: 24px;
    flex: 0 0 24px;
    color: var(--ds-danger);
}
html.ds-on body :is(.js-intervention-delete-modal > .hstack, .ds-absence-delete > .d-flex):first-child p {
    color: var(--ds-danger);
    font-size: 14px !important;  /* legacy .fs-5 !important */
    font-weight: 600;
}
html.ds-on body :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal) > p:not(:last-child) {
    margin-bottom: 8px;
}
html.ds-on body :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete) > .bg-gray-200 {
    margin-bottom: 12px !important;  /* legacy .mb-3 !important */
    padding: 10px 14px !important;  /* legacy .p-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
    font-size: 13px;
}
html.ds-on body :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete) > .bg-gray-200 ul {
    padding-left: 18px;
}
html.ds-on body :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete) > p:last-child b {
    font-weight: 600;
}
html.ds-on body .modal:has(.modal-body > :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete)) .modal-footer .btn {
    min-width: 120px;
}
/* Visual check of the receipt / return planning (2026-11-09): the buttons
   end on the content edge (were 4px in: Bootstrap `.modal-footer > *`
   margin) and sit 10px apart (were 8px) */
html.ds-on body .modal:has(.modal-body > :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete)) .modal-footer {
    gap: 10px;
}
html.ds-on body .modal:has(.modal-body > :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete)) .modal-footer > .btn {
    margin: 0;
}
html.ds-on body .modal:has(.modal-body > :is(.js-intervention-delete-modal, .js-intervention-folder-delete-modal, .ds-absence-delete)) .modal-footer .btn-outline-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* Signature type choice (ModalLight, workshop/module/common/front/
   _tpl_modal_signature_type_choice.php: intervention folder work order list,
   PDF edition manager; 2026-11-09): padding 20px 24px; the two choices as
   option cards (were two columns in a grey square band): light border,
   12px corners, primary border on hover, checked tinted with a primary
   border; a choice without the privilege (info picto instead of the radio,
   `title` kept) muted; cancel as a neutral outline, buttons 120px. */
html.ds-on body .modal:has(.modal-body > .js-modal-signature-type-choice) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .js-modal-signature-type-choice > .row {
    gap: 12px;
    margin: 0;
    padding: 0 !important;  /* legacy .py-3 !important */
    background-color: transparent;  /* was .bg-gray-200 */
}
html.ds-on body .js-modal-signature-type-choice > .row > .col {
    padding: 0;
}
html.ds-on body .js-modal-signature-type-choice .form-check {
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background-color: var(--ds-surface);
    font-size: 13px;
}
html.ds-on body .js-modal-signature-type-choice .form-check:has(input) {
    cursor: pointer;
}
html.ds-on body .js-modal-signature-type-choice .form-check:has(input):hover {
    border-color: var(--ds-primary);
}
html.ds-on body .js-modal-signature-type-choice .form-check:has(input:checked) {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-tint);
}
html.ds-on body .js-modal-signature-type-choice .form-check-input {
    margin: 0;
}
html.ds-on body .js-modal-signature-type-choice .form-check-label {
    flex: 1 1 auto;  /* the label takes the card width: most of the card selects the choice */
    font-weight: 500;
}
html.ds-on body .js-modal-signature-type-choice .form-check:not(:has(input)) {
    background-color: var(--ds-surface-2);
    color: var(--ds-text-muted);
}
html.ds-on body .js-modal-signature-type-choice .form-check:not(:has(input)) figure {
    border-color: transparent;
    color: var(--ds-text-muted);
}
html.ds-on body .modal:has(.modal-body > .js-modal-signature-type-choice) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body .modal:has(.modal-body > .js-modal-signature-type-choice) .modal-footer :is(.btn-outline-primary, .btn-outline-danger) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* Existing work order (ModalLight of the TOP window, so styled here and not
   in the folder page sheet: `#ExistingWorkOrderModal` cloned from
   tpl_intervention_detail.php, shown when a new work order is edited while
   a finalised one exists; 2026-11-09, simulated). Padding 20px 24px; the
   45px blue picto (inline size removed) as a 24px warning picto; text 14px;
   date in a light rounded well 13px semibold (was a grey square band);
   question 14px semibold; "do not get" as a neutral outline (was red),
   buttons 120px. */
html.ds-on body .modal:has(.modal-body > .ds-existing-wo) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .ds-existing-wo {
    align-items: flex-start;
    justify-content: flex-start !important;  /* legacy .justify-content-evenly !important */
    gap: 14px;
}
html.ds-on body #ExistingWorkOrderModal img.ds-existing-wo-icon {  /* id: beats the LEGACY BLUE ICONS mask of the palette files (module colour) */
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-position: -9999px 0;  /* hides the image itself */
    box-shadow: inset 0 0 0 999px var(--ds-warning);  /* paints the masked area */
    -webkit-mask: url("../../img/icons/icons_blue/icon-warning.svg") center / contain no-repeat content-box;
    mask: url("../../img/icons/icons_blue/icon-warning.svg") center / contain no-repeat content-box;
}
html.ds-on body .ds-existing-wo-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;  /* legacy .mx-2 !important */
}
html.ds-on body .ds-existing-wo-date {
    padding: 10px 14px !important;  /* legacy .p-3 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-existing-wo-ask {
    margin-bottom: 0;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .modal:has(.modal-body > .ds-existing-wo) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body .modal:has(.modal-body > .ds-existing-wo) .modal-footer .btn-outline-danger {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* Work order sheet (ModalLight of `displayWorkOrderSheetView()`,
   global__functions.js; template workshop/module/common/front/
   _tpl_work_order_sheet_view.php, AJAX `common` `work-order-sheet-view`,
   DMS data: opened from the intervention folder, the vehicle detail and the
   work order list; classes `ds-wo-sheet*` added; 2026-11-09, simulated: no
   DMS locally). Header band (`ds-wo-sheet-h`) light with a divider, 14px
   24px, facts 13px: label muted regular, value medium, reference 14px
   semibold module colour (were 14.4 / 16px with bold labels on a grey band);
   section titles (`ds-wo-sheet-title`) 14px semibold with a 24px bare
   module-colour icon (were 21px titles next to round outlined figures);
   sections 24px from the edge; tables (`ds-wo-sheet-table`, legacy
   `.table-list-custom` with `!important` borders and radii) as a light
   rounded frame: header 12px semibold muted on the light surface (was
   filled module colour, white text, rounded ends), rows 13px with dividers,
   tinted on hover (was a teal literal); totals bar (`ds-wo-sheet-total`)
   in the module tint 13px, 10px 24px, separator in the strong border
   colour; close as a neutral outline 120px. Status tag kept (data). */
html.ds-on body .modal:has(.modal-body > .ds-wo-sheet) .modal-body {
    padding: 0;
}
html.ds-on body .ds-wo-sheet-h {
    margin-bottom: 16px !important;  /* legacy .mb-4 !important */
    padding: 14px 24px !important;  /* legacy .p-2 !important */
    border-bottom: 1px solid var(--ds-divider);
    background-color: var(--ds-surface-2);
}
html.ds-on body .ds-wo-sheet-h > .d-flex {
    gap: 24px;
}
html.ds-on body .ds-wo-sheet-h table td {
    padding: 3px 12px 3px 0;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 500;
}
html.ds-on body .ds-wo-sheet-h table td:first-child {
    color: var(--ds-text-muted);
    font-size: 13px;  /* the reference label (`td.reference`) was 16px */
    font-weight: 400;
}
html.ds-on body .ds-wo-sheet-h table td.reference:not(:first-child) {
    color: var(--ds-primary);
    font-size: 14px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-wo-sheet-section {
    margin-bottom: 16px !important;  /* legacy .mb-4 !important */
    padding: 0 24px !important;  /* legacy .ps-3 .pe-3 !important */
}
html.ds-on body .ds-wo-sheet-title {
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}
html.ds-on body .ds-wo-sheet-title figure {
    --fig-size: 24px;
    margin: 0 !important;  /* legacy .me-2 !important */
    padding: 0 !important;  /* legacy .figure-circle padding !important */
    border: 0;
    color: var(--ds-primary);
}
html.ds-on body .ds-wo-sheet-table {
    border: 1px solid var(--ds-border);
    border-spacing: 0;
    border-radius: var(--ds-radius-md) !important;
    overflow: hidden;
}
html.ds-on body .ds-wo-sheet-table thead tr th {
    padding: 8px 10px;
    border: 0 !important;  /* legacy white side borders !important */
    border-bottom: 1px solid var(--ds-divider) !important;
    border-radius: 0 !important;  /* legacy rounded ends !important */
    background-color: var(--ds-surface-2);
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body .ds-wo-sheet-table tbody tr td {
    padding: 7px 10px;
    border: 0 !important;  /* legacy grey side borders !important */
    border-bottom: 1px solid var(--ds-divider) !important;
    border-radius: 0 !important;  /* legacy rounded ends !important */
    font-size: 13px;
}
html.ds-on body .ds-wo-sheet-table tbody tr:last-child td {
    border-bottom: 0 !important;  /* see above */
}
html.ds-on body .ds-wo-sheet-table tbody tr:hover > td {
    background-color: var(--ds-primary-tint) !important;  /* legacy teal literal !important */
}
html.ds-on body .ds-wo-sheet-total {
    padding: 10px 24px !important;  /* legacy .p-2 .ps-3 .pe-3 !important */
    border-top: 1px solid var(--ds-divider) !important;  /* legacy .border-top !important */
    background-color: var(--ds-primary-tint);
    box-shadow: none !important;  /* legacy .shadow-top */
    font-size: 13px;
}
html.ds-on body .ds-wo-sheet-total .fw-bold {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-wo-sheet-total > div[style*="border-left"] {
    border-left-color: var(--ds-border-strong) !important;  /* inline `border-left: 1px solid` (current colour) */
}
html.ds-on body .modal:has(.modal-body > .ds-wo-sheet) .modal-footer .btn {
    min-width: 120px;
}
html.ds-on body .modal:has(.modal-body > .ds-wo-sheet) .modal-footer .btn-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* Declare / edit an absence (ModalLight, workshop/module/user_absence/front/
   tpl_user_absence.php, `ds-absence-modal`: footer of the three plannings
   and absence events; 2026-11-09). Padding 20px 24px (was 40px); labels
   13px semibold in the text colour (were 14px regular), mandatory star in
   the danger colour; fields, dates, times and Select2 32px; comment aligned
   on the fields, 13px (inline `max-width: 95%` removed, `ms-2` neutralised);
   creation / modification dates 12px muted (the JS writes 0.7em inline);
   workshop choices as 28px pills, white with a light border, selected in
   the module soft tint with a primary border (were bold teal pills);
   errors 12px danger. Footer 12px 24px: mandatory note 12px muted on the
   left in the flow (was absolute, inline style removed), cancel as a
   neutral outline (was red outline in creation, module outline in edition),
   save primary, delete danger, buttons 36px / 120px (texts upper case: JS).
   Warnings (moved into the footer by the JS) as a warning band right above
   the footer, 13px (was an orange band placed 4.5rem from the bottom), the
   "link broken" line in the danger tint. */
html.ds-on body .modal:has(.modal-body > .ds-absence-modal) .modal-body {
    padding: 20px 24px;
}
/* Absence removal (rules shared with the intervention delete block above):
   the picto keeps the 10px gap of the callout (legacy .me-3 !important) */
html.ds-on body .ds-absence-delete > .d-flex:first-child figure {
    margin-right: 0 !important;
}
html.ds-on body .ds-absence-modal label:not(.form-check-label) {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body .ds-absence-modal .d-flex > label:not(.form-check-label) {
    margin-bottom: 0;
}
html.ds-on body .ds-absence-modal label sup {
    top: -.2em;
    color: var(--ds-danger);
    font-size: 12px;
}
html.ds-on body .ds-absence-modal .form-check-label {
    font-size: 13px;
}
html.ds-on body .ds-absence-modal :is(.mb-4, .mb-3) {
    margin-bottom: 16px !important;  /* legacy .mb-4 / .mb-3 !important */
}
html.ds-on body .ds-absence-modal .row {
    --bs-gutter-x: 16px;
}
html.ds-on body .ds-absence-modal .form-control:not(textarea) {
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 13px;
}
html.ds-on body .ds-absence-modal .select2-selection--single {
    --height: 32px;  /* read by the legacy Select2 height !important */
}
html.ds-on body .ds-absence-modal .select2-selection--single .select2-selection__rendered {
    font-size: 13px;
}
html.ds-on body .ds-absence-modal .ds-absence-comment {
    max-width: none;
    margin: 0 !important;  /* legacy .ms-2 !important */
    padding: 8px 12px !important;  /* legacy .p-2 !important */
    font-size: 13px;
}
html.ds-on body .ds-absence-modal .row:has(> .ds-absence-comment) {
    row-gap: 4px;
    margin: 0;
}
html.ds-on body .ds-absence-modal .row:has(> .ds-absence-comment) > * {
    padding: 0;
}
html.ds-on body .ds-absence-modal .ds-absence-meta {
    color: var(--ds-text-muted);
    font-size: 12px !important;  /* inline 0.7em written by the JS */
}
html.ds-on body .ds-absence-modal .error-message-form {
    margin: 4px 0 0;
    color: var(--ds-danger);
    font-size: 12px;
}
html.ds-on body .ds-absence-modal .js-select-workshop .form-check {
    flex: 0 0 auto;
    white-space: nowrap;  /* "All workshops" went on two lines next to the pills */
}
/* One workshop: the JS hides the "all workshops" box, the pills start at the
   label edge (were 33px in) */
html.ds-on body .ds-absence-modal .js-select-workshop .form-check:has(> input[style*="none"]) {
    padding-left: 0;
}
html.ds-on body .ds-absence-modal .js-select-workshop .form-check:has(> input[style*="none"]) + .js-wrapper-workshop-btn-pill {
    margin-left: 0;
}
html.ds-on body .ds-absence-modal .js-wrapper-workshop-btn-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 12px;
}
html.ds-on body .ds-absence-pill .btn-tag {
    height: 28px;
    margin: 0 !important;  /* legacy .ms-2 !important */
    padding: 0 12px;
    border: 1px solid var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text-muted) !important;  /* legacy .c-gray-600 !important */
    font-size: 12px;
    font-weight: 500;
}
html.ds-on body .ds-absence-pill:hover .btn-tag {
    border-color: var(--ds-primary);
}
html.ds-on body .ds-absence-pill.workshop-btn-tag-active .btn-tag {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-soft) !important;  /* legacy components.scss !important */
    color: var(--ds-primary-strong) !important;  /* legacy components.scss !important */
    font-weight: 600;
}
html.ds-on body .modal:has(.modal-body > .ds-absence-modal) .modal-footer {
    position: relative;
    gap: 10px;
    padding: 12px 24px;
}
html.ds-on body .modal:has(.modal-body > .ds-absence-modal) .modal-footer > .btn {
    height: 36px;
    min-width: 120px;
    margin: 0;
}
html.ds-on body .modal:has(.modal-body > .ds-absence-modal) .modal-footer > :is(.btn-outline-danger, .btn-outline-primary) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .ds-absence-modal) .ds-absence-mandatory {
    order: -1;
    margin: 0 auto 0 0;
    color: var(--ds-text-muted);
    font-size: 12px;
}
html.ds-on body .modal:has(.modal-body > .ds-absence-modal) .ds-absence-warnings {
    bottom: 100%;
    background-color: var(--ds-warning-soft);
}
/* A shown warning covers the bottom of the body: room kept under the comment,
   20px + 30px per warning line (was 64px for any count: with one line the
   body of the fixed-height dialog overflowed by 5px and scrolled, workload
   planning variants pass 2026-11-09) */
html.ds-on body .modal:has(.ds-absence-warnings .warning-message:not([style*="none"])) .modal-body {
    padding-bottom: 50px;
}
html.ds-on body .modal:has(.ds-absence-warnings .warning-container-break-link .warning-message:not([style*="none"])) .modal-body {
    padding-bottom: 80px;
}
html.ds-on body .ds-absence-warnings .warning-message {
    margin: 0;
    padding: 8px 24px;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 500;
}
html.ds-on body .ds-absence-warnings .warning-container-break-link {
    background-color: var(--ds-danger-soft);
}
html.ds-on body .ds-absence-warnings .warning-container-break-link .warning-message {
    padding-top: 8px !important;  /* inline 0.5rem */
    color: var(--ds-danger);
}

/* -------------------------------------------------------------------------
   PLANNINGS - shared planning view (2026-11-09, intervention planning group
   1, user choice "shared rules"). Moved from the receipt / return page sheet
   (`receipt_return-receipt_return_calendar.css`, where they were scoped to
   `#Main.calendar-receipt-return` and `ds-rr-*` hooks) so that the plannings
   share one look. Hooks: `ds-planning` on `#Main`, `ds-planning-cal-row`,
   `ds-planning-today-wrap`, `ds-planning-toplan-h`, `ds-planning-count`,
   `ds-planning-toplan-list`, `ds-planning-ref`, `ds-planning-reg`,
   `ds-planning-search-row`, `ds-planning-footer` (on `#Footer`); templates
   `tpl_receipt_return_calendar.php`, `_tpl_receipt_return_templates.php`,
   `tpl_intervention_calendar.php`. The workload planning has no `ds-planning`
   yet. Page specifics (receipt / return type chips and lines, intervention
   cards and workshop tabs) stay in the page sheets. Data colours kept (status
   colours of the cards, inline). Legacy: calendar.scss, receipt_return.scss.
   ------------------------------------------------------------------------- */
/* Toolbar: every control 36px high (were 34px Select2 fields, 38px round
   figures, 40px date bar and "Today"); title centred on the controls (was
   5px higher) */
html.ds-on body #Main.ds-planning > .row:first-child {
    align-items: center;
}
html.ds-on body #Main.ds-planning .select2-selection--single {
    --height: 36px;  /* read by the legacy `select + .select2 .select2-selection--single` height */
}
html.ds-on body #Main.ds-planning .select2-selection--single .select2-selection__rendered {
    font-size: 13px;
}
/* Round toolbar figures (`ds-icon-btn is-soft`): 36px squares (were 38px
   outlined circles); the filter stays dimmed while disabled (planning view) */
html.ds-on body #Main.ds-planning .figure-circle.ds-icon-btn {
    --fig-size: 36px;
}
html.ds-on body #Main.ds-planning .btn-figure.disabled .ds-icon-btn {
    opacity: .5;
}
/* Search results (`ds-planning-search-row`, cloned into the Select2
   dropdown appended to `body`): 13px, registration semibold, alternate rows
   on the light surface (were grey-200) */
html.ds-on body .ds-planning-search-row p {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
html.ds-on body .ds-planning-search-row .js-registration {
    font-weight: 600;
}
html.ds-on body .ds-planning-search-row.bg-gray-200:not(:hover) {
    background-color: var(--ds-surface-2);
}
/* Date navigation: arrows as 32px ghost squares tinted on hover (were bare
   figures with 12px side paddings), date 16px semibold (was 21px, as big as
   the page title) */
html.ds-on body #Main.ds-planning .ds-planning-datebar {
    height: 36px;
    gap: 4px;
}
html.ds-on body #Main.ds-planning .ds-planning-datebar .btn-figure {
    width: 32px;
    height: 32px;
    padding: 0 !important;  /* legacy .px-3 !important */
    display: inline-grid;
    place-items: center;
    border-radius: 8px !important;
    color: var(--ds-text-muted);
}
html.ds-on body #Main.ds-planning .ds-planning-datebar .btn-figure:hover {
    background-color: var(--ds-primary-tint);
    color: var(--ds-primary);
}
html.ds-on body #Main.ds-planning .ds-planning-datebar .btn-figure figure {
    color: inherit !important;  /* legacy .c-gray-800 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-datebar h3 {
    color: var(--ds-text) !important;  /* legacy .c-gray-800 !important */
    font-size: 16px;
    font-weight: 600;
}
html.ds-on body #Main.ds-planning .ds-planning-today {
    height: 36px !important;  /* legacy .h-100 !important */
    font-size: 13px;
}
/* "Today" ends on the calendar card edge (`.mx-2` of its wrapper); the
   "to plan" card ends on the page edge like the toolbar (`.pe-2` of the row,
   the col gutter still leaves room for the shadow); below 1400px the `#Main`
   gutter no longer pads the bottom (24px above the footer instead of 12px) */
html.ds-on body #Main.ds-planning .ds-planning-today-wrap {
    margin-right: 0 !important;  /* legacy .mx-2 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-cal-row {
    padding-right: 0 !important;  /* legacy .pe-2 !important */
}
html.ds-on body #Main.ds-planning {
    padding-bottom: 0;
}

/* Calendar grid (FullCalendar v6 resource time grid, white card from the
   skin): frame, header top line, time column and its footer in the divider
   colour (were grey-400); column headers 13px semibold (were 14px bold);
   week number 12px muted; hours 12px semibold without upper case (were 14px
   bold upper case), quarter hours 11px muted (were grey-500, 2:1); non-working
   hours on the sunken surface (was grey-200) */
html.ds-on body #Main.ds-planning #Calendar {
    --fc-non-business-color: var(--ds-surface-sunken);
}
html.ds-on body #Main.ds-planning #Calendar .fc-scrollgrid-sync-table,
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-axis-chunk > table,
html.ds-on body #Main.ds-planning #Calendar .fc-scrollgrid-section-header {
    border-color: var(--ds-divider);
}
html.ds-on body #Main.ds-planning #Calendar .fc-scrollgrid .fc-col-header {
    border-top-color: transparent;
}
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-slot-label,
html.ds-on body #Main.ds-planning #Calendar tfoot .fc-scrollgrid-section th:first-child {
    border-left-color: var(--ds-divider);
    border-bottom-color: var(--ds-divider);
}
html.ds-on body #Main.ds-planning #Calendar .fc-col-header th {
    border-bottom-color: var(--ds-border);
}
html.ds-on body #Main.ds-planning #Calendar .fc-col-header-cell-cushion {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-axis-cushion {
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-slot-label-cushion {
    color: var(--ds-text);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-transform: none;
}
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-slot-label-cushion .c-gray-500 {
    color: var(--ds-text-muted);
    font-size: 11px;
    font-weight: 400;
}

/* Folder cards (`.intervention-category-card`, status colour inline: kept):
   8px corners and shadow 1 (were 3px and the heavy `@extend .shadow`);
   reference 12px semibold, underlined on hover only (was always underlined,
   bold); registration 12px medium; the header wraps on narrow cards (events
   side by side) instead of breaking the registration on three lines */
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-event:has(.intervention-category-card) {
    border-radius: 8px !important;
    box-shadow: var(--ds-shadow-1) !important;  /* legacy @extend .shadow (literal + !important) */
}
html.ds-on body #Main.ds-planning .intervention-category-card {
    border-radius: inherit !important;
}
html.ds-on body #Main.ds-planning .intervention-category-header {
    min-height: 22px;
    padding: 4px 8px 2px 0 !important;  /* legacy .pb-1 !important */
    flex-wrap: wrap;
    color: var(--ds-text) !important;  /* legacy .c-gray-800 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-ref {
    font-size: 12px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    text-decoration: none !important;  /* legacy .text-decoration-underline !important */
}
html.ds-on body #Main.ds-planning .ds-planning-ref:hover {
    text-decoration: underline !important;
}
html.ds-on body #Main.ds-planning .ds-planning-reg {
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
html.ds-on body #Main.ds-planning .intervention-category-card > .js-intervention-list {
    padding: 0 6px 6px !important;  /* legacy .px-2 .pb-1 !important */
    gap: 4px !important;  /* legacy .gap-2 !important */
}
/* "N intervention(s)" strip of a card too short for its lines (was grey-100
   with a near black top line) */
html.ds-on body #Main.ds-planning .js-bottom-intervention-number {
    border-top-color: var(--ds-border) !important;  /* legacy .border-gray-900 !important */
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
    color: var(--ds-text-muted) !important;  /* legacy .c-gray-900 !important */
    font-size: 11px;
    border-radius: 0 0 7px 7px !important;  /* follows the card corners */
}

/* "To plan" column (`ds-card`): header 36px (55px, then 44px, until
   2026-11-09, user requests: room for the list), title 14px semibold on the left (was
   centred, 43px), count as a 20px danger pill (was a white circle with a
   red ring); list 12px from the card edge, cards 10px apart (were 6px); the
   card behind the folder card no longer shows the FullCalendar default blue
   at its corners. The header rules are not scoped to `.ds-planning`: the
   load rate card of the workload planning carries the same header class */
html.ds-on body #Main .ds-planning-toplan-h {
    min-height: 36px;
    padding: 0 14px !important;  /* legacy .pt-3 .pb-2 / .py-3 !important */
    justify-content: flex-start !important;  /* legacy .justify-content-center !important */
    border-bottom-color: var(--ds-divider) !important;
}
html.ds-on body #Main .ds-planning-toplan-h .ds-card-t {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* Workload planning, load rate gauges (`ds-planning-rates-b`, inline
   `padding: 2rem` removed): 20px 24px, the two gauges fit at 900px high
   (a 3px scroll showed a scrollbar) */
html.ds-on body #Main .ds-planning-rates-b {
    padding: 20px 24px;
}
html.ds-on body #Main.ds-planning .ds-planning-count {
    --fig-size: 20px;
    min-width: 20px;
    padding: 0 6px !important;
    border: 0;
    border-radius: var(--ds-radius-pill) !important;
    background-color: var(--ds-danger) !important;  /* legacy .bg-white !important */
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
}
html.ds-on body #Main.ds-planning .ds-planning-toplan-list {
    padding: 12px !important;  /* legacy .p-2 !important */
    gap: 10px;
}
html.ds-on body #Main.ds-planning .ds-planning-toplan-list > .fc-event {
    border-radius: 8px !important;
    background-color: transparent;
    box-shadow: var(--ds-shadow-1) !important;  /* legacy @extend .shadow (literal + !important) */
}

/* Workshop tabs with workload rates (`ds-planning-ws-nav`,
   `ds-planning-ws-rates`; intervention and workload plannings, moved from
   the intervention page sheet 2026-11-09): `nav-pills` from the skin,
   toggled with `active` by the JS; name 13px semibold, both rates on one
   line under it, 16px icon beside its value 12px semibold (were 85px tabs:
   14px bold name, 24px icons above 14px bold values, 6px margins); tabs 8px
   apart (were 12px). Rate colours are data (inline, set by the JS). */
html.ds-on body #Main.ds-planning .ds-planning-ws-nav {
    gap: 8px !important;  /* legacy .gap-3 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-ws-nav .workshop-element {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
html.ds-on body #Main.ds-planning .ds-planning-ws-rates {
    gap: 6px;
    margin: 2px 0 0 !important;  /* legacy .m-2 !important */
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 16px;
}
html.ds-on body #Main.ds-planning .ds-planning-ws-rates > div {
    flex-direction: row !important;  /* legacy .flex-column !important */
    gap: 3px;
    margin: 0 !important;  /* legacy .m-2 !important (separator) */
}
html.ds-on body #Main.ds-planning .ds-planning-ws-rates > .m-2 {
    color: var(--ds-text-muted);
    font-weight: 400;
}
html.ds-on body #Main.ds-planning .ds-planning-ws-rates figure {
    --fig-size: 16px;
    width: 16px;
    height: 16px;
}
/* Inactive tabs (user request 2026-11-09, workload variants pass): the
   server sends a light tint of the rate colour (e.g. rgb(205, 239, 225) on
   white, hardly readable). Same hue, darkened and saturated from the inline
   colour (relative colour, lightness 0.6 like the active rates); muted text
   where relative colours are not supported */
html.ds-on body #Main.ds-planning .workshop-element:not(.active) .ds-planning-ws-rates > div:not(.m-2) > * {
    color: var(--ds-text-muted);
    color: oklch(from currentColor 0.6 min(calc(c * 3), 0.16) h);  /* no colour sent: stays grey (chroma 0) */
}

/* Footer ("create an intervention folder", "add a task", "declare an
   absence"): buttons 36px, 10px apart (were 29px, 12px) */
html.ds-on body #Footer.ds-planning-footer {
    gap: 10px;
}
html.ds-on body #Footer.ds-planning-footer .btn {
    height: 36px;
    margin: 0 !important;  /* legacy .ms-2 / .me-3 !important */
    padding: 0 16px;
    font-size: 13px;
}

/* List views (`listWeek`, `listDay`; intervention planning group 2,
   2026-11-09, moved from the receipt / return page sheet): day rows 13px
   semibold in the deep module colour on the tint (were 14px bold), count
   muted; times 13px semibold / 12px muted, aligned figures (were 11.9px);
   empty week / day muted italic 13px on the white card (was 14px on a grey
   block). The list cards are page specific (receipt / return `ds-rr-lc`,
   intervention `ds-ip-lc`). */
html.ds-on body #Main.ds-planning #Calendar .fc-list-day-cushion {
    padding: 6px 14px;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list .fc-list-day-cushion .fc-list-day-text {
    color: var(--ds-primary-deep);
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-day-text span {
    color: var(--ds-text-muted);
    font-weight: 400;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-event-time {
    color: var(--ds-text-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-event-time .fw-bold {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* Row spacing (2026-11-30, user report: uneven gaps between the list rows
   of the intervention and receipt / return plannings). The cards of one
   folder share one event row (`.js-intervention-list-card` siblings in the
   title cell) and were 2px apart (card margins), the cards of two rows
   10px apart (title cell 3.2px top and bottom + the margins). First 8px
   everywhere, then (same day, user request) 4px, the space between a day
   row and its first card: 4px above each row's cards, 4px under the last
   row of a day, 4px between the cards of one row. The daily list of the
   intervention planning clones another template
   (`.js-intervention-list-card-day`, fixed 2026-11-30: its rows were still
   46px / 52px apart) */
html.ds-on body #Main.ds-planning #Calendar .fc-list-event-title {
    padding-top: 4px !important;  /* legacy .2rem !important (calendar.scss) */
    padding-bottom: 0 !important;
}
html.ds-on body #Main.ds-planning #Calendar tr.fc-event:is(:last-child, :has(+ tr.fc-list-day)) > .fc-list-event-title {
    padding-bottom: 4px !important;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-event-title > :is(.js-intervention-list-card, .js-intervention-list-card-day) > * {
    margin-top: 0 !important;  /* page sheets 2px (intervention: !important) */
    margin-bottom: 0 !important;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-event-title > :is(.js-intervention-list-card, .js-intervention-list-card-day) + :is(.js-intervention-list-card, .js-intervention-list-card-day) {
    margin-top: 4px;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-empty {
    background-color: transparent;
}
html.ds-on body #Main.ds-planning #Calendar .fc-list-empty-cushion {
    color: var(--ds-text-muted);
    font-size: 13px;
    font-style: italic;
}

/* Filter drawer (`ds-planning-filter`, list views only; shown / hidden by
   the JS with `d-none`: no display here; group 2, moved from the receipt /
   return page sheet). White drawer with shadow 3 and a light border (was
   the module tint with shadow 2); header 56px, title 16px semibold in the
   text colour (was 16.8px bold module colour, 32px header), close as a 32px
   ghost square (was a bare 16px icon); body on the light surface, 20px
   padding (was grey-100, 24px), scrolls when the lists are long; sections
   in the shared accordion card, plus / minus muted, check rows 13px with
   16px boxes 8px apart; "(un)select all" as a 28px ghost button; footer on
   a divider at the bottom of the body (sticky while it scrolls), reset as
   a neutral outline and filter primary, both 36px and sharing the width
   (intervention planning: inline `width: 114%` removed, it overflowed the
   drawer by 7px on each side) */
html.ds-on body #Main.ds-planning .ds-planning-filter {
    border-left: 1px solid var(--ds-border);
    background-color: var(--ds-surface) !important;  /* legacy .bg-blue-100 !important */
    box-shadow: var(--ds-shadow-3) !important;  /* legacy .shadow (literal + !important) */
}
html.ds-on body #Main.ds-planning .ds-planning-filter-h {
    min-height: 56px;
    padding: 0 12px 0 20px !important;  /* legacy .p-2 !important */
    align-items: center;
    border-bottom: 1px solid var(--ds-divider);
}
html.ds-on body #Main.ds-planning .ds-planning-filter-t {
    color: var(--ds-text);
    font-size: 16px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body #Main.ds-planning .ds-planning-filter-close {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px !important;
    color: var(--ds-text-muted);
}
html.ds-on body #Main.ds-planning .ds-planning-filter-close:hover {
    background-color: var(--ds-surface-2);
    color: var(--ds-text);
}
html.ds-on body #Main.ds-planning .ds-planning-filter-close figure {
    color: inherit !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-filter-form {
    min-height: 0;
    padding: 20px !important;  /* legacy .p-4 (.pb-0) !important */
    gap: 20px;
    overflow-y: auto;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-100 !important */
}
/* The accordion card clips its corners (`overflow: hidden`): it must not
   shrink in the body column, the body scrolls instead (the intervention
   planning lists were cut: 3 sections, 18 rows) */
html.ds-on body #Main.ds-planning .ds-planning-filter .accord {
    flex: 0 0 auto;
    padding-bottom: 0 !important;  /* legacy .pb-4 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-filter .accord-header {
    box-sizing: border-box;  /* the legacy button is content-box (`all: unset`) */
    min-height: 44px;
}
html.ds-on body #Main.ds-planning .ds-planning-filter .accord-header figure {
    border-color: var(--ds-border-strong);
    color: var(--ds-text-muted) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-filter .accord-body {
    padding: 12px 16px 14px;
}
html.ds-on body #Main.ds-planning .ds-planning-filter .form-check {
    min-height: 20px;
    margin-bottom: 8px !important;  /* legacy .mb-2 !important */
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}
html.ds-on body #Main.ds-planning .ds-planning-filter .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}
html.ds-on body #Main.ds-planning .ds-planning-filter .form-check-label {
    font-size: 13px;
}
html.ds-on body #Main.ds-planning .ds-planning-filter-all {
    height: 28px;
    margin-top: 4px;
    padding: 0 10px;
    border-color: transparent;
    background-color: transparent;
    color: var(--ds-primary);
    font-size: 12px;
}
html.ds-on body #Main.ds-planning .ds-planning-filter-all:hover {
    background-color: var(--ds-primary-tint);
    color: var(--ds-primary-strong);
}
html.ds-on body #Main.ds-planning .ds-planning-filter-f {
    position: sticky;
    bottom: -20px;  /* the form padding */
    z-index: 1;
    gap: 10px;
    margin: auto -20px -20px;
    padding: 12px 20px !important;  /* legacy .py-3 !important */
    border-top: 1px solid var(--ds-divider);
    background-color: var(--ds-surface) !important;  /* legacy .bg-gray-100 !important */
    box-shadow: none;
}
html.ds-on body #Main.ds-planning .ds-planning-filter-f .btn {
    flex: 1 1 0;
    height: 36px;
    margin: 0 !important;  /* legacy .mx-2 !important */
    font-size: 13px;
}
html.ds-on body #Main.ds-planning .ds-planning-filter-f .js-reset-filter {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}

/* Absences in the grid (`ds-planning-absence` on `.js-workload-event`,
   templates `_tpl_receipt_return_templates.php` and
   `user_absence/front/tpl_user_absence.php`, also included by the workload
   planning, unchanged there; intervention planning group 4, 2026-11-09,
   moved from the receipt / return page sheet). Grey data colours inline,
   kept: 8px corners, no shadow (it cannot be moved), light hatching so it
   reads as unavailable; the row no longer overflows the card (grid row
   -12px margins, 10px out on each side); title 13px semibold (was 16px bold,
   inline in `tpl_user_absence.php`: kept there for the workload planning,
   overridden on its `ds-planning-absence-t` class) */
/* `[data-is-absence="true"]`: the workload card (`tpl_workload_calendar.php`)
   carries the class for its title too, and is an absence only when the JS
   sets that attribute (fixed to "true" in the two absence templates) */
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-event:has(.ds-planning-absence[data-is-absence="true"]) {
    border-radius: 8px !important;
    background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--ds-surface-sunken) 8px 9px);
    box-shadow: none !important;  /* legacy @extend .shadow (literal + !important) */
}
html.ds-on body #Main.ds-planning .ds-planning-absence {
    margin: 0;
    padding: 8px 10px !important;  /* legacy .p-2 !important */
}
html.ds-on body #Main.ds-planning .ds-planning-absence > .col,
html.ds-on body #Main.ds-planning .ds-planning-absence .js-event-title,
html.ds-on body #Main.ds-planning .ds-planning-absence .js-event-title > span {
    margin: 0;
    padding: 0;
}
html.ds-on body #Main.ds-planning .ds-planning-absence .js-event-title {
    font-size: 13px !important;  /* inline 1rem (tpl_user_absence.php) */
    font-weight: 600 !important;  /* inline bold (tpl_user_absence.php) */
}

/* Drag guides (intervention planning group 4, 2026-11-09, moved from the
   receipt / return page sheet). While a folder is dragged, the constraint
   service (`get-calendar-overlay-events`) returns zones per user in
   `green-jade`, `orange` or `red` (CONSTRAINT_COLOR_LEVEL); the JS adds
   them as FullCalendar background events (classes `bg-<colour>-100
   border-<colour>-500 c-<colour>-500`, fill = the colour 500 at 30%,
   inline: data, kept) and writes the messages of the zone under the
   pointer in `#EventTooltip`.
   Zones: no border line (were 3px dashed borders touching the column
   lines, with the heavy card shadow), a soft tinted block 2px from the
   column edges and from each other, 8px corners, a 4px bar on the left in
   the constraint colour (`currentColor`), diagonal hatching on the
   blocking zones (red). */
html.ds-on body #Main.ds-planning #Calendar .fc-bg-event {
    inset: 2px;  /* margin is locked by the legacy `@extend .m-0` (!important) */
    border: 0;  /* legacy calendar.scss `border: 3px dashed` */
    border-radius: 8px !important;
    box-shadow: inset 4px 0 0 currentColor !important;  /* legacy @extend .shadow (literal + !important) */
}
html.ds-on body #Main.ds-planning #Calendar .fc-bg-event.c-red-500 {
    background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, currentColor 22%, transparent) 7px 9px);
}
/* While something is dragged, the cards already placed are faded so the
   zones read through them; back to opaque as soon as the drag stops.
   Dragging from the "to plan" list: dragula adds `gu-unselectable` to
   `body` while its mirror exists; dragging a card inside the calendar:
   FullCalendar renders an `.fc-event-mirror`; the zones only exist during a
   drag. The dragged card (mirror) stays opaque. Opacity only: FullCalendar
   and dragula compute the drop from the pointer coordinates. */
html.ds-on body #Main.ds-planning #Calendar .fc-timegrid-event-harness {
    transition: opacity .15s ease;
}
html.ds-on body.gu-unselectable #Main.ds-planning #Calendar .fc-timegrid-event-harness:not(:has(.fc-event-mirror)),
html.ds-on body #Main.ds-planning #Calendar:has(.fc-event-mirror, .fc-bg-event[class*="border-"]) .fc-timegrid-event-harness:not(:has(.fc-event-mirror)) {
    opacity: .4;
}
/* Constraint messages (`#EventTooltip.ds-planning-event-tooltip`, fixed at
   the top of the page, shown with `.hidden`): white card, shadow 3, 12px
   corners, a 4px bar on the left in the most severe colour of the messages
   (red > orange > green), 12px 16px; each message 13px semibold in the text
   colour after an 8px dot in its constraint colour (was an orange box
   whatever the severity, 14px bold messages in their colour, orange on
   orange 1.8:1) */
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip {
    padding: 12px 16px 12px 14px;
    border: 1px solid var(--ds-border);
    border-left: 4px solid var(--ds-text-muted);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-shadow-3) !important;  /* legacy calendar.scss !important */
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip:has(li.c-green-jade-500) {
    border-left-color: var(--green-jade-500);
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip:has(li.c-orange-500) {
    border-left-color: var(--orange-500);
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip:has(li.c-red-500) {
    border-left-color: var(--red-500);
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip li {
    position: relative;
    padding-left: 18px;
    color: var(--ds-text);
    line-height: 18px;
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip li::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    background-color: var(--ds-text-muted);
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip li.c-green-jade-500::before {
    background-color: var(--green-jade-500);
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip li.c-orange-500::before {
    background-color: var(--orange-500);
}
html.ds-on body #Main.ds-planning .ds-planning-event-tooltip li.c-red-500::before {
    background-color: var(--red-500);
}

/* Month calendar of the plannings (`.js-mini-calendar.ds-card`, inline
   bootstrap-datepicker in the right column of the intervention, receipt /
   return and workload plannings; 2026-11-09, user request). Shown / hidden
   by the JS with `hidden`: no display here.
   - header: no grey band (components.scss `tr:first-child` grey-200, painted
     on the row, so the rounded card had square top corners); month 14px
     semibold in the deep module colour, arrows tinted on hover, like the
     datepicker dropdowns (ds-core), header row 28px (was 37px; 36px, then
     28px on a second user request); week days 12px muted on a divider;
   - weeks 30px (were 36px: `line-height: 30px` + `padding: .2rem .5rem`,
     !important in intervention.scss, receipt_return.scss, workload.scss,
     restated with a longer chain; 28px at first, raised to 30px on a second
     user request), workload bubbles 28px (were 30px; their colours are
     data, kept);
   - 6px 8px 8px inside the card (the table touched its edges). */
html.ds-on body #Main .js-mini-calendar.ds-card {
    padding: 6px 8px 8px;
}
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead tr:first-child {
    background: transparent;
}
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead tr:first-child th {
    height: 28px;
    padding: 0 !important;  /* legacy th padding .2rem */
    color: var(--ds-primary-deep);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}
/* The arrow icons sat on the text baseline and pushed the row to 31px */
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead tr:first-child th i {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead tr:first-child th:is(.prev, .next) {
    width: 32px;
    border-radius: 8px !important;
    color: var(--ds-primary-strong);
}
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead tr:first-child th:is(.prev, .next, .datepicker-switch):hover {
    background: var(--ds-primary-tint);
}
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead tr:first-child th.datepicker-switch {
    border-radius: 8px !important;
}
html.ds-on body #Main .js-mini-calendar.ds-card .table-condensed thead .dow {
    height: 26px;
    padding: 0 !important;
    border-bottom: 1px solid var(--ds-divider);
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 500;
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker .table-condensed tbody td {
    padding: 1px 4px !important;  /* legacy .2rem .5rem !important (planning scss) */
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 28px !important;  /* legacy 30px !important (planning scss) */
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker .table-condensed tbody tr:first-child td {
    padding-top: 4px !important;
}
/* Workload bubbles (colour = rate, data) fill the cell as an 8px-rounded
   rectangle like the selection frame (were 30px circles, then 28px; user
   request: no circles any more) */
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker .table-condensed tbody td.day {
    padding-right: 2px !important;  /* legacy .5rem !important (planning scss) */
    padding-left: 2px !important;
}
html.ds-on body #Main .js-mini-calendar.ds-card .js-day-bubble {
    width: 100%;
    max-width: none;
    border-radius: 6px !important;
}
/* Today and selected day (2026-11-09, user request: hard to tell apart).
   Were: today with the tinted cell background of the datepickers (ds-core,
   a rectangle on 28px rows) + a green 3px ring (components.scss), selected
   day underlined in bold with a pale soft ring. Now no cell background:
   - selected day: 2px module-colour frame on the cell, 8px corners, number
     bold, not underlined. On the cell, not on the round workload bubble
     (second pass, user request): the bubbles arrive with the rates after the
     page is shown, so a ring on them made the selection jump from a
     rectangle to a circle; the bubble colours (data) stay;
   - today: a 10px module-colour dot with a white edge on the top right
     corner of the cell, number semibold in the deep module colour;
   - both can combine (today selected). Hover: the same frame in the soft
     module colour. */
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day:is(.today, .active),
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day:is(.today, .active):hover {
    background: transparent;
    text-decoration: none;
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day.today {
    position: relative;
    color: var(--ds-primary-deep);
    font-weight: 600;
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day.today::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--ds-surface);
    border-radius: 50% !important;
    background-color: var(--ds-primary);
    pointer-events: none;
}
/* `outline` (drawn above the bubble, no size change), inside the cell */
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day .js-day-bubble,
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day:hover .js-day-bubble {
    box-shadow: none;
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day:hover {
    outline: 2px solid var(--ds-primary-soft);
    outline-offset: -2px;
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day.active {
    outline: 2px solid var(--ds-primary);
    outline-offset: -2px;
    color: var(--ds-text);
    font-weight: 700;
}
html.ds-on body #Main .js-mini-calendar.ds-card .datepicker table tr td.day.active .js-day-bubble {
    opacity: 1;
}

/* -------------------------------------------------------------------------
   INTERVENTION FOLDER DETAIL MODAL (`_tpl_intervention_folder_detail_modal`,
   rendered by `intervention-folder-detail-modal-get`, opened from the three
   plannings, the lead list and the intervention folder; 2026-11-09, user
   choice: mix of three mockups). One white surface, the columns separated
   by dividers (unchanged), header heights 48px. Data colours kept: folder
   status band (inline, also updated by the JS), intervention card and
   detail header backgrounds, category dots, part state figures, status
   tags. Hooks `ds-ifdm-*` added in the template; two approved DOM additions:
   the "folder timeline" caption (`intervention_folder_timeline`) and the
   `ds-ifdm-kpis` wrapper around the duration and the counters.
   ------------------------------------------------------------------------- */
html.ds-on body .intervention-folder-detail-modal-content {
    border-radius: var(--ds-radius-lg) !important;
    box-shadow: var(--ds-shadow-3) !important;  /* legacy @extend .shadow (literal + !important) */
    font-size: 13px;
}
/* Folder column: status band header (B): 48px, 30px white squares, reference
   15px semibold in the deep module colour */
html.ds-on body .ds-ifdm-head {
    min-height: 48px;
    align-items: center;
    padding: 8px 12px !important;  /* legacy .px-3 .py-2 !important */
}
html.ds-on body .ds-ifdm-head {
    flex-wrap: nowrap;  /* the status menu went under the reference at 1280px (364px column) */
    gap: 8px;
}
html.ds-on body .ds-ifdm-head > [class*="col-"] {
    margin-top: 0 !important;  /* legacy .g-2 gutter */
    padding-right: 0;
    padding-left: 0;
}
html.ds-on body .ds-ifdm-head > [class*="col-"]:first-child {
    min-width: 0;
}
html.ds-on body :is(.ds-ifdm-head, .ds-ifdm-detail-h) .select2-selection__rendered {
    padding-right: 22px !important;
    padding-left: 10px !important;
}
html.ds-on body .ds-ifdm-head .js-ref-intervention-folder-container {
    gap: 6px;
}
html.ds-on body .ds-ifdm-head .js-ref-intervention-folder-container > .btn-figure {
    margin: 0 !important;  /* legacy .ms-2 !important */
}
html.ds-on body .ds-ifdm-head .ds-icon-btn {
    background-color: var(--ds-surface) !important;  /* legacy .bg-white !important */
    border-color: transparent;
}
/* Temporary folder (lead list): reference on the left, lead actions
   (process / spam / abandon, colours kept) as 30px white squares on the
   right (were 38px circles under the reference) */
html.ds-on body .ds-ifdm-head.is-lead {
    display: flex;
    justify-content: space-between;
}
html.ds-on body .ds-ifdm-head.is-lead .ds-ifdm-ref {
    margin: 0 !important;  /* legacy .mb-2 !important */
}
html.ds-on body .ds-ifdm-lead-actions {
    flex: 0 0 auto;
    gap: 6px !important;  /* legacy .gap-2 !important */
}
html.ds-on body .ds-ifdm-lead-actions .btn-figure:disabled .ds-icon-btn {
    opacity: .45;
}
/* `ds-icon-btn` sets a muted icon colour: the meaning colours of the
   template come back (edit in the module colour, see in orange, lead
   process green, spam orange, abandon red, restore in the module colour) */
html.ds-on body .ds-ifdm-head .ds-icon-btn.c-blue-500 { color: var(--ds-primary); }
html.ds-on body .ds-ifdm-head .ds-icon-btn.c-orange-500 { color: var(--orange-500); }
html.ds-on body .ds-ifdm-head .ds-icon-btn.c-green-jade-500 { color: var(--green-jade-500); }
html.ds-on body .ds-ifdm-head .ds-icon-btn.c-red-500 { color: var(--red-500); }
html.ds-on body .ds-ifdm-ref {
    margin-left: 4px !important;  /* legacy .ms-2 !important */
    overflow: hidden;
    color: var(--ds-primary-deep) !important;  /* legacy .c-black !important */
    font-size: 14px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Vehicle (A): the vehicle card of the home page and the contact fleet
   (`ds-entity-card is-vehicle`, shared rules above) on white under the
   band; work order line above it; manufacturer portal as a body line */
/* 8px above the vehicle card, between the vehicle and contact cards and
   under the contact card (user request: were 20 / 8 / 12px) */
html.ds-on body .ds-ifdm-vehicle {
    padding: 8px 12px !important;  /* legacy .px-3 .py-2 !important */
    background-color: var(--ds-surface);
}
html.ds-on body .ds-ifdm-vehicle > p {
    margin-bottom: 8px !important;  /* legacy .mb-1 !important */
    font-size: 13px;
}
/* Work order line without work order: an empty paragraph whose margin
   added 8px above the card (not toggled by the JS) */
html.ds-on body .ds-ifdm-vehicle > p:not(:has(*)) {
    display: none;
}
html.ds-on body .ds-ifdm-vehicle .ds-entity-card {
    margin: 0 !important;  /* legacy .ms-1 !important */
    gap: 0 !important;  /* legacy .gap-2 !important */
}
html.ds-on body .ds-ifdm-vehicle-ico {
    display: none;
}
html.ds-on body .ds-ifdm-vehicle .ds-entity-head {
    margin-bottom: 6px !important;
}
/* The shared card rules stretch every child of the band and of the lines
   (`flex: 1 1 auto`): the DMS mark and the portal button keep their size */
html.ds-on body .ds-ifdm-vehicle .ds-entity-head > *,
html.ds-on body .ds-ifdm-portal > * {
    flex: 0 0 auto !important;
    width: auto;
}
html.ds-on body .ds-ifdm-vehicle .ds-entity-head > .ds-ifdm-dms {
    width: 22px;
    height: 22px;
}
/* Status menus (Select2 of the folder and of the open intervention): 30px
   so that the three column headers are 48px (were 34px: 50px headers) */
html.ds-on body :is(.ds-ifdm-head, .ds-ifdm-detail-h) .select2-selection--single {
    --height: 30px;
}
html.ds-on body :is(.ds-ifdm-head, .ds-ifdm-detail-h) .select2-selection__rendered {
    height: 28px;
    font-weight: 600;
    line-height: 28px;
}
/* DMS mark: icon centred in its circle (was at the top left: the shared
   card rules reset its padding) */
html.ds-on body .ds-ifdm-vehicle .ds-entity-head > .ds-ifdm-dms {
    display: inline-flex !important;  /* legacy .d-inline-block !important; not toggled by the JS */
    align-items: center;
    justify-content: center;
    padding: 0 !important;  /* shared card rules / legacy .p-1 !important */
}
html.ds-on body .ds-ifdm-dms {
    --fig-size: 22px;
    margin: 0 0 0 4px !important;  /* legacy .ms-1 !important */
    background-color: var(--ds-surface) !important;  /* legacy .bg-blue-100 !important */
    color: var(--ds-primary) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .ds-ifdm-dms svg {
    display: block;
    width: 12px;
    height: 12px;
}
html.ds-on body .ds-ifdm-brand {
    font-weight: 600;
}
html.ds-on body .ds-ifdm-vin {
    order: 2;
    padding-left: 40px !important;  /* aligned on the text of the brand line */
    color: var(--ds-text-muted);
    font-variant-numeric: tabular-nums;
}
html.ds-on body .ds-ifdm-portal {
    order: 3;
    padding-left: 40px !important;
}
html.ds-on body .ds-ifdm-portal:not(:has(*)) {
    display: none;  /* no portal: empty line (not toggled by the JS) */
}
/* Several portals: the `<div>` of links inside the portal `<p>` makes the
   browser close the `<p>` before it and add an empty `<p>` for the closing
   tag; both land with `order: 0` between the brand and the VIN, and the
   empty `<p>` kept its 16px bottom margin (2026-11-25 fix: was a 16px gap
   between the brand and the VIN) */
html.ds-on body .ds-ifdm-vehicle .ds-entity-content > p:not([class]):empty {
    margin: 0;
}
html.ds-on body .ds-ifdm-portal .external-link {
    color: var(--ds-primary) !important;  /* inline `color: revert` */
    font-weight: 500;
}
/* Portal button (several portals): 10px side padding (2026-11-25 fix: was
   0, the shared card rule `ds-entity-line > :not(.btn-tag)` resets the
   padding of the line children with !important) */
html.ds-on body .ds-ifdm-portal .btn {
    height: 26px;
    font-size: 12px;
}
html.ds-on body .ds-entity-card .ds-ifdm-portal > .btn.btn-sm {
    padding: 0 10px !important;  /* shared card rule !important */
}
/* Contact (second pass, user request): the contact card of the home page
   (`ds-entity-card is-contact`, `ds-entity-head`, `ds-entity-line
   ds-entity-ico-phone`) under the vehicle card (was a plain line, a grey
   strip before); the SMS eligibility badge after the phone */
html.ds-on body .ds-ifdm-contact {
    margin: 0 12px 8px;
    border-bottom: 1px solid var(--ds-border) !important;  /* legacy .border-bottom !important (card frame) */
}
html.ds-on body .ds-ifdm-contact-ico {
    display: none;  /* the avatar of the band replaces it */
}
html.ds-on body .ds-ifdm-contact .ds-entity-line {
    gap: 8px !important;  /* legacy .gap-2 !important */
}
html.ds-on body .ds-ifdm-contact .ds-entity-line > * {
    flex: 0 1 auto !important;  /* shared card rules stretch every child */
    width: auto;
}
html.ds-on body .ds-ifdm-contact .ds-entity-line > .js-phone {
    margin: 0 !important;  /* legacy .mt-1 !important */
}
html.ds-on body .ds-ifdm-contact .ds-entity-line > .badge {
    padding: 4px 8px !important;  /* shared card rules reset the padding of the line children */
    font-size: 11px;
}
/* Condensed cards, this modal only (vehicle and contact): band 40px with a
   24px avatar (were 52px / 32px), lines 2px 12px (were 3px 14px) */
html.ds-on body .intervention-folder-detail-modal-content .ds-entity-card .ds-entity-head {
    min-height: 40px;
    padding: 8px 12px 8px 44px !important;  /* shared card rule (52px band) */
}
html.ds-on body .intervention-folder-detail-modal-content .ds-entity-card .ds-entity-head::before {
    top: 8px;
    left: 12px;
    width: 24px;
    height: 24px;
}
html.ds-on body .intervention-folder-detail-modal-content .ds-entity-card .ds-entity-head::after {
    top: 13px;
    left: 17px;
    width: 14px;
    height: 14px;
}
html.ds-on body .intervention-folder-detail-modal-content .ds-entity-card .ds-entity-content {
    padding-bottom: 6px !important;  /* shared card rule 10px */
}
html.ds-on body .intervention-folder-detail-modal-content .ds-entity-card .ds-entity-line {
    padding: 2px 12px !important;  /* shared card rule 3px 14px */
    font-size: 13px;
}
html.ds-on body .intervention-folder-detail-modal-content .ds-entity-card :is(.ds-ifdm-vin, .ds-ifdm-portal) {
    padding-left: 38px !important;  /* aligned on the text of the lines with an icon */
}
html.ds-on body .ds-ifdm-info {
    align-items: flex-start !important;
    padding: 10px 12px !important;  /* legacy .p-2 .ps-3 !important */
    border-top: 1px solid var(--ds-divider);
    border-bottom: 0 !important;  /* legacy .border-bottom !important */
    font-size: 13px;
}
/* Folder information (variants pass, simulated): plain lines beside the
   pictogram (were bullets indented 32px); a priority colour stays (data) */
html.ds-on body .ds-ifdm-info ul {
    display: grid;
    gap: 2px;
    padding: 2px 0 0;
    list-style: none;
}
html.ds-on body .ds-ifdm-info > figure {
    --fig-size: 22px;
    flex: 0 0 auto;
}
/* Work orders above the vehicle card (variants pass, simulated: several
   work orders): label muted, PDF buttons as 24px soft squares (were outlined
   circles) */
html.ds-on body .ds-ifdm-vehicle > p .fw-bold {
    color: var(--ds-text-muted);
    font-weight: 500 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-ifdm-vehicle > p .js-work-order-pdf-view {
    margin: 0 2px;
    vertical-align: middle;
}
html.ds-on body .ds-ifdm-vehicle > p .js-work-order-pdf-view figure {
    --fig-size: 24px;
    padding: 4px !important;  /* legacy figure-circle-sm padding */
    border-color: transparent;
    border-radius: 7px !important;
    background-color: var(--ds-primary-soft) !important;  /* legacy .bg-white !important */
}
/* Timeline (C): receipt → requested intervention date → return, with a
   coloured dot per step on a vertical line (were three grey wells in the
   order receipt, return, requested date: the order is set with `order`);
   the receipt workshop stays in the receipt step */
html.ds-on body .ds-ifdm-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 12px 14px !important;  /* legacy .px-3 .py-2 !important */
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .ds-ifdm-caption {
    margin: 0 0 -2px;
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body .ds-ifdm-step {
    position: relative;
    margin: 0 !important;  /* legacy .mx-1 .my-2 !important */
    padding: 0 0 0 22px !important;  /* legacy .p-2 !important */
    border: 0;
    border-radius: 0 !important;
    background-color: transparent !important;  /* legacy .bg-gray-100 !important */
    font-size: 13px;
}
html.ds-on body .ds-ifdm-step.is-receipt { order: 1; --ds-ifdm-step: var(--purple-500); }
html.ds-on body .ds-ifdm-step.is-wished { order: 2; --ds-ifdm-step: var(--ds-primary); }
html.ds-on body .ds-ifdm-step.is-return { order: 3; --ds-ifdm-step: var(--orange-500); }
html.ds-on body .ds-ifdm-step::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ds-surface);
    border-radius: 50% !important;
    background-color: var(--ds-ifdm-step);
}
/* The line, from a dot to the next one (not after the return) */
html.ds-on body .ds-ifdm-step:not(.is-return)::after {
    content: "";
    position: absolute;
    top: 9px;
    bottom: -21px;
    left: 5px;
    width: 2px;
    background-color: var(--ds-border);
}
html.ds-on body .ds-ifdm-step > * {
    padding: 0;
}
html.ds-on body .ds-ifdm-step figure {
    display: none;  /* the dot replaces the step pictogram */
}
html.ds-on body .ds-ifdm-step > .hstack:first-child {
    margin-bottom: 2px !important;  /* legacy .mb-2 !important */
}
html.ds-on body .ds-ifdm-step > .hstack:first-child p {
    font-weight: 600 !important;  /* legacy .fw-bold !important (user name) */
}
html.ds-on body .ds-ifdm-step > p {
    margin-bottom: 2px !important;  /* legacy .mb-1 !important */
}
html.ds-on body .ds-ifdm-step > p.c-gray-600 {
    color: var(--ds-text-muted) !important;  /* legacy .c-gray-600 !important */
    font-size: 12px;
}
html.ds-on body .ds-ifdm-step .js-calendar-redirection.text-decoration-underline:hover {
    color: var(--ds-primary);
}
html.ds-on body .ds-ifdm-step > .hstack:last-child:not(:first-child) {
    margin-top: 4px !important;  /* legacy .mt-2 !important */
    gap: 6px !important;
    color: var(--ds-text-muted);
    font-size: 12px;
}
html.ds-on body .ds-ifdm-step .btn-tag {
    height: 22px;
    padding: 0 10px !important;  /* legacy .py-1 .px-2 !important */
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
    font-size: 11px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* Key figures (C): duration, interventions, to plan as three tiles */
html.ds-on body .ds-ifdm-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .ds-ifdm-kpi-group {
    display: contents;
}
html.ds-on body .ds-ifdm-kpi {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 8px 6px !important;  /* legacy .px-3 .py-2 !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
    text-align: center;
}
html.ds-on body .ds-ifdm-kpi figure {
    display: none;
}
html.ds-on body .ds-ifdm-kpi p {
    margin: 0 !important;  /* legacy .mb-1 .ms-auto !important */
    padding: 0 !important;  /* legacy .pe-3 !important */
    color: var(--ds-text-muted);
    font-size: 11px;
    line-height: 1.25;
}
html.ds-on body .ds-ifdm-kpi p.fw-bold {
    color: var(--ds-text);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* Comments (folder and intervention) */
html.ds-on body .ds-ifdm-comment {
    padding: 12px !important;  /* legacy .px-3 .py-2 !important */
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .ds-ifdm-comment > .hstack {
    margin-bottom: 6px !important;  /* legacy .mb-2 !important */
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body .ds-ifdm-comment > .hstack figure {
    --fig-size: 16px;
    width: 16px;
    margin-right: 6px !important;  /* legacy .me-2 !important */
}
html.ds-on body .ds-ifdm-comment .ds-well {
    padding: 8px 10px !important;  /* legacy .p-3 !important */
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
}
html.ds-on body .ds-ifdm-comment .ds-well:has(textarea) {
    padding: 0 !important;
    background-color: transparent !important;
}
html.ds-on body .ds-ifdm-comment textarea {
    font-size: 13px;
}
/* Interventions column (B): header 48px, cards with their status colour
   (data), 10px corners, no shadow; the open card (`intervention-focused`,
   set by the JS with an inline 3px border in its status colour) gets a
   module-colour ring and its arrow points at the detail column (was the
   status colour) */
html.ds-on body .ds-ifdm-list-h {
    min-height: 48px;
    align-items: center;
    padding: 8px 12px 8px 14px !important;  /* legacy .px-3 .py-2 !important */
    border-top: 0 !important;  /* legacy .border-top !important */
}
html.ds-on body .ds-ifdm-list-h h5 {
    color: var(--ds-text);
    font-size: 14px;
    font-weight: 600;
}
html.ds-on body .ds-ifdm-card {
    padding: 10px 12px !important;  /* legacy .p-3 !important */
    border-width: 0 !important;  /* inline 0 / 3px set by the JS */
    border-radius: 10px !important;
    box-shadow: none !important;  /* legacy .shadow !important */
    color: var(--ds-text);
    font-size: 13px;
}
html.ds-on body .ds-ifdm-card.intervention-focused {
    box-shadow: 0 0 0 2px var(--ds-primary) !important;
}
html.ds-on body .intervention-folder-detail-modal-content .ds-ifdm-card.intervention-focused::after {
    margin-top: -10px;
    margin-left: 2px;  /* the tip reaches the column divider (12px list padding) */
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left: 10px solid var(--ds-primary);
}
html.ds-on body .ds-ifdm-card .js-intervention-name {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-ifdm-card .js-intervention-duration {
    font-variant-numeric: tabular-nums;
}
/* Category dots: 8px circles like the design system dots (were 12 x 20px
   ovals: components.scss `.dot` sets `min-height: 20px`) */
html.ds-on body :is(.ds-ifdm-card, .ds-ifdm-detail-info) .dot {
    flex: 0 0 8px;
    align-self: center;
    width: 8px;
    min-width: 8px;
    height: 8px;
    min-height: 8px;
    margin-top: 0;
}
html.ds-on body .ds-ifdm-card figure.figure-sm:not(.figure-circle) {
    --fig-size: 16px;
    width: 16px;
}
html.ds-on body .ds-ifdm-card .figure-circle {
    --fig-size: 22px;
}
html.ds-on body .ds-ifdm-card .btn-tag {
    height: 22px;
    padding: 0 10px !important;  /* legacy .px-2 .py-1 !important */
    background-color: var(--ds-surface);
    font-size: 11px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
/* Detail column (B), linked to the open card: 3px module-colour edge */
html.ds-on body .ds-ifdm-detail-col {
    position: relative;
}
html.ds-on body .ds-ifdm-detail-col::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 3px;
    background-color: var(--ds-primary);
    pointer-events: none;
}
html.ds-on body .ds-ifdm-detail-h {
    min-height: 48px;
    padding: 8px 12px 8px 16px !important;  /* legacy .px-3 .py-2 !important */
}
html.ds-on body .ds-ifdm-detail-h .js-ref-intervention-folder {
    font-size: 14px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body :is(.ds-ifdm-detail-info, .ds-ifdm-detail-time) {
    padding: 10px 14px 10px 16px !important;  /* legacy .px-3 .py-2 / .p-2 .ps-3 !important */
    border-bottom-color: var(--ds-divider) !important;
    font-size: 13px;
}
html.ds-on body .ds-ifdm-detail-info p.fw-bold {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-ifdm-detail-info .btn-tag {
    height: 22px;
    padding: 0 10px !important;  /* legacy .py-1 !important */
    border-color: transparent;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
    font-size: 11px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body :is(.ds-ifdm-detail-info, .ds-ifdm-detail-time) figure:not(.figure-circle) {
    --fig-size: 16px;
    width: 16px;
}
html.ds-on body .ds-ifdm-detail-time .d-flex > p:first-child {
    color: var(--ds-text-muted);
}
html.ds-on body .ds-ifdm-detail-time p {
    margin-right: 0 !important;  /* legacy .me-2 !important */
    margin-bottom: 2px !important;  /* legacy .mb-2 !important (not planned) */
}
html.ds-on body .ds-ifdm-detail-infos {
    margin: 0 !important;  /* legacy .mb-2 !important */
    padding: 10px 14px 10px 16px !important;
    border-bottom: 1px solid var(--ds-divider);
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
    font-size: 13px;
}
html.ds-on body .ds-ifdm-parts {
    padding: 4px 14px 4px 16px !important;  /* legacy .px-3 .py-2 !important */
    border-bottom: 1px solid var(--ds-divider);
    background-color: transparent !important;  /* legacy .bg-gray-200 !important */
    font-size: 13px;
}
/* Parts (2026-11-25 fix: with the part menu open and parts listed, the
   wrench and the edit button were centred on the whole block, the names
   glued under the menu and 9px left of its text): wrench and button on the
   first row (the 30px button in read mode, the 34px menu when it is open),
   names 18px lines, 6px under the menu and aligned on its text */
html.ds-on body .ds-ifdm-parts > .hstack {
    align-items: flex-start !important;  /* legacy .align-items-start !important */
}
html.ds-on body .ds-ifdm-parts > .hstack > figure {
    margin-top: 4px;
}
html.ds-on body .ds-ifdm-parts .js-part-list-name {
    padding-top: 6px;
    line-height: 18px;
}
html.ds-on body .ds-ifdm-parts > .hstack:has(.js-part-list-select:not(.d-none)) > figure {
    margin-top: 6px;
}
html.ds-on body .ds-ifdm-parts > .hstack:has(.js-part-list-select:not(.d-none)) > .btn-figure {
    margin-top: 2px;
}
html.ds-on body .ds-ifdm-parts > .hstack:has(.js-part-list-select:not(.d-none)) .js-part-list-name {
    padding: 6px 0 0 9px;
}
html.ds-on body .ds-ifdm-parts > .hstack > figure {
    --fig-size: 22px;
    flex: 0 0 auto;
    width: auto;
    background-color: transparent !important;  /* legacy .bg-white !important */
    border: 0;
}
html.ds-on body .ds-ifdm-parts > .hstack > .col-10 {
    flex: 1 1 0;
    width: auto;
}
html.ds-on body .ds-ifdm-parts > .hstack > .btn-figure {
    flex: 0 0 auto;
    width: auto;
}
/* Linked interventions (variants pass, simulated): section caption like the
   comment, "merge all" 30px 13px, linked cards as the list cards (status
   colours kept), merge button as a 26px square */
html.ds-on body .ds-ifdm-linked {
    padding: 12px 14px 12px 16px !important;  /* legacy .px-3 .py-2 !important */
    border-top: 1px solid var(--ds-divider);
    font-size: 13px;
}
html.ds-on body .ds-ifdm-linked > .js-toggle-collapse {
    margin-bottom: 8px !important;  /* legacy .mb-2 !important */
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
html.ds-on body .ds-ifdm-linked > .js-toggle-collapse figure {
    --fig-size: 16px;
    width: 16px;
}
html.ds-on body .ds-ifdm-linked .js-intervention-merge-all {
    height: 30px;
    margin-bottom: 8px !important;  /* legacy .mb-2 !important */
    padding: 0 12px;
    font-size: 13px;
}
html.ds-on body .ds-ifdm-linked .ds-ifdm-card {
    margin-bottom: 6px !important;  /* legacy .mb-2 !important */
}
html.ds-on body .ds-ifdm-linked .js-intervention-merge figure {
    --fig-size: 26px;
    border-color: transparent;
    border-radius: 7px !important;
    background-color: var(--ds-surface) !important;  /* legacy .bg-light !important */
}
html.ds-on body .ds-ifdm-detail-f {
    min-height: 40px;
    padding: 8px 14px 8px 16px !important;  /* legacy .px-3 .py-2 !important */
    border-top: 1px solid var(--ds-divider);
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 !important */
    font-size: 13px;
}
html.ds-on body .ds-ifdm-detail-f > p:first-child {
    color: var(--ds-text-muted);
}

/* -------------------------------------------------------------------------
   PLANNINGS - small screens (2026-11-12, inventory at 1280x650, the room
   left by a 1280x780 screen once the browser and task bars are drawn).
   Templates `tpl_intervention_calendar.php`, `tpl_receipt_return_calendar.php`,
   `tpl_workload_calendar.php`: inline widths moved here (`ds-planning-field`
   on the search / users field wrappers, were `width: 20rem`;
   `ds-planning-side` on the right column, was `width: 22rem`).
   1. Widths (any height): below 1400px the toolbar went under the title
      (title + toolbar 1275px in a 1212px row) and the workshop tabs and the
      date bar took two lines (the date kept the legacy 20rem minimum for a
      190px text): 98px lost above the calendar.
   2. Compact mode (max-height 760px only, text sizes unchanged): spacing of
      the page header, workshop tabs, column header (legacy 3rem), calendar
      row and footer reduced; the workload rate gauges side by side (the card
      scrolled, the second gauge cut). The top bar (48px) is in the SHELL -
      TOP BAR section.
   At 1280x650: intervention calendar 333 -> 443px high (3h24 -> 4h54 of
   slots visible), receipt / return 383 -> 451px, workload 359 -> 443px.
   The horizontal scroll with 4 technicians comes from `dayMinWidth` (250px,
   Calendar.js): not changed (JS).
   ------------------------------------------------------------------------- */
html.ds-on body #Main.ds-planning .ds-planning-field {
    width: 20rem;
}
html.ds-on body #Main.ds-planning .ds-planning-side {
    width: 22rem;
}
/* Date: 13.5rem for the longest dates ("mercredi 30 septembre 2026"), the
   text is truncated beyond (was a 20rem minimum, intervention_scss) */
html.ds-on body #Main.ds-planning .calendar-navigation-date h3 {
    min-width: 13.5rem;
}
@media (max-width: 1399.98px) {
    html.ds-on body #Main.ds-planning .ds-planning-field {
        width: 15rem;
    }
    /* 64px more for the calendar; the "to plan" cards cut their contact
       names a little earlier (ellipsis) */
    html.ds-on body #Main.ds-planning .ds-planning-side {
        width: 18rem;
    }
}
@media (max-height: 760px) {
    html.ds-on body #Main.ds-planning {
        padding-top: 8px;
    }
    html.ds-on body #Main.ds-planning > .row:first-child {
        margin-bottom: 8px !important;  /* legacy .mb-3 !important */
    }
    html.ds-on body #Main.ds-planning .js-calendar-header > * {
        margin-bottom: 6px !important;  /* legacy .mb-2 !important */
    }
    html.ds-on body #Main.ds-planning .ds-planning-ws-nav .workshop-element {
        padding: 3px 10px;
    }
    html.ds-on body #Main.ds-planning #Calendar .fc-col-header thead {
        height: 32px;  /* legacy 3rem */
    }
    html.ds-on body #Main.ds-planning .ds-planning-cal-row {
        padding-bottom: 8px !important;  /* legacy .pb-3 !important */
    }
    html.ds-on body #Main .ds-planning-rates-b {
        flex-direction: row !important;  /* legacy .flex-column !important */
        justify-content: space-around !important;  /* legacy .justify-content-between !important */
        padding: 12px 16px;
    }
    html.ds-on body #Main .ds-planning-rates-b > .separator {
        align-self: stretch;
        width: 1px;
        height: auto;
        margin: 0 !important;  /* legacy .mt-3 .mb-3 !important */
    }
    html.ds-on body #Footer.ds-planning-footer {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

/* ==== END FAMILY: Workshop - interventions and plannings - insert above ==== */


/* =========================================================================
   FAMILY: Workshop - leads and requester
   Lead lists and lead processing, requests and graphs.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Lead list modals of the Workshop and Parts modes (`?m=lead`, `?mp=lead`:
   templates of workshop/module/lead/front/tpl_lead_list.php and its Parts
   copy parts/module/lead/front/tpl_lead_list.php, ModalLight opened by
   lead_list__functions.js), 2026-11-08, on request: same look as the
   matching Sales lead modals (leads-default.css, Leads family of
   ds-materialize.css). The ModalLight frame (header, footer band) stays the
   shared one. Matched by their content (no id):
   - legend `.js-legend-modal`: 640px, padding 20px 24px, section titles
     14px semibold (were 21px), entries 13px with 20px icons (were 30px),
     close button as a neutral outline;
   - request detail (`.js-review-text`, Sales "detail" branch rendered
     without its header, footer `.footer-modal-detail`): request text in
     the light card of the Sales detail (was the Bootstrap utility frame),
     abandon reason card alike, process / spam / abandon actions as 30px
     filled squares in their meaning colours like the list cells (were
     outlined circles), close as a neutral outline;
   - abandon reason `.js-lead-abandon-modal` (confirmation ModalLight):
     600px, padding 20px 24px, 28px amber picto (was 38px blue-green), label
     13px semibold above the field, mandatory note 12px muted, cancel as a
     neutral outline (was red outline), validate in danger once a reason is
     typed (was green; the JS toggles `.disabled`).
   Buttons in sentence case (ModalLight and the JS write them upper case),
   36px high and 120px wide at least, like the Sales modal buttons.
   ------------------------------------------------------------------------- */
html.ds-on body .modal:has(.js-legend-modal) .modal-dialog {
    --bs-modal-width: 640px;  /* modal-lg 800px, set on the dialog */
}
html.ds-on body .modal:has(.js-lead-abandon-modal) .modal-dialog {
    --bs-modal-width: 600px;
}
html.ds-on body .modal:is(:has(.js-legend-modal), :has(.js-lead-abandon-modal), :has(.footer-modal-detail)) .modal-body {
    padding: 20px 24px;  /* 40px */
}
html.ds-on body .modal:is(:has(.js-legend-modal), :has(.js-lead-abandon-modal), :has(.footer-modal-detail)) .modal-footer .btn {
    min-width: 120px;
    height: 36px;
    text-transform: lowercase;
}
html.ds-on body .modal:is(:has(.js-legend-modal), :has(.js-lead-abandon-modal), :has(.footer-modal-detail)) .modal-footer .btn::first-letter {
    text-transform: uppercase;
}
html.ds-on body .modal:is(:has(.js-legend-modal), :has(.footer-modal-detail)) .modal-footer .btn.btn-primary,
html.ds-on body .modal:has(.js-lead-abandon-modal) .modal-footer .btn.btn-outline-danger {
    --bs-btn-bg: var(--ds-surface);
    --bs-btn-color: var(--ds-text);
    --bs-btn-border-color: var(--ds-border-strong);
    --bs-btn-hover-bg: var(--ds-surface-2);
    --bs-btn-hover-color: var(--ds-text);
    --bs-btn-hover-border-color: var(--ds-border-strong);
    --bs-btn-active-bg: var(--ds-surface-2);
    --bs-btn-active-color: var(--ds-text);
    --bs-btn-active-border-color: var(--ds-border-strong);
}

/* Legend */
html.ds-on body .modal .js-legend-modal h3 {
    margin: 0 0 10px !important;  /* mb-3 utility !important */
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .modal .js-legend-modal .row {
    --bs-gutter-y: 10px;
    --bs-gutter-x: 40px;
}
html.ds-on body .modal .js-legend-modal > .row:last-child {
    margin-bottom: 0 !important;  /* mb-3 utility !important */
}
html.ds-on body .modal .js-legend-modal h3 + .row ~ h3,
html.ds-on body .modal .js-legend-modal .row + h3 {
    margin-top: 20px !important;  /* mb-3 above */
    padding-top: 16px;
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .modal .js-legend-modal .col-auto p {
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 20px;
}
html.ds-on body .modal .js-legend-modal .col-auto figure {
    --fig-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 8px !important;  /* me-2 utility !important */
}

/* Request detail */
html.ds-on body .modal .modal-body > .js-review-text > div {
    padding: 12px 14px !important;  /* p-2 / p-3 utilities !important */
    border: 1px solid var(--ds-border) !important;  /* `border` utility !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* bg-gray-100 utility !important */
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 20px;
}
html.ds-on body .modal .modal-body > .js-review-text > div b {
    font-weight: 600;
}
html.ds-on body .modal .modal-body > .js-review-text > p {
    margin: 12px 0 6px !important;  /* mb-1 utility !important */
    color: var(--ds-text) !important;  /* c-gray-700 utility !important */
    font-size: calc(.9286rem * var(--ds-text-scale)) !important;  /* small-text !important */
    font-weight: 600 !important;  /* fw-bold, inline bold */
}
html.ds-on body .modal .footer-modal-detail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}
html.ds-on body .modal .footer-modal-detail > .js-lead-button-action {
    gap: 8px !important;  /* gap-3 utility !important */
    margin: 0 !important;  /* mb-2 utility !important */
}
html.ds-on body .modal .footer-modal-detail .btn-figure > figure {
    --fig-size: 30px;
    width: 30px;
    height: 30px;
    border: 0 !important;
    border-radius: 8px !important;
    background-color: var(--ds-primary) !important;  /* restore buttons: `bg-white` utility !important */
    color: #FFFFFF !important;  /* `c-*` utility !important */
}
html.ds-on body .modal .footer-modal-detail .btn-figure > figure svg {
    width: 16px;
    height: 16px;
}
html.ds-on body .modal .footer-modal-detail .btn-figure > figure.c-green-jade-500 {
    background-color: var(--ds-success) !important;
}
html.ds-on body .modal .footer-modal-detail .btn-figure > figure.c-orange-500 {
    background-color: var(--ds-orange) !important;
}
html.ds-on body .modal .footer-modal-detail .btn-figure > figure.c-red-500 {
    background-color: var(--ds-danger) !important;
}
html.ds-on body .modal .footer-modal-detail .btn-figure:not(:disabled):hover > figure {
    filter: brightness(.88);
}
html.ds-on body .modal .footer-modal-detail .btn-figure:disabled > figure {
    background-color: var(--ds-border-strong) !important;
}

/* Abandon reason */
html.ds-on body .modal .js-lead-abandon-modal > .hstack {
    gap: 12px !important;  /* gap-3 utility !important */
    align-items: flex-start !important;
    margin: 0 !important;  /* mb-3 utility !important */
}
html.ds-on body .modal .js-lead-abandon-modal > .hstack > figure {
    --fig-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--ds-warning) !important;  /* c-blue-500 utility !important */
}
html.ds-on body .modal .js-lead-abandon-modal > .hstack p {
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    line-height: 20px;
}
html.ds-on body .modal .js-lead-abandon-modal > .hstack p b {
    font-weight: 600;
}
html.ds-on body .modal .js-lead-abandon-modal > .row {
    margin-top: 16px !important;  /* mt-4 utility !important */
}
html.ds-on body .modal .js-lead-abandon-modal label.form-label {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* fw-bold utility !important */
}
html.ds-on body .modal .js-lead-abandon-modal textarea.form-control {
    min-height: 88px;
}
html.ds-on body .modal:has(.js-lead-abandon-modal) .modal-footer > p.me-auto {
    color: var(--ds-text-muted);
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
}
html.ds-on body .modal:has(.js-lead-abandon-modal) .modal-footer .js-btn-confirm-abandon:not(.disabled) {
    --bs-btn-bg: var(--ds-danger);
    --bs-btn-border-color: var(--ds-danger);
    --bs-btn-hover-bg: var(--ds-danger);
    --bs-btn-hover-border-color: var(--ds-danger);
    --bs-btn-active-bg: var(--ds-danger);
    --bs-btn-active-border-color: var(--ds-danger);
}
html.ds-on body .modal:has(.js-lead-abandon-modal) .modal-footer .js-btn-confirm-abandon:not(.disabled):hover {
    filter: brightness(.9);
}

/* -------------------------------------------------------------------------
   New graph modal of the SAV / Parts graph list ("Nouveau graphe",
   `.modal-new-graph`: template `#TemplateForNewGraphModal` of
   pages/requester/front/tpl_requester_graph_workshop.php, cloned into a
   ModalLight of the top Workshop page by
   workshop/module/requester/front/script/graph__listeners.js), 2026-11-11.
   The legacy look depended on the top page (home_scss: grey shadowed cards
   with a centred column heading; elsewhere: bare blocks). Now: 20px 24px
   padding (was 40px), intro sentence in the text colour (was the module
   colour), the data sources as option cards (1px border, 12px corners,
   10px 14px padding; hover and open: module colour border, open one
   tinted), heading on one row: category icon 24px (colour inline: data),
   name 14px semibold on the left (was centred between icon and arrow),
   arrow as a 28px muted button (rotated inline by the JS); requests as
   clickable rows (whole row, module colour 600, tinted on hover; were a
   bulleted list of 14px dark text). Collapse (Bootstrap `.show`) and the
   arrow rotation are untouched.
   ------------------------------------------------------------------------- */
html.ds-on body .modal .modal-body:has(> .modal-new-graph) {
    padding: 20px 24px;
}
html.ds-on body .modal .modal-new-graph .modal-new-graph-title {
    margin: 0 0 12px;
    color: var(--ds-text) !important;  /* .c-primary-500 */
    font-size: calc(1rem * var(--ds-text-scale));
}
html.ds-on body .modal .modal-new-graph > .row {
    --bs-gutter-x: 12px;
}
html.ds-on body .modal .modal-new-graph .category-card {
    margin: 0 0 12px !important;  /* .m-2 .ms-0 utilities !important */
    padding: 10px 14px !important;  /* .p-3 utility !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
    box-shadow: none;
    transition: border-color .15s, background-color .15s;
}
html.ds-on body .modal .modal-new-graph .category-card:hover {
    border-color: var(--ds-primary);
}
html.ds-on body .modal .modal-new-graph .category-card:has(> .category-card-list.show) {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-tint);
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title {
    display: block;
    color: var(--ds-text) !important;  /* .c-primary-500 */
    font-size: calc(1rem * var(--ds-text-scale));
    text-align: left;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title > .row {
    flex-wrap: nowrap;
    gap: 12px;
    width: 100% !important;  /* .w-100 utility !important */
    margin: 0;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title > .row > * {
    padding: 0;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title > .row > .col-auto:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title > .row > .col-auto:first-child .figure {
    --fig-size: 24px;
    width: 24px;
    height: 24px;
    margin: 0;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title .btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px !important;
    color: var(--ds-text-muted);
}
html.ds-on body .modal .modal-new-graph .category-card:hover .category-card-title .btn-link {
    color: var(--ds-primary);
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-title .btn-link .figure.arrow {
    --fig-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-list {
    margin: 8px -6px 0 !important;  /* .mt-3 utility !important */
    padding: 0;
    list-style: none;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-list li {
    list-style: none;  /* home_scss ">" marker */
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-list .js-request-name {
    margin: 0;
    padding: 6px;
    border-radius: 8px !important;
    color: var(--ds-primary);
    font-weight: 600;
    transition: background-color .15s;
}
html.ds-on body .modal .modal-new-graph .category-card .category-card-list .js-request-name:hover {
    background-color: var(--ds-surface);
    color: var(--ds-primary-strong);
}

/* -------------------------------------------------------------------------
   Lead processing modal, content (`workshop/module/lead/front/
   _tpl_lead_item_process_modal.php` cloned into a ModalLight by
   workshop/class/script/LeadItemProcessModal.js: Workshop and Parts lead
   lists), 2026-11-19, user choice "A - clear wizard" among three live
   previews. The frame and the first rules (summary well, choice cards,
   duplicate cards) stay in SHARED TEMPLATES; the shared step indicator and
   accordion are only restated inside this modal. Was:
   - body padding 40px; steps as 20px letters (A, B, C) with ">" between;
   - aside summary with bold labels; forms with 14px regular labels, 29px
     fields, a 16.8px semibold intro sentence;
   - duplicates: red "similar contact" band, titles in the module colour,
     comparison table on grey bands (`bg-gray-200` / `bg-gray-100`);
   - summary: one grey well, columns split by black 2px borders (softened
     earlier), titles bold in the module colour;
   - processing: two narrow centred cards (30px picto, 14px module-colour
     label on two lines, radio below; the unchecked radios looked filled);
   - footer: buttons in upper case, cancel as a red outline, save / process
     in the success colour.
   Now: padding 20px 24px; steps as pills like the intervention folder step
   bar (`#tabsNavigationBar`): number in a 26px circle, current step tinted
   with a filled number, done steps with a check in the success colour;
   summary in a white card, labels muted, values medium; labels 13px
   semibold above 32px fields, intro 15px regular; duplicates: amber callout,
   section titles 14px semibold, cards titled in the text colour ("new" card
   dashed), comparison in a light framed table, the kept value tinted with a
   primary border, identical values muted without radio; summary as three
   white cards with a tinted header; processing choices as horizontal option
   cards (44px picto square, 14px semibold label, radio on the right; chosen:
   tinted, picto filled); footer 12px 24px, buttons 36px / 120px in sentence
   case, cancel and previous as neutral outlines, next / save / process in
   the module colour (disabled: sunken grey).
   Display toggled by the JS and never set here: `.js-tab`, the footer
   buttons, `.breadcrumb-item` (`.hide()`), `.js-item-comparison`,
   `.js-item-card-new-msg`, `.js-error-not-process-selected`, the
   `d-none` / `d-flex` duplicate warnings and accordion items.
   ------------------------------------------------------------------------- */
html.ds-on body .modal:has(.lead-item-process-modal) .modal-body {
    padding: 20px 24px;  /* 40px */
}
/* Width capped (2026-11-19, user request: full width on very wide screens):
   `.modal-xxl` is 95% of the window (lead_scss), i.e. 2432px at 2560. Capped
   at 1368px, the 1440px width (content 1300px + the 68px dialog padding left
   for the side menu): unchanged up to 1440, centred beyond */
html.ds-on body .modal:has(.lead-item-process-modal) .modal-dialog {
    --bs-modal-width: min(95%, 1368px);
}

/* Steps */
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs {
    gap: 6px;
    margin-bottom: 20px !important;  /* mb-4 utility !important */
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item {
    margin-right: 22px;
    padding: 4px 14px 4px 4px;
    border-radius: var(--ds-radius-pill) !important;
    color: var(--ds-text-muted);
    font-size: calc(1rem * var(--ds-text-scale));  /* 20px */
    font-weight: 500;
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item::before {
    width: 26px;
    height: 26px;
    border-width: 1px;
    content: counter(total);  /* letters (upper-alpha); hidden steps are not counted */
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item:not(.done):not(.active)::before {
    border-color: var(--ds-border);
    background-color: var(--ds-surface);
    color: var(--ds-text-muted);
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item::after {
    right: -20px;
    content: "\203A";  /* single chevron, was ">" */
    font-size: calc(.9286rem * var(--ds-text-scale));
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item.hidden_rafter::after,
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item:last-child::after {
    content: "";
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item.done {
    color: var(--ds-success);
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item.done::before {
    background-color: var(--ds-success);  /* check mask of the shared rule */
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item.active {
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong);
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .breadcrumb-tabs .breadcrumb-item.active::before {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary);
    color: #FFFFFF;
}

/* Aside summary (accordion cloned by the JS) */
html.ds-on body .modal:has(.lead-item-process-modal) .js-aside-summary {
    box-shadow: var(--ds-shadow-1);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-aside-summary .accord-header {
    min-height: 42px;
    padding: 8px 14px;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-aside-summary .accord-header h2 {
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-aside-summary .accord-item.active .accord-header h2 {
    color: var(--ds-primary-strong);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-aside-summary .accord-body {
    padding: 4px 14px 12px;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-duplicate-found-warning {
    --red-100: var(--ds-warning-soft);  /* bg-red-100 / c-red-500 utilities */
    --red-500: var(--ds-accent-strong);
    border-radius: var(--ds-radius-md) !important;
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* fw-medium utility !important */
}

/* Facts tables (aside summary, final summary) */
html.ds-on body .modal:has(.lead-item-process-modal) .table-no-style-sm :is(th, td) {
    padding: 3px 0;
    font-size: calc(.9286rem * var(--ds-text-scale));
    vertical-align: top;
}
html.ds-on body .modal:has(.lead-item-process-modal) .table-no-style-sm th {
    width: 42%;
    padding-right: 12px;
    color: var(--ds-text-muted);
    font-weight: 400;
}
html.ds-on body .modal:has(.lead-item-process-modal) .table-no-style-sm td {
    color: var(--ds-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Contact and vehicle forms */
html.ds-on body .modal:has(.lead-item-process-modal) .js-form > h5 {
    margin: 0 0 14px !important;  /* mb-3 utility !important */
    color: var(--ds-text);
    font-size: calc(1.0714rem * var(--ds-text-scale));
    font-weight: 400;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form form.row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 12px;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form .form-label {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form :is(.form-control, .form-select) {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: calc(.9286rem * var(--ds-text-scale));
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form .invalid-feedback {
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
}
/* Telephone error under the number (2026-11-30, user report): the message
   shares a `d-flex` line with the number field, it sat on its right and
   squeezed the field and the country code (code cut to "+..."); the line
   now wraps, the message takes the full width under the number; the code
   keeps its height (the line, as high as number + message, stretched it) */
html.ds-on body .modal:has(.lead-item-process-modal) .js-form .d-flex:has(> .d-flex > #phone) {
    align-items: flex-start;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form .d-flex:has(> #phone) {
    flex-wrap: wrap;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form .d-flex:has(> #phone) > .invalid-feedback {
    flex: 0 0 100%;
}
/* Country code 140px: at 118px (shared `flex-fill`) the flag, the code,
   the clear cross and the arrow left 80px for 92px of flag + code: "+..."
   even without an error */
html.ds-on body .modal:has(.lead-item-process-modal) .js-form .d-flex:has(> #phoneCodeSelect) {
    flex: 0 0 140px !important;  /* legacy .flex-fill !important */
}
/* Country code joined to the number (2026-11-30, user request, as on the
   Workshop contact form): were two fields side by side, the code 34px high
   with 8px corners, the number 32px with 6px corners; now one 32px field,
   outer corners 6px, no border between them (the code loses its right
   border, the number keeps its left one: its validation colour shows) */
html.ds-on body .modal:has(.lead-item-process-modal) .js-form #phoneCodeSelect + .select2 .select2-selection--single {
    --height: 32px;  /* read by the legacy `select + .select2 .select2-selection--single` height */
    border-right: 0;
    border-radius: 6px 0 0 6px !important;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-form #phone {
    border-radius: 0 6px 6px 0 !important;
}
/* Country code list (2026-11-30, user request): the dropdown took the 140px
   of the field, country names and codes wrapped on two lines ("Ouganda /
   (+256)"); 300px at least, overlapping the number field (the Select2
   inline width stays, `min-width` wins). The Workshop contact form gets
   the same through the `auto-width` attribute of its select */
html.ds-on body .modal:has(.lead-item-process-modal) .select2-dropdown:has(#select2-phoneCodeSelect-results) {
    min-width: 300px;
}

/* Duplicates: cards */
html.ds-on body .modal:has(.lead-item-process-modal) .js-duplicate-form > h5 {
    --blue-500: var(--ds-text);  /* c-blue-500 utility */
    margin-bottom: 10px !important;  /* mb-3 utility !important */
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-list {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner {
    padding: 10px 14px !important;  /* px-3 py-2 utilities !important */
    transition: border-color .15s, background-color .15s;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner:hover {
    border-color: var(--ds-primary) !important;  /* border-gray-200 utility !important */
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner .js-item-title {
    --blue-500: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card.active .js-item-card-inner .js-item-title {
    --blue-500: var(--ds-primary-strong);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner p {
    color: var(--ds-text-muted);
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
    line-height: 1.4;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner .js-item-detail figure {
    --fig-size: 32px;
    width: 32px;
    height: 32px;
    border-color: transparent !important;  /* figure-circle border */
    background-color: var(--ds-primary-soft) !important;  /* bg-white utility !important */
    color: var(--ds-primary);
}
/* Parts: linked e-contacts (tooltip button, shown when the contact has some) */
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner .js-item-econtact-list figure {
    --blue-500: var(--ds-primary);  /* c-blue-500 utility */
    --fig-size: 28px;
    width: 28px;
    height: 28px;
    border-color: transparent !important;  /* figure-circle border */
    background-color: var(--ds-primary-soft);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-inner .js-item-econtact-list:hover figure {
    --blue-500: #FFFFFF;
    background-color: var(--ds-primary);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-new .js-item-card-inner {
    border-style: dashed !important;
    border-color: var(--ds-border-strong) !important;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-new .js-item-card-inner :is(h5, figure) {
    --blue-500: var(--ds-primary);
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-new.active .js-item-card-inner {
    border-style: solid !important;
    border-color: var(--ds-primary) !important;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-card-new-msg {
    --green-avocado-100: var(--ds-info-soft);  /* bg / c utilities */
    --green-jade-700: var(--ds-info);
    padding: 12px 14px !important;  /* px-3 py-2 utilities !important */
    border-radius: var(--ds-radius-md) !important;
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 500;
}

/* Duplicates: comparison table */
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison {
    --gray-200: var(--ds-surface-2);  /* bg-gray-200 / bg-gray-100 utilities */
    --gray-100: var(--ds-surface);
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--ds-radius-md) !important;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison thead th {
    height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid var(--ds-border);
    color: var(--ds-text-muted);
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison tbody :is(th, td) {
    height: 40px;
    padding: 4px 12px;
    border-bottom: 1px solid var(--ds-divider);
    font-size: calc(.9286rem * var(--ds-text-scale));
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison tbody tr:last-child :is(th, td) {
    border-bottom: 0;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison tbody th {
    width: 22%;
    color: var(--ds-text-muted);
    font-weight: 500;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison .item-field-value-inner {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px !important;
    background-color: transparent;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison .item-field-value-inner .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 0;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison .item-field-value-inner .form-check-input {
    flex: 0 0 auto;  /* was squeezed by long values */
    float: none;
    margin: 0;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison .item-field-value-inner .form-check-label {
    min-width: 0;
    overflow-wrap: anywhere;  /* long e-mails */
}
/* Two value columns of the same width (auto layout: 393 / 153px at 1280
   with a long lead address, the existing phone wrapped) */
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison {
    table-layout: fixed;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison thead th:first-child {
    width: 22%;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison td:not([disabled]) .item-field-value-inner:hover {
    border-color: var(--ds-border-strong);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison td:not([disabled]) .item-field-value-inner:has(input:checked) {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-tint);
    color: var(--ds-primary-deep);
    font-weight: 500;
}
/* Same value on both sides (one cell, `disabled` attribute set by the JS):
   muted, its radio (checked, still submitted) not drawn */
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison td[disabled] .item-field-value-inner {
    color: var(--ds-text-muted);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-comparison td[disabled] .form-check-input {
    width: 0;
    margin-right: -8px;
    opacity: 0;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-item-no-value {
    color: var(--ds-text-muted);
    font-style: italic;
}

/* Radios: unchecked white (the processing ones were filled) */
html.ds-on body .modal:has(.lead-item-process-modal) .lead-item-process-modal .form-check-input[type="radio"]:not(:checked) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
}
html.ds-on body .modal:has(.lead-item-process-modal) .lead-item-process-modal .form-check-input[type="radio"]:checked {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary);
}

/* Final summary: three white cards with a tinted header */
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="summary"] {
    --gray-100: transparent;  /* bg-gray-100 utility */
    flex-wrap: nowrap;
    column-gap: 12px;
    margin: 0;
    padding: 0 !important;  /* px-2 py-3 utilities !important */
    background-color: transparent;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="summary"] > .col {
    padding: 14px 16px;
    border: 1px solid var(--ds-border) !important;  /* border-2 border-end border-black utilities !important */
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="summary"] > .col > h5 {
    --blue-500: var(--ds-primary-strong);
    margin: -14px -16px 10px !important;  /* mb-3 utility !important */
    padding: 10px 16px;
    border-bottom: 1px solid var(--ds-divider);
    border-radius: 12px 12px 0 0 !important;
    background-color: var(--ds-primary-tint);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* fw-bold utility !important */
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="summary"] td.fw-bold {
    padding-top: 10px !important;  /* pt-3 utility !important */
    color: var(--ds-text);
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
    font-weight: 600 !important;  /* fw-bold utility !important */
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="summary"] td:not(.fw-bold):first-child {
    padding-right: 12px;  /* "wished time :" was glued to the date */
    color: var(--ds-text-muted);
    font-weight: 400;
    white-space: nowrap;
}
/* Parts message: line breaks kept, as in the aside summary (inline pre-line there) */
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="summary"] .js-summary-message > .js-summary-field {
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 1.5;
    white-space: pre-line;
}

/* Processing choices: horizontal option cards */
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="process"] .hstack {
    gap: 12px !important;  /* gap-4 utility !important */
}
/* Three choices (Parts: communication, quote / order, report): the row is
   wider than its tab (`w-25`, about 550px at 1280: cards of 174px, labels cut)
   and stays centred on it; the tab itself is shown / hidden by the JS */
html.ds-on body .modal:has(.lead-item-process-modal) .js-tab[data-step="process"] .hstack:has(> .js-process-choice:nth-child(3)) {
    width: 780px;
    max-width: none;  /* `.row > *` */
    margin-left: calc(50% - 390px);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice {
    flex: 1 1 0;  /* equal cards (`w-50` each) */
    min-width: 0;
    flex-direction: row !important;  /* vstack */
    align-items: center !important;  /* align-items-center: kept, restated with the direction */
    gap: 12px !important;  /* gap-2 utility !important */
    padding: 14px 16px !important;  /* p-4 utility !important */
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice:hover {
    box-shadow: var(--ds-shadow-2) !important;  /* .shadow exception */
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice figure {
    --blue-500: var(--ds-primary);  /* c-blue-500 utility */
    --fig-size: 44px;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border-radius: 12px !important;
    background-color: var(--ds-primary-soft);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice .form-check {
    flex: 1 1 auto;
    flex-direction: row !important;  /* vstack */
    align-items: center !important;
    justify-content: space-between !important;  /* justify-content-around utility !important */
    gap: 10px;
    text-align: left !important;  /* text-center utility !important */
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice label {
    --blue-500: var(--ds-text);
    margin: 0 !important;  /* mb-1 utility !important */
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice .form-check-input {
    flex: 0 0 auto;
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice.active figure {
    --blue-500: #FFFFFF;
    background-color: var(--ds-primary);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-process-choice.active label {
    --blue-500: var(--ds-primary-deep);
}
html.ds-on body .modal:has(.lead-item-process-modal) .js-error-not-process-selected {
    --red-500: var(--ds-danger);  /* c-red-500 utility */
    margin-top: 12px !important;  /* mt-4 utility !important */
    padding: 8px 12px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-danger-soft);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600;
    text-align: center;
}

/* Footer */
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer {
    gap: 10px;
    padding: 12px 24px;
}
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer > * {
    margin: 0;
}
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer > p {
    color: var(--ds-text-muted);
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
}
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer .btn {
    min-width: 120px;
    height: 36px;
    text-transform: lowercase;
}
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer .btn::first-letter {
    text-transform: uppercase;
}
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer :is(.btn-outline-danger, .js-btn-previous) {
    --bs-btn-color: var(--ds-text);
    --bs-btn-bg: var(--ds-surface);
    --bs-btn-border-color: var(--ds-border-strong);
    --bs-btn-hover-color: var(--ds-text);
    --bs-btn-hover-bg: var(--ds-surface-2);
    --bs-btn-hover-border-color: var(--ds-border-strong);
    --bs-btn-active-color: var(--ds-text);
    --bs-btn-active-bg: var(--ds-surface-sunken);
    --bs-btn-active-border-color: var(--ds-border-strong);
}
html.ds-on body :is(.modal:has(.lead-item-process-modal), #ReportModal, #QuoteOrCommandModal) .modal-footer :is(.js-btn-next, .js-btn-save, .js-btn-processing) {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--ds-primary);
    --bs-btn-border-color: var(--ds-primary);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--ds-primary-strong);
    --bs-btn-hover-border-color: var(--ds-primary-strong);
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--ds-primary-strong);
    --bs-btn-active-border-color: var(--ds-primary-strong);
    --bs-btn-disabled-color: var(--ds-text-muted);
    --bs-btn-disabled-bg: var(--ds-surface-sunken);
    --bs-btn-disabled-border-color: var(--ds-surface-sunken);
    --bs-btn-disabled-opacity: 1;
}

/* -------------------------------------------------------------------------
   Parts lead processing, second modals (`?mp=lead`, opened by the
   "process" choice of the lead processing modal; templates
   `.js-quote-or-command-process-modal` and `.js-report-process-modal` of
   _tpl_lead_item_process_modal.php in ModalLight with an id:
   workshop/class/script/QuoteOrCommandModal.js `#QuoteOrCommandModal`,
   ReportModal.js `#ReportModal`), 2026-11-19, same look as the processing
   modal above (the footer rules are shared with it). Was:
   - quote / order: grey band with a bold label and a 12px hint, contact and
     message on grey wells with bold copper titles, copy button as an
     outlined circle;
   - report: 40px padding, native textarea with a square grey border.
   Now: transaction band as a full-width band (`--ds-surface-2`, divider),
   label 13px semibold, hint 12px muted; contact and message as white cards
   with a tinted header (copy button as a 28px soft circle on the right),
   facts muted / medium, message keeps its line breaks; report padding
   20px 24px, label 13px semibold, textarea as a design system field
   (border, 10px corners, focus ring).
   ------------------------------------------------------------------------- */
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .bg-gray-200 {
    padding: 14px 24px !important;  /* py-2 px-5 utilities !important */
    border-bottom: 1px solid var(--ds-divider);
    background-color: var(--ds-surface-2) !important;  /* bg-gray-200 utility !important */
}
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .bg-gray-200 > p.fw-bold {
    margin: 0 0 6px !important;  /* mb-0 mt-2 utilities !important */
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* fw-bold utility !important */
}
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .bg-gray-200 > p.fw-bold exp {
    color: var(--ds-danger);
}
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .bg-gray-200 > .small-text {
    margin: 6px 0 0 !important;  /* mt-1 utility !important */
    color: var(--ds-text-muted);
    font-size: max(calc(.8571rem * var(--ds-text-scale)), var(--ds-text-min));
}
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .bg-gray-200 > .small-text a {
    --blue-400: var(--ds-primary);  /* c-blue-400 utility */
    font-weight: 600;
}
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .hstack {
    gap: 12px !important;  /* gap-2 utility !important */
    padding: 16px 24px 20px !important;  /* px-4 py-2 utilities !important */
}
html.ds-on body #QuoteOrCommandModal .js-quote-or-command-process-modal > .hstack > div {
    padding: 14px 16px !important;  /* p-2 utility !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface) !important;  /* bg-gray-100 utility !important */
    box-shadow: var(--ds-shadow-1);
}
html.ds-on body #QuoteOrCommandModal .js-summary-contact > .hstack,
html.ds-on body #QuoteOrCommandModal .js-summary-message > h5 {
    min-height: 40px;
    margin: -14px -16px 10px !important;  /* h5 margin, mb-0 utility !important */
    padding: 6px 12px 6px 16px;
    border-bottom: 1px solid var(--ds-divider);
    border-radius: 12px 12px 0 0 !important;
    background-color: var(--ds-primary-tint);
}
html.ds-on body #QuoteOrCommandModal .js-summary-message > h5 {
    display: flex;
    align-items: center;
}
html.ds-on body #QuoteOrCommandModal :is(.js-summary-contact, .js-summary-message) h5 {
    --blue-500: var(--ds-primary-strong);  /* c-blue-500 utility */
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* fw-bold utility !important */
}
html.ds-on body #QuoteOrCommandModal .js-summary-contact .js-copy figure {
    --blue-500: var(--ds-primary);
    --fig-size: 28px;
    width: 28px;
    height: 28px;
    border-color: transparent !important;  /* figure-circle border */
    background-color: var(--ds-primary-soft);
}
html.ds-on body #QuoteOrCommandModal .js-summary-contact .js-copy:hover figure {
    --blue-500: #FFFFFF;
    background-color: var(--ds-primary);
}
html.ds-on body #QuoteOrCommandModal .table-no-style-sm :is(th, td) {
    padding: 3px 0;
    font-size: calc(.9286rem * var(--ds-text-scale));
    vertical-align: top;
}
html.ds-on body #QuoteOrCommandModal .table-no-style-sm th {
    width: 32%;
    padding-right: 12px;
    color: var(--ds-text-muted);
    font-weight: 400;
}
html.ds-on body #QuoteOrCommandModal .table-no-style-sm td {
    color: var(--ds-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}
html.ds-on body #QuoteOrCommandModal .js-summary-message > .js-summary-field {
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 1.5;
}
html.ds-on body #ReportModal .modal-body {
    padding: 20px 24px;  /* 40px */
}
html.ds-on body #ReportModal .js-report-process-modal > p.fw-bold {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* fw-bold utility !important */
}
html.ds-on body #ReportModal .js-report-text {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--ds-border-strong);
    border-radius: 10px !important;
    background-color: var(--ds-surface);
    color: var(--ds-text);
    font-size: calc(.9286rem * var(--ds-text-scale));
    line-height: 1.5;
    resize: vertical;
}
html.ds-on body #ReportModal .js-report-text::placeholder {
    color: var(--ds-text-muted);
}
html.ds-on body #ReportModal .js-report-text:focus {
    border-color: var(--ds-primary);
    outline: 0;
    box-shadow: var(--ds-focus-ring);
}

/* ==== END FAMILY: Workshop - leads and requester - insert above ==== */


/* =========================================================================
   FAMILY: Workshop - parameters
   Parameters pages (workshops, schedules, statuses, users and profiles,
   communication templates, licences...).
   ========================================================================= */

/* PARAMETERS - form modals (`ds-param-modal` on the body template of a
   ModalLight; 2026-11-11, parameters group 1). Create / edit a workshop
   (_tpl_modal_workshop_insert_update.php), the schedules
   (_tpl_modal_schedule_insert_update.php), add a status
   (_tpl_modal_status_insert.php), create / edit an intervention setting
   (_tpl_modal_intervention_config_insert_update.php). Look of the absence
   modal (family "interventions and plannings"), own selectors. Was: padding
   40px + 12px (the workshop form scrolled), labels 14px regular, fields
   29px, grey square bands, footer buttons 29px, cancel in red or module
   outline, mandatory note 14px. Now: padding 20px 24px, labels 13px
   semibold in the text colour with a danger star, fields / selects /
   Select2 32px 13px, check labels 13px, grey bands as light rounded wells
   (`ds-param-well`) with 13px semibold titles (`ds-param-section-t`);
   footer 12px 24px, buttons 36px / 120px 10px apart, cancel as a neutral
   outline, mandatory note 12px muted on the left. Page details (schedules
   bands and slots, status colour, intervention workshops) in the page
   sheets parameters-<view>.css. */
html.ds-on body .modal:has(.modal-body :is(.ds-param-modal, .ds-param-confirm, .ds-param-text)) .modal-body {
    padding: 20px 24px;
}
/* Forms in a scrolling `.js-form-field` wrapper (workshop, status): the
   wrapper keeps 8px on the sides for the row gutters (its form row overflowed
   by 8px and scrolled horizontally), the body gives the remaining 16px */
html.ds-on body .modal:has(.modal-body .ds-param-modal > .js-form-field) .modal-body {
    padding: 20px 16px;
}
html.ds-on body .ds-param-modal > .js-form-field {
    padding: 0 8px !important;  /* legacy .p-3 !important */
}
html.ds-on body .ds-param-modal form.row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 12px;
}
html.ds-on body .ds-param-modal :is(.form-label, .js-name-list-of-workshop) {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600;
}
html.ds-on body .ds-param-modal label sup,
html.ds-on body .ds-param-modal .js-name-list-of-workshop sup {
    top: -.2em;
    color: var(--ds-danger);
    font-size: 12px;
}
html.ds-on body .ds-param-modal label:is(.required-field-label, :has(+ :is(input, select)[required]))::after {
    color: var(--ds-danger);
}
html.ds-on body .ds-param-modal :is(input.form-control:not([type="color"], [type="checkbox"], [type="radio"]), select.form-control, .form-select) {
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 13px;
}
html.ds-on body .ds-param-modal .select2-selection--single {
    --height: 32px;  /* read by the legacy Select2 height !important */
}
html.ds-on body .ds-param-modal .select2-selection .select2-selection__rendered {
    font-size: 13px;
}
html.ds-on body .ds-param-modal .form-check-label {
    font-size: 13px;
}
html.ds-on body .ds-param-modal .ds-param-well {
    padding: 16px !important;  /* legacy .p-4 / .p-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-200 / .bg-gray-100 !important */
}
html.ds-on body .ds-param-modal .row.ds-param-well {
    margin-right: 0;
    margin-left: 0;
}
/* A well that is a column of a form row: aligned on the fields (its
   background covered the 8px gutters) */
html.ds-on body .ds-param-modal .row > .ds-param-well[class*="col-"] {
    width: calc(100% - var(--bs-gutter-x));
    margin-right: calc(var(--bs-gutter-x) * .5);
    margin-left: calc(var(--bs-gutter-x) * .5);
}
html.ds-on body .ds-param-modal .ds-param-section-t {
    margin-bottom: 10px;
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .modal:has(.modal-body :is(.ds-param-modal, .ds-param-confirm, .ds-param-text)) .modal-footer {
    gap: 10px;
    padding: 12px 24px;
}
html.ds-on body .modal:has(.modal-body :is(.ds-param-modal, .ds-param-confirm, .ds-param-text)) .modal-footer > .btn {
    height: 36px;
    min-width: 120px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 34px;
}
/* Cancel as a neutral outline; "overwrite the differences" of the profile /
   user difference modal (`.js-refuse-difference`, red outline) is a
   decision that saves: it keeps its colour */
html.ds-on body .modal:has(.modal-body :is(.ds-param-modal, .ds-param-confirm, .ds-param-text)) .modal-footer > :is(.btn-outline-danger, .btn-outline-primary):not(.js-refuse-difference) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body :is(.ds-param-modal, .ds-param-confirm, .ds-param-text)) .modal-footer > :is(.btn-outline-danger, .btn-outline-primary):not(.js-refuse-difference):hover {
    background-color: var(--ds-surface-2);
}
html.ds-on body .modal:has(.modal-body .ds-param-modal) .modal-footer > :is(.ds-param-mandatory, p.me-auto:not([class*="js-"])) {
    margin: 0;
    color: var(--ds-text-muted);
    font-size: 12px;
}

/* PARAMETERS - confirmation modals with a picto (`ds-param-confirm`, danger
   variant `is-danger`) and text modals (`ds-param-text`); 2026-11-11,
   parameters group 2. Body templates of tpl_user_profile_list.php (delete /
   disable / enable users, set a profile, licence difference, delete a
   profile confirmation, privileges saved, profile / user difference),
   _tpl_modal_profile_delete.php (delete a profile with users: new profile
   per user) and tpl_user_create_update.php (profile change, technician /
   receptionist warning). Body, footer and button roles: rules above.
   Was: padding 40px, 38px module-colour warning picto, bold 14px sentences,
   lists in grey square bands, questions and notes in the module colour,
   tables with grey borders and a module-colour header, centred content
   (`justify-content-center`), inline `gap: 1rem` (removed). Now: the picto
   in a 40px circle (warning tint, danger tint for the deletions) beside the
   text, sentence 14px semibold, lists as light rounded wells 13px, red
   notes 13px, question 14px semibold in the text colour; tables as a light
   framed list (header 34px light surface 12px semibold muted, rows 13px with
   dividers, selects 32px). */
html.ds-on body .ds-param-confirm {
    justify-content: flex-start !important;  /* legacy .justify-content-center !important */
    font-size: 14px;
}
html.ds-on body .ds-param-confirm > div {
    flex: 1 1 auto;
}
html.ds-on body .ds-param-confirm :is(.d-flex, .hstack):has(> figure.figure-lg) {
    gap: 14px !important;  /* legacy .gap-2 !important */
}
html.ds-on body .ds-param-confirm :is(.d-flex, .hstack):has(> figure.figure-lg) > figure.figure-lg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0 !important;  /* legacy .me-2 !important */
    padding: 9px !important;  /* legacy .p-0 !important */
    border-radius: 50% !important;
    background-color: var(--ds-warning-soft);
    color: var(--ds-warning) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .ds-param-confirm.is-danger :is(.d-flex, .hstack):has(> figure.figure-lg) > figure.figure-lg {
    background-color: var(--ds-danger-soft);
    color: var(--ds-danger) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .ds-param-confirm :is(.d-flex, .hstack):has(> figure.figure-lg) > figure.figure-lg + * {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 10px;  /* first line on the centre of the 40px picto */
}
html.ds-on body .ds-param-confirm :is(.d-flex, .hstack):has(> figure.figure-lg) > figure.figure-lg + p {
    align-self: center;
    margin: 0;
    padding-top: 0;
}
/* Centred variant (communication template and advertising deletions,
   2026-11-11, group 3): body `.p-0` + inner `.p-5.vstack.align-items-center`
   (48px, centred); now 20px 24px, left-aligned, question
   `.js-action-confirmation` 14px semibold 12px under the sentence */
html.ds-on body .ds-param-confirm > .p-5.vstack {
    align-items: stretch !important;  /* legacy .align-items-center !important */
    padding: 20px 24px !important;  /* legacy .p-5 !important */
}
html.ds-on body .ds-param-confirm > .p-5.vstack > .hstack {
    justify-content: flex-start !important;  /* legacy .justify-content-center !important */
}
html.ds-on body .ds-param-confirm .js-action-confirmation {
    padding-top: 12px !important;  /* legacy .pt-4 !important */
    color: var(--ds-text);
    font-size: 14px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-param-confirm :is(p, h4) {
    margin: 0 0 10px;
}
html.ds-on body .ds-param-confirm :is(p.fw-bold, .js-main-text, h4) {
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important (h4) */
    font-size: 14px;
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body .ds-param-confirm :is(.bg-gray-100, div:has(> .js-user-list)) {
    margin: 0 0 12px !important;  /* legacy .mb-4 / .mb-3 / .mt-1 !important */
    padding: 8px 14px !important;  /* legacy .p-2 !important */
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2) !important;  /* legacy .bg-gray-100 !important */
    font-size: 13px;
}
html.ds-on body .ds-param-confirm .js-user-list > li {
    padding: 2px 0;
}
html.ds-on body .ds-param-confirm .c-red-500 {
    margin: 0 0 10px !important;  /* legacy .mb-3 !important */
    font-size: 13px;
}
html.ds-on body .ds-param-confirm .d-flex:has(> .c-red-500) {
    gap: 6px;
    margin-top: 10px !important;  /* legacy .mt-2 !important */
}
html.ds-on body .ds-param-confirm .d-flex:has(> .c-red-500) > * {
    margin: 0 !important;  /* legacy .me-2 / .mb-3 !important: the gap spaces them */
}
html.ds-on body .ds-param-confirm :is(.js-ask-text, p.c-gray-900, p.c-blue-500) {
    margin-bottom: 0;
    color: var(--ds-text) !important;  /* legacy .c-blue-500 / .c-gray-900 !important */
    font-size: 14px;
    font-weight: 600 !important;  /* legacy .fw-bold / .fw-bolder !important */
}
html.ds-on body .ds-param-confirm p.c-blue-500.mb-4 {
    margin-bottom: 12px !important;  /* legacy .mb-4 !important (before a table) */
}
html.ds-on body .ds-param-confirm p.c-gray-900 b {
    font-weight: 600;
}
html.ds-on body .ds-param-table {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
html.ds-on body .ds-param-table thead {
    background-color: transparent !important;  /* legacy .bg-blue-100 !important */
}
html.ds-on body .ds-param-table th {
    height: 34px;
    padding: 0 12px !important;  /* legacy .p-2 !important */
    border: 0;
    border-bottom: 1px solid var(--ds-divider);
    background-color: var(--ds-surface-2);
    color: var(--ds-text-muted) !important;  /* legacy .c-blue-500 !important */
    font-size: 12px;
    font-weight: 600;
}
html.ds-on body .ds-param-table th:first-child {
    border-top-left-radius: 11px !important;
}
html.ds-on body .ds-param-table th:last-child {
    border-top-right-radius: 11px !important;
}
html.ds-on body .ds-param-table td {
    height: 40px;
    padding: 4px 12px !important;  /* legacy .p-2 !important */
    border: 0;
}
html.ds-on body .ds-param-table tbody tr + tr td {
    border-top: 1px solid var(--ds-divider);
}
html.ds-on body .ds-param-table .form-select {
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 13px;
}
html.ds-on body .ds-param-text p {
    margin: 0 0 10px;
    font-size: 14px;
}
html.ds-on body .ds-param-text p:last-child {
    margin-bottom: 0;
}
html.ds-on body .ds-param-text :is(.fw-bold, .c-blue-500) {
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}

/* PARAMETERS - page header actions and search fields (2026-11-11,
   parameters group 5). `ds-param-head-btn` on the round figures of the page
   headers / toolbars (workshops, statuses, communication templates,
   intervention settings, users and profiles export, licences edit and
   legend): were 38px circles outlined in the module colour; now 36px soft
   squares with 10px corners, filled on hover and while active (licences
   edit mode adds `.active`), the recall campaign counter kept. `ds-param-search`
   on the search input groups (intervention settings, licences): one 36px
   field with a strong border and 10px corners (was two 38px halves with
   6px corners), 16px muted magnifier, module colour border when focused
   (the focus ring rule of the group is above, section FORMS). */
html.ds-on body .ds-param-head-btn {
    margin-bottom: 0 !important;  /* legacy .mb-2 !important (licences toolbar) */
}
html.ds-on body .ds-param-head-btn > .figure-circle {
    --fig-size: 36px;  /* read by width / height / min-* of main_scss */
    padding: 8px !important;  /* legacy .figure-circle-lg.figure-circle !important */
    border-color: transparent;
    border-radius: 10px !important;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
    transition: background-color .15s, color .15s;
}
html.ds-on body .ds-param-head-btn:is(:hover, .active):not(:disabled) > .figure-circle {
    background-color: var(--ds-primary);
    color: #FFFFFF !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body .ds-param-head-btn:disabled > .figure-circle {
    opacity: .5;
}
/* Row and block actions of the parameters pages (visual audit follow-up,
   2026-11-11, user request): edit / delete / add figures of the rows,
   communication cards and categories, standby access links and QR code,
   licences statistics exports, users list actions. Were circles outlined in
   the module colour (orange for the user creation); now squares with 8px
   corners on the soft module tint (accent tint for the user creation), filled
   on hover; sizes unchanged. Not touched: licence state figures of the users
   table (`.js-user-license`, data), red warning figures, "i" information
   figures (not buttons). */
html.ds-on body #Main:is(.workshop-list, .schedule-list, .status, .intervention-config-list, .user-profile-list, .communication-template, .standby-screen, .manufacturer-url-list, .license-manager) :is(.btn-figure, .action-btn):not(.js-user-license, .ds-param-head-btn) > figure.figure-circle {
    border-color: transparent;
    border-radius: var(--ds-radius-sm) !important;
    background-color: var(--ds-primary-soft);
    color: var(--ds-primary-strong) !important;  /* legacy .c-blue-500 !important */
    transition: background-color .15s, color .15s;
}
html.ds-on body #Main:is(.workshop-list, .schedule-list, .status, .intervention-config-list, .user-profile-list, .communication-template, .standby-screen, .manufacturer-url-list, .license-manager) :is(.btn-figure, .action-btn):not(.js-user-license, .ds-param-head-btn, :disabled, .disabled):hover > figure.figure-circle {
    background-color: var(--ds-primary);
    color: #FFFFFF !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #Main.user-profile-list :is(.btn-figure, .action-btn) > figure.figure-circle.c-orange-500 {
    background-color: var(--ds-accent-soft);
    color: var(--ds-accent-strong) !important;  /* legacy .c-orange-500 !important */
}
html.ds-on body #Main.user-profile-list :is(.btn-figure, .action-btn):not(:disabled, .disabled):hover > figure.figure-circle.c-orange-500 {
    background-color: var(--ds-accent);
    color: #FFFFFF !important;  /* legacy .c-orange-500 !important */
}
html.ds-on body .ds-param-search {
    flex-wrap: nowrap;
    height: 36px;
    border: 1px solid var(--ds-border-strong);
    border-radius: 10px !important;
    background-color: var(--ds-surface);
}
html.ds-on body .ds-param-search:focus-within {
    border-color: var(--ds-primary);
}
html.ds-on body .ds-param-search > :is(.input-group-text, .form-control) {
    height: 34px;
    border: 0;
    background-color: transparent !important;  /* legacy .bg-white !important */
    box-shadow: none;
}
html.ds-on body .ds-param-search > .input-group-text {
    padding: 0 2px 0 12px;
    border-radius: 10px 0 0 10px !important;
}
html.ds-on body .ds-param-search > .input-group-text figure {
    --fig-size: 16px;  /* read by width / height / min-* of main_scss */
    color: var(--ds-text-muted) !important;  /* legacy .c-gray-600 !important */
}
html.ds-on body .ds-param-search > .form-control {
    padding: 0 12px 0 8px;
    border-radius: 0 10px 10px 0 !important;
    font-size: 14px;  /* page fields: 14px (modal fields: 13px) */
}

/* Bold weight of the parameters pages (font pass, 2026-11-11): the legacy
   `.fw-bold` texts (intervention names, site rows of the accordions,
   communication cards, standby columns, card titles...) were 700 while the
   design system tops at 600 (headings, labels): pages with many bold cells
   (intervention settings: 1 400 bold names) looked heavier than the others.
   600 everywhere on these pages; sizes unchanged. */
html.ds-on body #Main:is(.parameter-list, .workshop-list, .schedule-list, .status, .intervention-config-list, .user-profile-list, .communication-template, .standby-screen, .manufacturer-url-list, .license-manager, .user-create-update, .profile-create-update) .fw-bold {
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}
html.ds-on body #Main:is(.parameter-list, .workshop-list, .schedule-list, .status, .intervention-config-list, .user-profile-list, .communication-template, .standby-screen, .manufacturer-url-list, .license-manager, .user-create-update, .profile-create-update) :is(b, strong) {
    font-weight: 600;  /* `bolder` (700) */
}

/* ==== END FAMILY: Workshop - parameters - insert above ==== */


/* =========================================================================
   FAMILY: Workshop - authentication
   Login page (pages/home/front/tpl_login.php: `?p=home&v=login`, also
   rendered by `?p=home&v=reset_password`) and password reset page
   (pages/home/front/tpl_reset_password.php: link of the "password forgotten"
   e-mail, `public.php?1=...&2=...` -> pages/public/back/reset_password.php),
   with their modals. Both use the Workshop public header (after-sales
   palette in every mode). Here and not in a page sheet: `public.php` sets no
   router `$page`, so the reset page cannot load one. Every rule is scoped to
   `#Main.ds-login` (both pages) or `.ds-login-modal` (modal bodies). The
   public dashboards login (public/pages/login, `public.php?p=login`) also
   carries `ds-login` and adds its own page sheet
   (pages/workshop/public-login.css).
   Look "C - immersive" chosen among 3 live previews (2026-11-11): gradient of
   the module colour on the whole page, white floating card, logo in a round
   badge across the top edge of the card, 44px fields, round SSO buttons.
   CSS only, no change of what the JS reads: `#ViewPassword` /
   `#HidePassword`, `#LoginFormFeedback`, `#SubmitSendMail`, `#MailSent`
   (shown / hidden by the page scripts) and the validation classes
   (`is-invalid`, `border border-danger`) keep their behaviour; neither their
   `display` nor their size is set here.
   ========================================================================= */

/* AUTHENTICATION - local tokens: translucent white / black for the light
   effects on the coloured background (no shared token for them) */
html.ds-on body #Main.ds-login {
    --ds-login-glow: rgba(255, 255, 255, .13);
    --ds-login-shade: rgba(0, 0, 0, .2);
    --ds-login-ring: rgba(255, 255, 255, .25);
    --ds-login-card-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    --ds-login-badge-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

/* AUTHENTICATION - fixed scale: login.scss (loaded by both pages) enlarged
   every text by 20% under 1200px (`body { font-size: 1.2em }`, `input, button
   { font-size: 1.2em !important }`, submit padding / margin `!important`):
   the sizes stay those of the desktop, modal controls included */
@media (max-width: 1199.98px) {
    html.ds-on body:has(#Main.ds-login) {
        font-size: var(--bs-body-font-size);
    }
    html.ds-on body:has(#Main.ds-login) :is(input, button, select, textarea) {
        font-size: calc(1rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important */
    }
}

/* AUTHENTICATION - page: gradient of the module colour (was flat light
   grey). `background-image` only on the login: `.bg-gray-100` sets the colour
   with !important; the reset page has no colour class */
html.ds-on body #Main.ds-login {
    background-color: var(--ds-primary-deep);
    background-image:
        radial-gradient(700px 520px at 88% 12%, var(--ds-login-glow), transparent 62%),
        radial-gradient(900px 700px at 8% 100%, var(--ds-login-shade), transparent 62%),
        linear-gradient(135deg, var(--ds-primary-deep) 0%, var(--ds-primary) 72%, var(--ds-primary-strong) 100%);
}
/* Room above the card for the logo badge (row stays 100% high: `.h-100`).
   No negative gutter margins: the reset page row has no `.m-0` and login.scss
   removes the `#Main` padding, so the card was 4px from the phone edges */
html.ds-on body #Main.ds-login > .row {
    margin-right: 0;
    margin-left: 0;
    padding-top: 56px;
    padding-bottom: 24px;
}

/* AUTHENTICATION - card (was the bare column: 25% wide, 360px at 1440px) */
html.ds-on body #Main.ds-login .ds-login-card {
    position: relative;
    flex: 0 0 auto;
    width: 420px;
    max-width: calc(100% - 32px);
    padding: 64px 40px 32px;
    border-radius: 24px !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-login-card-shadow);
}
/* Logo in a round white badge across the top edge (was above the title) */
html.ds-on body #Main.ds-login .ds-login-logo {
    position: absolute;
    top: -44px;
    left: 50%;
    width: 88px;
    height: 88px;
    margin: 0 !important;  /* legacy .mb-3 !important */
    align-items: center;
    border-radius: 50% !important;
    background-color: var(--ds-surface);
    box-shadow: var(--ds-login-badge-shadow), 0 0 0 6px var(--ds-login-ring);
    transform: translateX(-50%);
}
html.ds-on body #Main.ds-login .ds-login-logo .iziflo-logo {
    width: 46px;
    height: auto;
}
/* Title: 21px (was 24.5px), 28px below (was 48px, .mb-5 !important) */
html.ds-on body #Main.ds-login .ds-login-title {
    margin-bottom: 28px !important;  /* legacy .mb-5 !important */
    color: var(--ds-text);
    font-size: calc(1.5rem * var(--ds-text-scale));
    font-weight: 600;
    letter-spacing: -.01em;
}

/* AUTHENTICATION - forms (login `#LoginForm`, reset `#ResetPasswordForm`) */
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) {
    margin-bottom: 24px !important;  /* legacy .mb-5 !important */
}
html.ds-on body #Main.ds-login #ResetPasswordForm {
    margin-bottom: 0 !important;  /* legacy .mb-5 !important: last block of the card */
}
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) > .mb-4 {
    margin-bottom: 16px !important;  /* legacy .mb-4 !important */
}
/* Labels above the fields, 13px semibold, fixed 20px line (the eye button
   is placed from it) */
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-label {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: calc(.9375rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 20px;
}
/* Fields: 44px, light grey, white with the focus ring (was 29px, white) */
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-control {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ds-border-strong);
    border-radius: 10px !important;
    background-color: var(--ds-surface-2);
    font-size: calc(1rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important */
}
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-control:hover {
    border-color: var(--ds-primary);
}
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-control:focus {
    border-color: var(--ds-primary);
    background-color: var(--ds-surface);
    box-shadow: var(--ds-focus-ring);
}
/* Errors: `is-invalid` (format) and `border border-danger` (wrong login, the
   utility is !important) */
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-control:is(.is-invalid, .border-danger) {
    border-color: var(--ds-danger) !important;  /* legacy .border-danger !important */
    background-color: var(--ds-surface);
}
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-control.is-invalid {
    padding-right: 40px;
    background-position: right 14px center;
}
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--ds-danger-soft);
}
/* Login password (`.password` wrapper with the eye button, IZIFLO login
   only): room for the eye button, no Bootstrap error icon (it sat under the
   eye) */
html.ds-on body #Main.ds-login #LoginForm .password #Password {
    padding-right: 46px;
}
html.ds-on body #Main.ds-login #LoginForm .password #Password.is-invalid {
    background-image: none;
}
html.ds-on body #Main.ds-login :is(#LoginForm, #ResetPasswordForm) .invalid-feedback {
    color: var(--ds-danger);
    font-size: calc(.875rem * var(--ds-text-scale));
}
/* Eye button (show / hide password): only its place changes, centred on the
   44px field (label 20px + 6px, field 44px, button 24px); `display` is set
   by login.js */
html.ds-on body #Main.ds-login .js-toggle-password {
    top: 36px;
    right: 12px;
    margin: 0 !important;  /* legacy login.scss margin-top under 1200px */
    border-radius: 6px !important;
}
html.ds-on body #Main.ds-login .js-toggle-password figure {
    color: var(--ds-text-muted) !important;  /* legacy .c-blue-500 !important */
}
html.ds-on body #Main.ds-login .js-toggle-password:hover figure {
    color: var(--ds-primary) !important;
}
/* Sign in / save: 44px (was 29px) */
html.ds-on body #Main.ds-login :is(#SubmitLog, #SubmitResetPassword) {
    height: 44px;
    margin-top: 8px !important;  /* legacy login.scss !important */
    padding: 0 16px !important;  /* legacy login.scss !important */
    border-radius: 10px !important;
    font-size: calc(1.0625rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important */
    font-weight: 600;
}
/* Stay signed in / password forgotten */
html.ds-on body #Main.ds-login #LoginForm .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding-left: 0;
}
html.ds-on body #Main.ds-login #LoginForm .form-check-input {
    float: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 4px !important;
}
html.ds-on body #Main.ds-login #LoginForm .form-check-label {
    color: var(--ds-text-muted);
    font-size: calc(.9375rem * var(--ds-text-scale));
}
html.ds-on body #Main.ds-login #ForgotPassword {
    color: var(--ds-primary) !important;  /* legacy .text-primary !important */
    font-size: calc(.9375rem * var(--ds-text-scale));
    font-weight: 500;
}
html.ds-on body #Main.ds-login #ForgotPassword u {
    text-decoration: none;
}
html.ds-on body #Main.ds-login #ForgotPassword:hover u {
    text-decoration: underline;
}

/* AUTHENTICATION - login "or sign in with" separator (was a dark 1px line,
   48px below) */
html.ds-on body #Main.ds-login .ds-login-separator {
    margin-bottom: 16px !important;  /* legacy .mb-5 !important */
}
html.ds-on body #Main.ds-login .ds-login-separator .line {
    background-color: var(--ds-border);
}
html.ds-on body #Main.ds-login .ds-login-separator span {
    margin: 0 12px !important;  /* legacy .mx-2 !important */
    color: var(--ds-text-muted);
    font-size: calc(.875rem * var(--ds-text-scale));
}
/* Google / Office 365: 52px round outlined buttons (were 64px with a shadow) */
html.ds-on body #Main.ds-login .ds-login-sso {
    gap: 16px;
}
html.ds-on body #Main.ds-login .ds-login-sso-btn {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 !important;  /* legacy .mx-3 !important */
    padding: 0 !important;  /* legacy .p-2 !important */
    border: 1px solid var(--ds-border-strong);
    border-radius: 50% !important;
    background-color: var(--ds-surface);
    box-shadow: none !important;  /* legacy .shadow !important */
    transition: border-color .15s, background-color .15s;
}
html.ds-on body #Main.ds-login .ds-login-sso-btn:hover {
    border-color: var(--ds-primary);
    background-color: var(--ds-primary-tint);
}
/* The image fills the whole round button (icon kept at 22px by the padding):
   it carries the click handler (`#GoogleConnect`, `#Office365Connect` in
   login.js) and the tooltip (`title` -> `initTooltip()`), which were only on
   the 22px icon: the tooltip sat on the top of the icon, over the button, and
   a click on the ring did nothing. Now the tooltip opens above the button and
   the whole button is clickable (2026-11-11, user request) */
html.ds-on body #Main.ds-login .ds-login-sso-btn img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 14px;
    border-radius: 50% !important;
    object-fit: contain;
}

/* AUTHENTICATION - reset page. Password rules above the form
   (`error_password_not_match` written as an intro, was a 14px paragraph):
   light well, 13px muted */
html.ds-on body #Main.ds-login .ds-reset-rules {
    margin: -8px 0 20px;
    padding: 10px 14px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-surface-2);
    color: var(--ds-text-muted);
    font-size: calc(.9375rem * var(--ds-text-scale));
    line-height: 1.5;
}
/* Expired link: title, two sentences, "receive a new link" button (faded out
   by reset-password.js: only its padding / colours here), then the "link
   sent" message (faded in) as a success callout */
html.ds-on body #Main.ds-login .ds-reset-expired .ds-login-title {
    margin-bottom: 16px !important;  /* legacy .mb-5 !important */
}
html.ds-on body #Main.ds-login .ds-reset-expired > p:not(#MailSent) {
    margin-bottom: 8px;
    color: var(--ds-text-muted);
    font-size: calc(1rem * var(--ds-text-scale));
    line-height: 1.5;
}
html.ds-on body #Main.ds-login #SubmitSendMail {
    margin: 16px 0 0 !important;  /* legacy .mb-3 !important */
    padding: 11px 24px !important;  /* legacy login.scss !important */
    border-radius: 10px !important;
    font-size: calc(1.0625rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important */
    font-weight: 600;
    line-height: 20px;
}
html.ds-on body #Main.ds-login #MailSent {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: var(--ds-radius-md) !important;
    background-color: var(--ds-success-soft);
    color: var(--ds-success) !important;  /* legacy .text-success !important */
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600 !important;  /* legacy .fw-bold !important */
}

/* AUTHENTICATION - phone: lighter card padding */
@media (max-width: 575.98px) {
    html.ds-on body #Main.ds-login .ds-login-card {
        padding: 60px 24px 28px;
    }
}

/* AUTHENTICATION - modals (ModalLight, appended to `body`, outside `#Main`).
   `ds-login-modal` on each body template of tpl_login.php (cloned by
   login.js): forgot password, reset link sent, user not allowed, double
   authentication code (`ds-login-code`), Google / Outlook account not found,
   link to an IZIFLO account, accounts merged, already merged. Frame from the
   shared modal rules; content after the "Modal content" conventions of
   docs/design-system.md, fields 40px as on the page (was 29px). The
   plain-text modals of both pages (generic error, reset success / error)
   take the shared TEXT-ONLY MODALS block. */

/* Every modal of these pages: no side menu here, the dialog kept 68px on
   the left for it (`padding-left: var(--left-menu-width)`, components.scss)
   and sat off-centre */
html.ds-on body:has(#Main.ds-login) .modal .modal-dialog {
    --left-menu-width: 0px;
}
/* One width: 480px (was 500px with the content at 70% under 1400px,
   components.scss `width: 70% !important`, and 800px for the code) */
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-dialog {
    --bs-modal-width: 480px;
}
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-content {
    width: 100% !important;  /* legacy components.scss 70% !important under 1400px */
}
/* Body: 20px 24px (was 40px) */
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-body {
    padding: 20px 24px;
}
html.ds-on body .ds-login-modal {
    color: var(--ds-text);
    font-size: calc(1rem * var(--ds-text-scale));
}
/* Section title in the content (account not found, merge...) */
html.ds-on body .ds-login-modal h3 {
    margin: 0 0 8px;
    color: var(--ds-text);
    font-size: calc(1.0625rem * var(--ds-text-scale));
    font-weight: 600;
}
/* Sentences: 14px in the text colour (were `.c-blue-500` on two modals) */
html.ds-on body .ds-login-modal p {
    margin: 0 0 12px;
    color: var(--ds-text) !important;  /* legacy .c-blue-500 !important */
    line-height: 1.5;
}
html.ds-on body .ds-login-modal p:last-child {
    margin-bottom: 0;
}
html.ds-on body .ds-login-modal b {
    font-weight: 600;
}
/* User not allowed: sentences on the left (were centred), the second one in
   semibold (was `.fw-bolder`) */
html.ds-on body #UserIsNotAllow.ds-login-modal {
    align-items: stretch !important;  /* legacy .align-items-center !important */
}
html.ds-on body #UserIsNotAllow.ds-login-modal p.fw-bolder {
    font-weight: 600 !important;  /* legacy .fw-bolder !important */
}
/* "Click here" of the reset link sent: link in the module colour */
html.ds-on body .ds-login-modal .js-reset-password-try-again {
    color: var(--ds-primary);
}
html.ds-on body .ds-login-modal .js-reset-password-try-again u {
    text-decoration: none;
}
html.ds-on body .ds-login-modal .js-reset-password-try-again:hover u {
    text-decoration: underline;
}
/* Labels above the fields, 13px semibold; fields 40px, light grey, white
   with the focus ring */
html.ds-on body .ds-login-modal .form-label {
    margin-bottom: 6px;
    color: var(--ds-text);
    font-size: calc(.9375rem * var(--ds-text-scale));
    font-weight: 600;
}
html.ds-on body .ds-login-modal input.form-control {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ds-border-strong);
    border-radius: 10px !important;
    background-color: var(--ds-surface-2);
    font-size: calc(1rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important under 1200px */
}
html.ds-on body .ds-login-modal input.form-control:hover:not(:disabled) {
    border-color: var(--ds-primary);
}
html.ds-on body .ds-login-modal input.form-control:focus {
    border-color: var(--ds-primary);
    background-color: var(--ds-surface);
    box-shadow: var(--ds-focus-ring);
}
html.ds-on body .ds-login-modal input.form-control.is-invalid {
    padding-right: 36px;
    border-color: var(--ds-danger);
    background-color: var(--ds-surface);
    background-position: right 12px center;
}
html.ds-on body .ds-login-modal input.form-control:disabled {
    border-color: var(--ds-border);
    background-color: var(--ds-surface-sunken);
    color: var(--ds-text-muted);
}
/* Error messages (shown by login.js: `is-invalid` sibling or `.show()`) */
html.ds-on body .ds-login-modal .invalid-feedback {
    margin-top: 6px;
    color: var(--ds-danger);
    font-size: calc(.875rem * var(--ds-text-scale));
}
/* Link to an account: 12px between the two fields (`.mb-2` !important) */
html.ds-on body #LinkToAccountModal.ds-login-modal > .mb-2 {
    margin-bottom: 12px !important;  /* legacy .mb-2 !important */
}
/* Double authentication code: the fields sat in a `div.form-control` (a
   bordered box, padded) */
html.ds-on body .ds-login-code > .form-control {
    margin-bottom: 16px !important;  /* legacy .mb-4 !important */
    padding: 0;
    background: none;
}
html.ds-on body .ds-login-code > .form-control > .form-control {
    margin-bottom: 12px !important;  /* legacy .mb-2 !important */
}
html.ds-on body .ds-login-code #verifyCode {
    font-size: calc(1.125rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important under 1200px */
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .3em;
}
/* "Continue" (a div, `disabled` class toggled by login.js): drawn as the
   primary button, 40px, sentence case (the text is `strtoupper()`) */
html.ds-on body .ds-login-code .js-valid-btn {
    height: 40px;
    margin-bottom: 16px !important;  /* legacy .mb-4 !important */
    padding: 0 16px !important;  /* legacy .p-2 !important */
    border-radius: 10px !important;
    background-color: var(--ds-primary) !important;  /* legacy .bg-blue-600 !important */
    font-size: calc(1rem * var(--ds-text-scale));
    font-weight: 600;
    line-height: 40px;
    text-transform: lowercase;
    transition: background-color .15s;
}
html.ds-on body .ds-login-code .js-valid-btn::first-letter {
    text-transform: uppercase;
}
html.ds-on body .ds-login-code .js-valid-btn:hover {
    background-color: var(--ds-primary-strong) !important;  /* legacy .bg-blue-600 !important */
}
html.ds-on body .ds-login-code .js-valid-btn.disabled {
    opacity: .45;
    cursor: not-allowed !important;  /* legacy .cursor-pointer !important */
}
html.ds-on body .ds-login-code .js-valid-btn.disabled:hover {
    background-color: var(--ds-primary) !important;  /* legacy .bg-blue-600 !important */
}
/* "Ask for a new code / Resend" and the countdown (`d-none` toggled by
   login.js): 13px muted, link in the module colour */
html.ds-on body .ds-login-code > .d-flex {
    flex-wrap: wrap;
    gap: 4px 12px;
    color: var(--ds-text-muted);
    font-size: calc(.9375rem * var(--ds-text-scale));
}
html.ds-on body .ds-login-code > .d-flex p {
    margin: 0 !important;  /* legacy .me-2 / .mb-0 !important */
    color: var(--ds-text-muted) !important;
}
html.ds-on body .ds-login-code .js-resend {
    color: var(--ds-primary) !important;  /* legacy .c-blue-600 !important */
    font-weight: 600;
}
html.ds-on body .ds-login-code .js-resend:hover {
    text-decoration: underline;
}
html.ds-on body .ds-login-code .js-timer figure {
    margin-right: 6px !important;  /* legacy .me-2 !important */
    color: var(--ds-text-muted) !important;  /* legacy .c-blue-500 !important */
}
/* Footer: buttons 36px / 120px, 10px apart, sentence case (the ModalLight
   labels are upper case), cancel as a neutral outline (was a red outline) */
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-footer {
    gap: 10px;
    padding: 12px 24px;
}
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-footer > .btn {
    height: 36px;
    min-width: 120px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-size: calc(1rem * var(--ds-text-scale)) !important;  /* legacy login.scss !important under 1200px */
    line-height: 34px;
    text-transform: lowercase;
}
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-footer > .btn::first-letter {
    text-transform: uppercase;
}
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-footer > :is(.btn-outline-danger, .btn-outline-primary, .btn-outline-secondary) {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .ds-login-modal) .modal-footer > :is(.btn-outline-danger, .btn-outline-primary, .btn-outline-secondary):hover {
    background-color: var(--ds-surface-2);
}
/* Double authentication: "Continue" in the content is the main action, the
   footer "Close" (ModalLight `btn-primary`) becomes a neutral outline */
html.ds-on body .modal:has(.modal-body > .ds-login-code) .modal-footer > .btn-primary {
    border-color: var(--ds-border-strong);
    background-color: var(--ds-surface);
    color: var(--ds-text);
}
html.ds-on body .modal:has(.modal-body > .ds-login-code) .modal-footer > .btn-primary:hover {
    background-color: var(--ds-surface-2);
}

/* ==== END FAMILY: Workshop - authentication - insert above ==== */


/* =========================================================================
   FAMILY: Parts - home, catalog and order tracking
   Parts home, catalog (categories, products, compatibilities, product form
   and translation), order tracking.
   ========================================================================= */

/* ==== END FAMILY: Parts - home, catalog and order tracking - insert above ==== */


/* =========================================================================
   FAMILY: Parts - e-contacts, leads and parameters
   E-contact form and sheet, Parts leads, Parts parameters (ad banners...).
   ========================================================================= */

/* ==== END FAMILY: Parts - e-contacts, leads and parameters - insert above ==== */
