/* Custom styles for Banquet app */

/* Drag-and-drop styles for quote lines */
.field-collection-item {
    display: flex;
    align-items: stretch;
}

.field-collection-item > .accordion-item {
    flex: 1;
}

.drag-handle {
    cursor: grab;
    padding: 0 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.drag-handle:hover {
    color: #495057;
    background-color: #e9ecef;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: #e9ecef;
}

.sortable-chosen {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.sortable-drag {
    opacity: 1;
}

/* Dark mode */
.ea-dark-scheme .drag-handle {
    background-color: var(--form-control-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}
.ea-dark-scheme .sortable-ghost {
    background-color: var(--body-bg) !important;
}
.ea-dark-scheme .sortable-chosen {
    background-color: var(--form-control-bg) !important;
}

/* ==========================================================================
   Follow-up of the events (FollowUpState): to answer, to follow up, waiting.
   Pipeline cards, event list, event page header, dashboard.
   ========================================================================== */
.fu-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
    border: 1px solid transparent; font-size: 0.75rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.fu-badge .fa, .fu-badge .fab { font-size: 0.7rem; }
.fu-to_answer { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.fu-to_follow_up { background: #ffedd5; border-color: #fed7aa; color: #c2410c; }
.fu-waiting { background: #f3f4f6; border-color: #e5e7eb; color: #4b5563; }
.fu-none { background: transparent; border-color: #e5e7eb; color: #6b7280; font-weight: 600; }
.ea-dark-scheme .fu-to_answer { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.ea-dark-scheme .fu-to_follow_up { background: rgba(249, 115, 22, 0.16); border-color: rgba(249, 115, 22, 0.4); color: #fdba74; }
.ea-dark-scheme .fu-waiting { background: rgba(255, 255, 255, 0.06); border-color: var(--border-color); color: var(--text-muted); }
.ea-dark-scheme .fu-none { border-color: var(--border-color); color: var(--text-muted); }

/* Filters by follow-up (pipeline, event list) */
.fu-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Its views, a line, then who waits (B7) */
.fu-filters .fu-sep { width: 1px; align-self: stretch; min-height: 24px; background: var(--border-color, #d1d5db); margin: 0 4px; }
/* The events list: « Filtres » after « Tous » (B6), a pastille like the others */
.fu-filters .ev-list-filters { display: contents; }
/* A phone (B7 of review #5): one row that slides, never three rows of pastilles */
@media (max-width: 767px) {
    .fu-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .fu-filters::-webkit-scrollbar { display: none; }
    .fu-filters > *, .fu-filters .ev-list-filters > * { flex: none; white-space: nowrap; }
}
.fu-filter {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--border-color, #e5e7eb); background: var(--content-bg, #fff); color: var(--text-muted, #6b7280);
    font-size: 0.82rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.fu-filter:hover { color: var(--text-color, #111827); }
.fu-filter.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.fu-filter .fu-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); font-size: 0.72rem; text-align: center; }
.fu-filter.active .fu-count { background: rgba(255, 255, 255, 0.25); }
.fu-filter.fu-filter-to_answer:not(.active) .fu-count { background: #fee2e2; color: #b91c1c; }
.fu-filter.fu-filter-to_follow_up:not(.active) .fu-count { background: #ffedd5; color: #c2410c; }

/* "Me rappeler de relancer" when writing to the customer */
.fu-choice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; }
.fu-choice label { margin: 0; color: var(--text-muted, #6b7280); white-space: nowrap; }
.fu-choice select { width: auto; }
.fu-choice .fu-date { display: inline-flex; }
.fu-choice .fu-date[hidden] { display: none; }
.fu-choice .fu-date input { width: 10.5rem; }
.fu-choice .fu-label-short { display: none; }

/* A company searched in the State's directory from a contact's form (company_directory_controller.js) */
.company-directory-results { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #d1d5db; border-radius: 0 0 6px 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); max-height: 320px; overflow-y: auto; }
.company-directory-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f1f5f9; background: none; padding: 8px 12px; cursor: pointer; color: inherit; }
.company-directory-item small { display: block; color: #6b7280; }
.company-directory-item:hover, .company-directory-item.active { background: #f1f5f9; }
.company-directory-note { padding: 8px 12px; color: #6b7280; }
.company-directory-source { padding: 4px 12px; font-size: 0.75em; color: #9ca3af; text-align: right; }
.ea-dark-scheme .company-directory-results { background: var(--content-bg); border-color: var(--border-color); }
.ea-dark-scheme .company-directory-item { border-color: var(--border-color); }
.ea-dark-scheme .company-directory-item:hover, .ea-dark-scheme .company-directory-item.active { background: rgba(255, 255, 255, 0.06); }

/* A quote's day sent, with its status on a phone only (its own column on a computer, E9) */
.quote-sent-day { display: none; }
/* A page's way back (« ‹ Réglages », « ‹ Modèles d'email », « ‹ Messagerie »: I3 of review #5), one look everywhere */
.bq-back { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted, #6b7280); text-decoration: none; }
.bq-back:hover { color: var(--link-color, #4f46e5); text-decoration: underline; }
.bq-back-top { margin: 12px 0 -4px; }
/* A product's tiers after its price, in its list (G5 of review #5) */
.product-tiers { color: var(--text-muted, #6b7280); font-size: 0.85em; }
/* Until when it holds, its deposit (E6 of review #5): « Envoyé · valable jusqu'au 11/12 », « Accepté · acompte à recevoir » */
.quote-state-more { font-size: 0.82rem; color: var(--text-muted, #6b7280); }
.quote-state-more.quote-state-waiting { color: #b45309; font-weight: 600; }
/* A list's name: a link that reads as one (B6) */
/* In a link's colour (B4 of review #5): EasyAdmin's --link-color is its text's, black */
@media (min-width: 768px) {
    table.datagrid td a.ea-row-link { color: #4f46e5; font-weight: 600; }
    .ea-dark-scheme table.datagrid td a.ea-row-link { color: #a5b4fc; }
}
/* A professional contact: « Pro » a small pill after its name (D5 of review #6) */
.contact-pro { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.72rem; font-weight: 600; vertical-align: 1px; }
.ea-dark-scheme .contact-pro { background: rgba(99, 102, 241, 0.18); color: #c7d2fe; }
/* A contact's card on a phone opens: its name in a link's colour, « › » after it (D5 of review #6) */
@media (max-width: 767px) {
    table.datagrid tbody td a.contact-name { color: #4338ca; }
    .ea-dark-scheme table.datagrid tbody td a.contact-name { color: #a5b4fc; }
    table.datagrid tbody td a.contact-name::after { content: '\00a0›'; }
}
/* The quotes' list on a phone (E6 of review #6): « Léa Fontaine … 2 376 € », « Envoyé le 11/11 · valable jusqu'au 11/12 »,
   « PN-2026-004 · Mariage · 20/04/2027 » */
@media (max-width: 767px) {
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):has(> td.phone-quote-total) > td.phone-main { flex: 1 1 auto; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-quote-total {
        display: block; order: -1; margin-left: auto; padding: 0 !important; box-shadow: none !important; min-block-size: 0; font-weight: 600; font-size: 0.95rem;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-quote-status { display: block; flex: 0 0 100%; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-quote-ref,
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-quote-event {
        display: inline; order: 1; padding: 0 !important; box-shadow: none !important; min-block-size: 0; font-size: 0.82rem; color: var(--text-muted, #6b7280); text-align: left !important;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-quote-ref strong { font-weight: 400; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-quote-event:not(:empty)::before {
        display: inline; content: '\00a0·\00a0'; position: static; padding: 0; inline-size: auto; color: inherit; font-weight: normal;
    }
}
/* A list's name on one line on a computer (B10 of review #6: « Isabelle Morel », never « Isabelle / Morel ») */
@media (min-width: 768px) {
    table.datagrid tbody td.phone-main { white-space: nowrap; }
}
/* The site form's code (I8 of review #6): its summary a phone's only */
.request-form-code > summary.request-form-code-phone { display: none; }
@media (max-width: 640px) {
    .request-form-code > summary.request-form-code-phone { display: list-item; cursor: pointer; font-weight: 600; margin-bottom: 8px; }
}
/* A late task, one way and one colour everywhere (B4 of review #6): « Recevoir l'acompte · en retard (17/11) », red */
.event-late-task { color: #dc2626; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
/* The events list's quote in the words of « Par étape » (B4 of review #5): « Signé 578 € » green, else grey */
.list-amount { font-weight: 600; color: var(--text-muted, #6b7280); white-space: nowrap; }
.list-amount.signed { color: #15803d; }
/* « 25 convives » on a phone, « 25 » in its column on a computer */
.phone-unit { display: none; }

/* ==========================================================================
   Lists on a phone (every EasyAdmin list): its name and one useful line, the
   whole card opening it (EasyAdmin's clickable row, its links never taking the
   touch), no labels, no menu, no switch toggled while scrolling. Its name: the cell .phone-main, else the
   first; its line: the cells .phone-line ("Mariage · 17/04/2027 · Devis
   envoyé"), else the second (ContactCrudController, EventCrudController…); its place under them
   (.phone-place), then its badge (.phone-badge: an event's follow-up).
   ========================================================================== */
@media (max-width: 767px) {
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) {
        display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; padding: 10px 14px; margin-block-end: 10px;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td { display: none; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td::before { display: none; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):not(:has(> td.phone-main)) > td:first-child,
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-main {
        display: block; order: -1; flex: 0 0 100%; padding: 0 !important; box-shadow: none !important; min-block-size: 0;
        font-weight: 600; font-size: 0.95rem; text-align: left !important;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-main *,
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):not(:has(> td.phone-main)) > td:first-child * { font-weight: inherit; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):not(:has(> td.phone-line)) > td:nth-child(2):not(.phone-main),
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-line:not(.phone-main) {
        display: inline; padding: 0 !important; box-shadow: none !important; min-block-size: 0;
        font-size: 0.82rem; color: var(--text-muted, #6b7280); text-align: left !important;
    }
    /* "Mariage · 17/04/2027 · Devis envoyé" */
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-line:not(.phone-main) ~ td.phone-line:not(.phone-main)::before {
        display: inline; content: '\00a0·\00a0'; position: static; padding: 0; inline-size: auto; color: inherit; font-weight: normal;
    }
    /* A quote's day sent with its status (E9) */
    table.datagrid td .quote-sent-day { display: inline; }
    /* Its place on a line of its own (.phone-place: an event's), when it has one (never EasyAdmin's « null » badge) */
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-place:not(:has(.badge)) {
        display: block; flex: 0 0 100%; padding: 2px 0 0 !important; box-shadow: none !important; min-block-size: 0;
        font-size: 0.82rem; color: var(--text-muted, #6b7280); text-align: left !important;
    }
    /* An event's (B3 of review #5): « Soirée privée · 27/11/2026 · 25 convives », then « Oullins · Signé 578 € » on one line
       (its place, its quote: .phone-amount), a line break (::after) between them */
    table.datagrid td .phone-unit { display: inline; }
    /* No guests said: nothing on its line (never « 27/11/2026 · » left hanging) */
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-guests:not(:has(.list-guests)) { display: none; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):has(> td.phone-amount)::after { content: ''; order: 1; flex: 0 0 100%; height: 0; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):has(> td.phone-amount) > td.phone-place:not(:has(.badge)) { order: 2; flex: 0 1 auto; padding-top: 2px !important; }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-amount:has(.list-amount) {
        display: inline; order: 3; padding: 2px 0 0 !important; box-shadow: none !important; min-block-size: 0; font-size: 0.82rem; text-align: left !important;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-place:not(:has(.badge)) ~ td.phone-amount::before {
        display: inline; content: '\00a0·\00a0'; position: static; padding: 0; inline-size: auto; color: var(--text-muted, #6b7280); font-weight: normal;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row):has(> td.phone-amount) > td.phone-badge { order: 4; }
    /* Its badge on a line of its own, under it (an event's « À répondre · 1 j », or its task late: .phone-badge), only when it has one */
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-badge:is(:has(.fu-badge), :has(.event-late-task)) {
        display: block; order: 1; flex: 0 0 100%; padding: 6px 0 0 !important; box-shadow: none !important; min-block-size: 0; text-align: left !important;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td .badge { font-size: 0.75rem; }
    table.datagrid td.has-switch .form-switch { pointer-events: none; }
    /* Its links (its contact, type, stage, events) never take the touch: the whole card opens it */
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td a { pointer-events: none; }
    /* Its number, a button under its card that calls it (.phone-call: a contact's), the one link that takes the touch */
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-call:has(a[href^="tel:"]) {
        display: block; order: 2; flex: 0 0 100%; padding: 8px 0 0 !important; box-shadow: none !important; min-block-size: 0; text-align: left !important;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-call a[href^="tel:"] {
        pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
        border: 1px solid var(--border-color, #d1d5db); border-radius: 999px; font-weight: 600; text-decoration: none;
    }
    table.datagrid:not(.datagrid-empty) tbody tr:not(.empty-row) > td.phone-call a[href^="tel:"]::before { content: '\f095'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
}

/* ===================================================================
 * Harmony of the settings pages (docs/HARMONIE.md): one look for a
 * section, whether EasyAdmin draws it (a form's fieldset) or a page of
 * ours does (admin/components/_section.html.twig, its very markup).
 * =================================================================== */
/* A list's intro whole (G2 of review #5): never cut by EasyAdmin to one line with a « ⋯ » read as a row's menu */
.content-help[data-state=collapsed] .content-help-message { display: block; -webkit-line-clamp: unset; overflow: visible; }
.content-help .content-help-expander { display: none; }
/* A page's intro: one sentence under its title */
.bq-intro { color: var(--text-muted, #6b7280); margin: 0 0 16px; max-width: 80ch; }
/* Our sections: EasyAdmin's fieldset, one under the other; its title an h2 at a fieldset title's size */
.bq-section { margin-block-end: 16px; }
.bq-section:last-child { margin-block-end: 0; }
.bq-section h2.form-fieldset-title-content { margin: 0; }
.bq-section-body { padding-block-end: var(--form-fieldset-spacing, 16px); }
.bq-section-body > :last-child { margin-block-end: 0; }
/* EasyAdmin's fields before any titled fieldset: in a box as the titled ones, never bare */
body.ea-edit .form-fieldset.form-fieldset-no-header,
body.ea-new .form-fieldset.form-fieldset-no-header {
    background-color: var(--form-fieldset-frame-bg);
    border: var(--border-width) solid var(--form-fieldset-border-color);
}
body.ea-edit .form-fieldset.form-fieldset-no-header:not(.form-column > *) .form-fieldset-body,
body.ea-new .form-fieldset.form-fieldset-no-header:not(.form-column > *) .form-fieldset-body {
    background-color: var(--form-fieldset-panel-bg);
    border: var(--border-width) solid var(--form-fieldset-panel-border-color);
    border-radius: var(--form-control-border-radius);
    box-shadow: var(--form-fieldset-panel-shadow);
    margin-inline: 0;
    padding: var(--form-fieldset-spacing) var(--form-fieldset-spacing) 0;
}
/* A page's one form: its button in the page's header; on a phone, also at its bottom, in reach.
   A long form (.bq-form-end, Mon entreprise): at its foot on a computer too */
.bq-phone-actions { display: none; }
.bq-phone-actions.bq-form-end { display: flex; justify-content: flex-end; padding: 12px 0; margin-top: 8px; border-top: 1px solid var(--border-color, #e5e7eb); }
/* Its button where its form ends, never floating over what follows (I13 of review #5: « Étapes et relances »), what it saves beside it */
.bq-phone-actions.bq-form-end-static { position: static !important; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; }
.bq-phone-actions.bq-form-end-static .btn { width: auto !important; }
.bq-phone-actions.bq-form-end-static .form-text { margin: 0; }
@media (max-width: 768px) {
    /* Its buttons at its bottom: never again in its header (G3 of review #5: four buttons to save a product); « Enregistrer et
       continuer », which the bar has not, kept */
    body:has(.bq-phone-actions) .content-header .page-actions :is(.action-saveAndReturn, .action-saveAndAddAnother, .bq-header-save) { display: none; }
    /* Mon entreprise: its bar says « Enregistrer » (I3 of review #6): never twice on the screen */
    body:has(.org-save-bar) .content-header .page-actions .action-saveAndContinue { display: none; }
    .bq-phone-actions { display: block; position: sticky; bottom: var(--bq-tabbar-h, 0px); z-index: 10; background: var(--body-bg, #fff); padding: 10px 0; }
    /* « Enregistrer » and « + Un autre » side by side (G8) */
    .bq-phone-actions-two { display: flex; gap: 8px; }
    .bq-phone-actions-two > * { flex: 1 1 0; justify-content: center; }
    .bq-phone-actions.bq-form-end { margin: 8px -12px 0; padding: 10px 12px; }
    .bq-phone-actions .btn { width: 100%; justify-content: center; }
}

/* ---- A phone (EasyAdmin's menu folded, under 992 px): the bar at the bottom (_tabbar.html.twig),
   the search behind a magnifier (layout.html.twig). What sticks to the bottom of a page sits above
   the bar: bottom: var(--bq-tabbar-h). While typing, the bar gives its place to the keyboard. ---- */
.bq-tabbar, .bq-search-toggle { display: none; }
@media (max-width: 991.98px) {
    body:has(.bq-tabbar) { --bq-tabbar-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
    /* Its room at the page's end, the same while typing (the page never jumps as the keyboard opens) */
    body:has(.bq-tabbar) .wrapper { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
    .bq-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        height: var(--bq-tabbar-h); padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--responsive-header-bg, var(--body-bg, #fff));
        border-top: 1px solid var(--border-color, #e5e7eb); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    }
    .bq-tab {
        flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: var(--text-muted, #6b7280); text-decoration: none !important; font-size: 0.72rem; line-height: 1.1;
    }
    .bq-tab.active { color: var(--color-primary, #2563eb); font-weight: 600; }
    .bq-tab-icon { position: relative; font-size: 1.15rem; }
    .bq-tab-badge {
        position: absolute; top: -6px; left: 60%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
        background: #dc2626; color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 17px; text-align: center;
    }
    .bq-tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
    /* Typing (a field, a text area, the email's editor): the keyboard's place, the bar hidden; a list or a date's
       picker never hides it (a choice made, the field keeps the focus) */
    body:has(:is(input:not([type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="hidden"], [type="file"], [type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"], [type="color"], [type="range"]), textarea, [contenteditable="true"]):focus) {
        --bq-tabbar-h: 0px;
        & .bq-tabbar { display: none; }
    }
    /* The search: a magnifier in the header, its field shown once touched */
    .bq-search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--text-color, #333); border: 0; background: none; }
    body:not(.bq-search-open) .content-top { display: none; }
    .global-search { min-width: 0; max-width: none; width: 100%; }
    .global-search .gs-shortcut { display: none; }
}

/* Mon profil's « Apparence » (EasyAdmin's own links, without its gear): its three choices side by side, on a phone too */
.bq-appearance { display: flex; flex-wrap: wrap; gap: 8px; }
.bq-appearance .dropdown-appearance-item.active { background: var(--color-primary, #2563eb); border-color: var(--color-primary, #2563eb); color: #fff; }

/* ---- The shared components of a section (docs/HARMONIE.md § 7: no style of a page's own) ---- */
/* Short fields side by side, two to four a line; a long one its whole line */
.bq-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.bq-fields > .bq-wide { grid-column: 1 / -1; }
/* Bare fields (« Noter un appel »): 12 px between its rows, never touching once on one column (D2 of review #5) */
.call-form .bq-fields { row-gap: 12px; }
.call-details[hidden] { display: none; }
/* Buttons (or a small form's fields) side by side, wrapping */
.bq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bq-actions > .form-control { flex: 1 1 240px; width: auto; }
/* A short number in a row of words (« À relancer au bout de [7] jours ») */
.bq-actions > .form-control.bq-short { flex: 0 0 6rem; }
/* A choice as wide as its options, never wider than its line (a long option on a phone: it shrinks) */
.bq-actions > .form-select { flex: 0 1 auto; width: auto; min-width: 0; max-width: 100%; }
.bq-actions > form { margin: 0; }
@media (max-width: 600px) {
    .bq-actions > .form-select, .bq-actions > .btn { flex: 1 1 auto; justify-content: center; }
}
/* A list: one line a thing, its name left, what describes it grey right, a thin line between */
.bq-rows { list-style: none; padding: 0; margin: 0 0 12px; }
.bq-rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-top: 1px solid var(--border-color, #e5e7eb); }
.bq-rows > li:first-child { border-top: 0; padding-top: 0; }
.bq-row-main { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.bq-row-meta { color: var(--text-muted, #6b7280); font-size: .875rem; }
/* Names in a row (stages, types, sources) */
.bq-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; margin: 0 0 12px; }
.bq-chip { padding: 2px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.bq-chip-muted { background: #f1f5f9; color: #475569; }
.ea-dark-scheme .bq-chip { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
/* One added at the end of its chips (I7 of review #4) */
.bq-chip-add { background: transparent; border: 1px dashed #a5b4fc; color: var(--link-color, #4f46e5); }
.ea-dark-scheme .bq-chip-add { background: transparent; }
/* « [7] jours sans réponse » never broken (I6) */
.bq-nowrap { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bq-nowrap > .form-control.bq-short { width: 6rem; }
/* A box left of its words, on a phone too (I6) */
.bq-check-line { display: flex; gap: 8px; align-items: flex-start; padding-left: 0; }
.bq-check-line > .form-check-input { float: none; margin: .2em 0 0; flex: none; }
.form-check-inline.bq-check-line { display: inline-flex; margin-inline-end: 1.25rem; }
/* Choices side by side from one starting line, one under the other on a phone (H5 of review #5) */
.bq-choices { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.bq-choices > .form-check { margin: 0; min-height: 0; }
@media (max-width: 600px) { .bq-choices { flex-direction: column; } }
/* An empty list one grey sentence (G1 of review #6) */
table.datagrid-empty tr.bq-empty-list > td { color: var(--bs-secondary-color, #64748b); padding: 12px 4px; border: 0; background: transparent; }
/* A row hidden by its form's script (a custom field's choices, unit: custom_field_form_controller.js) */
.form-group[hidden] { display: none !important; }
/* EasyAdmin's boxes (not a switch) left of their words, on a phone too (I4 of review #6) */
.field-boolean .form-check:not(.form-switch) { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: flex-start; padding-left: 0; }
.field-boolean .form-check:not(.form-switch) > .form-check-input { float: none; margin: .2em 0 0; flex: none; }
.field-boolean .form-check:not(.form-switch) > .form-check-label { flex: 1 1 0; min-width: 0; }
/* Its radios side by side (« Acompte · Arrhes », I11 of review #6) */
.bq-choices-field .form-widget > div:has(> .form-check) { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.bq-choices-field .form-widget .form-check { margin: 0 !important; }
/* Plats et allergènes (lot 54): the 14 in columns, the cereal and the nut under them, what the words suggest */
.bq-allergens .form-widget > div:has(> .form-check), .bq-allergen-details .form-widget > div:has(> .form-check),
.bq-dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; }
.bq-to-fill { color: #c2410c; font-weight: 600; }
.bq-hints { margin: -6px 0 14px; }
.bq-hints[hidden] { display: none; }
.bq-hints-line { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-muted, #475569); }
.bq-hint { border: 1px dashed #6366f1; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 1px 10px; margin: 2px 0; font-size: 0.85rem; cursor: pointer; }
.bq-hint:hover, .bq-hint:focus-visible { background: #e0e7ff; }
.bq-hint-all { border: 0; background: none; color: var(--link-color, #2563eb); text-decoration: underline; padding: 0; font-size: 0.85rem; cursor: pointer; }
.bq-hints-warning { color: #b45309; font-weight: 500; }
.ea-dark-scheme .bq-hint { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
.ea-dark-scheme .bq-to-fill { color: #fb923c; }
.bq-dialog.bq-dish-dialog { max-width: min(620px, calc(100vw - 32px)); width: 100%; }
.bq-dish-boxes { border: 0; padding: 0; margin: 12px 0 0; }
.bq-dish-boxes[hidden] { display: none; }
.bq-dish-boxes .form-check { margin: 0; }
/* A product's sections (lot 55): its name and its choice side by side, its dishes under them, labels above */
.bq-composition .field-collection-item .form-widget-compound > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.bq-composition .field-collection-item .form-widget-compound > div > .flex-fill { display: none; }
.bq-composition .field-collection-item .form-widget-compound > div > div:has([data-composition-dishes]) { grid-column: 1 / -1; }
.bq-composition .field-collection-item .form-group { display: block; margin-bottom: 10px; }
.bq-composition .field-collection-item .form-control-label { display: block; margin-bottom: 4px; width: auto; max-width: none; flex: none; }
@media (max-width: 768px) { .bq-composition .field-collection-item .form-widget-compound > div { grid-template-columns: 1fr; } }
/* A formula's choices noted by the caterer (lot 56): each section its dishes to tick */
.bq-menu-choices:not(:has(fieldset)) { display: none; }
.bq-choice { border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; padding: 6px 10px 8px; margin: 6px 0; }
.bq-choice legend { font-size: 0.85rem; font-weight: 600; float: none; width: auto; padding: 0 4px; margin: 0; }
.bq-choice-state { font-weight: 400; color: #c2410c; }
.bq-choice-done .bq-choice-state { color: #15803d; }
/* Chosen by its customer online (lot 57), and until when it may */
.bq-choice-who { font-weight: 400; color: var(--bq-muted, #6b7280); font-size: 0.85rem; margin-left: 6px; }
/* « Avis clients » (lot 59): a link and its « Tester », its two ways to ask on their lines, its QR code beside its words */
.bq-review-link { display: flex; gap: 8px; align-items: center; }
.bq-review-link .form-control { min-width: 0; }
.bq-choice-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-weight: 400; }
.bq-choice-line input[type="radio"] { margin-top: 5px; }
.bq-choice-line .bq-short { width: 4.5rem; }
.bq-review-qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.bq-qr { width: 132px; height: 132px; flex: none; background: #fff; padding: 4px; border-radius: 6px; }
.bq-qr svg { width: 100%; height: 100%; display: block; }
/* A stage task's due date (lot 58): how it counts and its days side by side, the days hidden when they do not count */
.bq-task-due { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-start; }
.bq-task-due > * { flex: 0 1 300px; min-width: 0; }
.bq-task-due > [data-task-due-target="days"] { flex-basis: 160px; }
.bq-task-due > [hidden] { display: none; }
.qv-menu-online { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; margin: 0 0 10px; font-size: 0.88rem; }
.qv-menu-online label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.qv-menu-online input[type="date"] { width: auto; }
.bq-choice-dish { display: inline-flex; gap: 6px; align-items: center; margin: 2px 14px 2px 0; font-size: 0.9rem; }
.bq-choice[disabled] { opacity: .7; }
/* Its numbers by guest (lot 66): a small number before each dish */
.bq-choice-dish input.bq-count { width: 4.2rem; padding: 1px 6px; text-align: right; }
.bq-choice-gap { color: var(--bq-muted, #6b7280); }
.qv-choices { margin: 12px 0; }
.qv-choices-title { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.bq-dish-boxes legend { font-size: 0.9rem; font-weight: 600; margin: 0 0 6px; float: none; width: auto; }
/* Mon entreprise, its SIRET known (I11 of review #6): its directory search one link away */
.org-directory-folded[hidden] { display: none !important; }
.org-directory-open > .btn-link { padding: 0; margin: 0 0 12px; text-decoration: none; }
/* A file chosen, its words whole on a phone (« Aucun fichier choisi ») */
@media (max-width: 600px) { .bq-file { font-size: 0.85rem; } }
@media (max-width: 600px) { .form-check-inline.bq-check-line { display: flex; margin-inline-end: 0; } }
/* « Inactif » after a name in a settings list (G6 of review #4) */
.badge.bq-inactive { background: #f1f5f9; color: #64748b; font-weight: 500; margin-inline-start: 6px; vertical-align: middle; }
.ea-dark-scheme .badge.bq-inactive { background: rgba(148, 163, 184, .2); color: #cbd5e1; }
/* The Réglages page's lines (I1): its icon, its state in grey */
.bq-settings .bq-row-icon { color: var(--text-muted, #6b7280); margin-inline-end: 4px; }
.bq-settings .bq-row-main { font-weight: 500; }
.bq-settings > li { gap: 2px 16px; }
@media (max-width: 600px) { .bq-settings .bq-row-meta { padding-inline-start: 1.75em; } }

.ea-dark-scheme .bq-chip-muted { background: rgba(148, 163, 184, .2); color: #cbd5e1; }
/* A note: grey to explain, amber to warn */
.bq-note { padding: 10px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border-color, #e5e7eb); font-size: .875rem; }
.bq-note a { font-weight: 600; }
.bq-note-warn { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.ea-dark-scheme .bq-note { background: var(--body-bg); }
.ea-dark-scheme .bq-note-warn { background: rgba(245, 158, 11, .15); color: #fcd34d; border-color: rgba(245, 158, 11, .3); }
/* A state: its icon (green, red when failing) and what it says */
.bq-status { display: flex; gap: 10px; align-items: flex-start; }
.bq-status > i { color: #059669; margin-top: 3px; }
.bq-status.failing > i { color: #b91c1c; }
.bq-status-error { color: #991b1b; font-size: .875rem; margin-top: 6px; }
.ea-dark-scheme .bq-status-error { color: #fca5a5; }
/* A test's results, one line each: done, failed, to know */
.bq-result { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; font-size: .9rem; }
.bq-result i { margin-top: 3px; }
.bq-result.ok { background: #d1fae5; color: #065f46; }
.bq-result.ko { background: #fee2e2; color: #991b1b; }
.bq-result.info { background: #fef3c7; color: #92400e; }
.ea-dark-scheme .bq-result.ok { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.ea-dark-scheme .bq-result.ko { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.ea-dark-scheme .bq-result.info { background: rgba(245, 158, 11, .15); color: #fcd34d; }
/* A field's error written by a script: nothing while empty */
.bq-error { color: #b91c1c; font-size: .82rem; margin-top: 4px; }
.bq-error:empty { display: none; }
.ea-dark-scheme .bq-error { color: #fca5a5; }
/* An assistant's numbered steps; what follows them (advanced settings, its button, its result) under their text */
.bq-step { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; margin-bottom: 18px; }
.bq-step-num { width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.bq-step > div > label { font-weight: 600; display: block; margin: 3px 0 6px; }
.bq-step .form-control, .bq-step .form-select { max-width: 420px; }
.bq-step-after { margin-inline-start: 40px; margin-block-end: 16px; }
.ea-dark-scheme .bq-step-num { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
@media (max-width: 600px) { .bq-step-after { margin-inline-start: 0; } }
/* Advanced settings, folded */
.bq-advanced > summary { cursor: pointer; color: var(--link-color, #4f46e5); font-size: .9rem; }
.bq-advanced[open] > summary { margin-block-end: 12px; }
.bq-advanced h3 { grid-column: 1 / -1; font-size: .8rem; margin: 8px 0 0; color: var(--text-muted, #6b7280); text-transform: uppercase; letter-spacing: .03em; }
/* A group's subtitle in plain words (« Réception des emails (IMAP) »: I6 of review #5), never in capitals */
.bq-advanced h3.bq-subtitle { font-size: .9rem; font-weight: 600; color: var(--text-color, #111827); text-transform: none; letter-spacing: 0; }
/* A checklist: each done ticked green and struck through, its help gone */
.bq-progress { height: 6px; border-radius: 3px; background: var(--border-color, #e5e7eb); overflow: hidden; margin: 0 0 12px; }
.bq-progress > span { display: block; height: 100%; background: #16a34a; }
.bq-checklist { list-style: none; padding: 0; margin: 0; }
.bq-checklist > li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border-color, #e5e7eb); }
.bq-checklist > li:first-child { border-top: 0; padding-top: 0; }
.bq-check { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: #cbd5e1; margin-top: 1px; }
.bq-checklist > li.done .bq-check { background: #16a34a; border-color: #16a34a; color: #fff; }
.bq-checklist a { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 32px; }
.bq-check-label { font-weight: 600; color: var(--link-color, #4f46e5); }
.bq-check-help { font-size: .84rem; color: var(--text-muted, #6b7280); }
.bq-checklist > li.done .bq-check-label { color: var(--text-muted, #6b7280); text-decoration: line-through; font-weight: 500; }
.bq-checklist > li.done .bq-check-help { display: none; }
/* What to do, a button under its line (H6) */
.bq-check-go { align-self: flex-start; margin-top: 6px; }
/* Another way to be done (H2), under its button: a link of its own */
.bq-checklist > li { flex-wrap: wrap; }
.bq-checklist > li > a:not(.bq-check-more) { flex: 1 1 0; }
.bq-check-more { flex-basis: 100%; margin-inline-start: 36px; font-size: .84rem; min-height: 0 !important; }
span.bq-check-more { color: var(--text-muted, #6b7280); }
span.bq-check-more a, a.bq-check-more { color: #4338ca; }
/* Its link after what it says, on its line (never a block of the checklist's links) */
.bq-checklist span.bq-check-more a { display: inline; min-height: 0; padding: 0; }
.ea-dark-scheme span.bq-check-more a, .ea-dark-scheme a.bq-check-more { color: #a5b4fc; }
/* How long a step takes (H3) */
.bq-check-time { font-size: .8rem; color: var(--text-muted, #6b7280); margin-top: 2px; }
/* An image sent (a logo): shown above its field */
.bq-image-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bq-image-preview img { max-height: 64px; max-width: 220px; object-fit: contain; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; padding: 4px; background: #fff; }
/* A rate the VAT franchise sets (vat_exempt_controller.js): read only, greyed */
input[readonly][data-vat-exempt-target="rate"] { background: var(--form-control-disabled-bg, #f1f5f9); color: var(--text-muted, #6b7280); }
/* The quote templates' editor (quote_template_editor_controller.js): a text as its code, read as code */
.qt-code { padding: 4px 0; font-size: .85rem; }
.qt-advanced > summary { font-size: .85rem; color: var(--bs-secondary-color, #64748b); cursor: pointer; list-style: none; padding: 4px 0; width: fit-content; }
.qt-advanced > summary::-webkit-details-marker { display: none; }
.qt-advanced[open] > summary { margin-bottom: 0; }
/* « Insérer une information » beside a field of one line (an email's subject) */
.qt-insert { width: auto; max-width: 100%; min-width: 0; margin-top: 6px; }
/* Never wider than its field (G1 of review #5): what holds the subject's line and its select never grows past the screen */
.qt-editor .form-widget, .qt-editor .form-group { min-width: 0; }
.qt-code-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.qt-code-note { font-size: .85rem; color: #92400e; margin: 4px 0 0; }
.ea-dark-scheme .qt-code-note { color: #fcd34d; }
/* An information in a template's text or subject (G2): a pastille, never typed into */
.qt-info { display: inline-block; padding: 0 8px; margin: 0 1px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .9em; font-weight: 600; line-height: 1.5; white-space: nowrap; user-select: all; }
.ea-dark-scheme .qt-info { background: rgba(99, 102, 241, .25); color: #c7d2fe; }
/* Its subject: a line where its information are pastilles */
.qt-line { min-height: 38px; white-space: nowrap; overflow-x: auto; cursor: text; }
/* As its other fields (G5 of review #4): never written bigger than its name */
.form-widget .qt-line { font-size: var(--font-size-base); line-height: 20px; padding: var(--form-control-padding-y) var(--form-control-padding-x); border-color: var(--form-input-border-color); color: var(--form-input-text-color); background-color: var(--form-control-bg); border-radius: var(--form-control-border-radius); }
.qt-line:focus { outline: 0; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.qt-preview { margin-top: 12px; }
.qt-preview .form-select { width: auto; max-width: 100%; }
/* Its information list: their names readable, never cut */
.jodit-toolbar-button_information .jodit-toolbar-button__text { white-space: nowrap; }

/* A question asked before an action (stage_accept_controller.js): a native dialog */
.bq-dialog { border: 1px solid var(--border-color, #e5e7eb); border-radius: 12px; padding: 18px 20px; max-width: min(480px, calc(100vw - 32px)); background: var(--body-bg, #fff); color: inherit; }
.bq-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.bq-dialog-title { font-weight: 700; margin: 0 0 4px; }
.bq-dialog-help { color: var(--text-muted, #6b7280); font-size: 0.88rem; margin: 0 0 14px; }
.bq-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ea-dark-scheme .bq-dialog { background: var(--body-bg, #1f2937); }
/* A request's day free or taken (A2: admin/inbox/_day_state.html.twig) */
.day-state { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 0.8rem; font-weight: 600; }
.day-state[hidden] { display: none; }
.day-free { color: #047857; }
.day-taken { color: #b45309; }
.day-taken a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ea-dark-scheme .day-free { color: #34d399; }
.ea-dark-scheme .day-taken { color: #fbbf24; }
/* Who called, what came of it, when (D2: admin/call/_call_fields.html.twig): an event's Appel tab, « Noter un appel » */
.bq-call-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
/* « Noter un appel »: its bottom button only on a phone (D3 of review #6); its customers in progress, one touch (D2) */
@media (max-width: 767.98px) { .call-top-send { display: none; } }
.call-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.call-recent[hidden] { display: none; }
.call-recent-label { font-size: 0.82rem; color: var(--text-muted, #6b7280); width: 100%; }
.call-recent-pill { border: 1px solid var(--border-color, #d1d5db); border-radius: 999px; background: var(--body-bg, #fff); padding: 6px 12px; font-size: 0.88rem; color: inherit; min-height: 36px; }
.call-recent-pill:hover { border-color: #4f46e5; color: #4338ca; }
.ea-dark-scheme .call-recent-pill:hover { border-color: #a5b4fc; color: #c7d2fe; }
/* « Appel manqué » for its customer's call, « Pas joint » for ours (D4 of review #6); its wrapper never a box of its own */
.bq-call-fields { display: contents; }
.bq-call-fields:has(input[value="in"]:checked) .bq-call-unreached, .bq-call-fields:has(input[value="out"]:checked) .bq-call-missed { display: none; }
.bq-call-fields:not(:has(input[value="in"]:checked)):not(:has(input[value="out"]:checked)) .bq-call-missed { display: none; }
.bq-call-choice > legend { float: left; width: auto; margin: 0 4px 0 0; padding: 0; font-size: inherit; line-height: inherit; }
.bq-call-label { min-width: 8em; font-weight: 600; margin: 0; }
.bq-call-choice label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }
.bq-call-at { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 36px; }
.bq-call-at input { width: auto; }
.bq-call-at [hidden] { display: none; }
@media (max-width: 480px) { .bq-call-label { min-width: 6em; } .bq-call-choice { gap: 2px 12px; } }
.bq-call-change { background: none; border: 0; padding: 0; color: var(--link-color, #4f46e5); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* « Marquer perdu » : « Pourquoi ? » (C4, lost_reason_controller.js) */
.bq-lost-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bq-lost-reason { min-height: 40px; padding: 6px 14px; border: 1px solid var(--border-color, #d1d5db); border-radius: 999px; background: transparent; color: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.bq-lost-reason[aria-checked="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.bq-lost-other { display: flex; gap: 8px; margin: 0 0 12px; }
.bq-lost-other:not(:has(:not([hidden]))) { display: none; }
.bq-lost-other input.form-control { flex: 1 1 auto; min-width: 0; }
.bq-lost-reason[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }

/* Facts as name and value (« Votre forfait »), on two columns; stacked on a phone */
.bq-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
.bq-facts dt { font-weight: 600; color: var(--text-muted, #6b7280); }
.bq-facts dd { margin: 0; }
@media (max-width: 576px) { .bq-facts { grid-template-columns: 1fr; gap: 2px; } .bq-facts dd { margin-bottom: 8px; } }
/* Plans side by side, its own marked */
.bq-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.bq-plan { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; padding: 14px 16px; background: var(--white, #fff); }
.bq-plan.current { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
.bq-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.05rem; }
.bq-plan-for { color: var(--text-muted, #6b7280); font-size: .88rem; margin: 4px 0 10px; }
.bq-plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.bq-plan li i { width: 18px; color: var(--text-muted, #6b7280); }
.ea-dark-scheme .bq-plan { background: transparent; }

/* Étapes et tâches (I3): ordered cards, each with its rows; its arrows and removals in « Réorganiser » only */
.stages { max-width: 860px; }
.stages-group { margin-top: 22px; }
.stages-group > h2 { font-size: 1.05rem; margin: 0 0 2px; }
.stages-group > p { color: var(--text-muted, #6b7280); font-size: .88rem; margin: 0 0 10px; }
.stage-card { background: var(--content-bg, #fff); border: 1px solid var(--border-color, #e5e7eb); border-left: 5px solid var(--stage, #6c757d); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; scroll-margin-top: 80px; }
.stage-card:target { box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
.stage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* One line a stage (I2: its card a details), folded on a computer too (I12 of review #5) */
.stage-card > summary.stage-head { list-style: none; cursor: pointer; }
.stage-card > summary.stage-head::-webkit-details-marker { display: none; }
.stage-fold { display: inline-block; margin-left: auto; color: var(--text-muted, #6b7280); transition: transform .15s; }
.stage-card[open] .stage-fold { transform: rotate(180deg); }
.stage-card:not([open]) { padding-top: 10px; padding-bottom: 10px; }
.stage-name { font-weight: 600; font-size: 1rem; margin: 0; }
.stage-count { color: var(--text-muted, #6b7280); font-size: .85rem; }
.stage-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stage-actions form, .stage-arrows form { display: inline; margin: 0; }
.stage-arrows { display: inline-flex; gap: 2px; }
.stage-btn { border: 1px solid var(--border-color, #e5e7eb); background: transparent; color: var(--text-color, #374151); border-radius: 6px; min-width: 32px; min-height: 32px; padding: 2px 8px; font-size: .82rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.stage-btn:hover:not([disabled]) { border-color: #a5b4fc; color: #4338ca; }
.stage-btn[disabled] { opacity: .35; cursor: default; }
.stage-btn.danger:hover { border-color: #fca5a5; color: #b91c1c; }
.stage-description { color: var(--text-muted, #6b7280); font-size: .88rem; margin: 6px 0 0; }
.stage-quote { font-size: .85rem; margin: 6px 0 0; color: #1d4ed8; }
.ea-dark-scheme .stage-quote { color: #93c5fd; }
.stage-tasks { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--border-color, #f1f5f9); }
.stage-task { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 0; border-bottom: 1px solid var(--border-color, #f1f5f9); }
.stage-task-name { font-size: .92rem; }
.stage-task.inactive .stage-task-name { color: var(--text-muted, #9ca3af); text-decoration: line-through; }
.stage-task-meta { color: var(--text-muted, #6b7280); font-size: .82rem; }
.stage-none { color: var(--text-muted, #6b7280); font-size: .88rem; margin: 10px 0 0; }
.stage-add-task { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; margin-top: 8px; text-decoration: none; }
/* A phone: its actions under its name, never the page sideways */
@media (max-width: 600px) {
    .stage-actions { margin-left: 0; width: 100%; }
    .stage-task .stage-actions { width: auto; margin-left: auto; }
}
.stage-name a, a.stage-task-name { color: inherit; text-decoration: none; }
.stage-name a:hover, a.stage-task-name:hover { color: var(--link-color, #4f46e5); text-decoration: underline; }

.stage-head .bq-chip, .stage-task .bq-chip { font-size: .75rem; white-space: nowrap; }
/* An accepted quote's deposit, received in one click (E8): its quote's page and its card in the Devis tab */
.quote-deposit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; font-size: .88rem; }
.quote-deposit form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
/* Received: its words flowing on its amount's line (E5 of review #6: « Acompte 163,35 € ✓ reçu le 12/10 ») */
.quote-deposit form:has(.quote-deposit-done) { display: contents; }
.quote-deposit-tick { border: 1px solid var(--border-color, #d1d5db); background: transparent; border-radius: 6px; padding: 2px 10px; cursor: pointer; color: inherit; }
.quote-deposit-tick i { color: var(--text-muted, #9ca3af); }
.quote-deposit-tick:hover { border-color: #16a34a; color: #16a34a; }
.quote-deposit-done { color: #16a34a; font-weight: 600; }
.quote-deposit-undo { border: 0; background: none; padding: 6px 4px; margin: -6px -4px; min-height: 32px; color: var(--text-muted, #6b7280); text-decoration: underline; font-size: .78rem; cursor: pointer; }
.quote-deposit-sep { color: var(--text-muted, #6b7280); }
/* « Lui envoyer de quoi le verser : Email · WhatsApp » (E5), its own line */
.quote-deposit-send { flex: 0 0 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted, #6b7280); }
.quote-deposit-send .quote-deposit-link { border: 0; background: none; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--link-color, #4f46e5); text-decoration: underline; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }

/* A day's plan's lines (lot 64: an event's page, « Déroulés types »): its hour, its moment, « Client », its cross; on a
   phone its moment under its hour */
.bq-plan-rows { display: flex; flex-direction: column; gap: 6px; }
.bq-plan-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto auto; align-items: center; gap: 6px; }
.bq-plan-client { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 0.8rem; color: var(--bs-secondary-color, #64748b); white-space: nowrap; cursor: pointer; }
.bq-plan-client .form-check-input { margin: 0; }
.bq-plan-remove { border: 0; background: none; color: var(--bs-secondary-color, #64748b); padding: 4px 6px; cursor: pointer; border-radius: 6px; }
.bq-plan-remove:hover { color: var(--bs-body-color, #111827); background: var(--bs-tertiary-bg, #f3f4f6); }
.bq-plan-row > .invalid-feedback { grid-column: 1 / -1; }
.bq-plan-hour { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.bq-plan-hour .form-control { width: 7.5rem; }
.bq-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
@media (max-width: 420px) {
    /* Each line's two rows together, apart from the next line's */
    .bq-plan-rows { gap: 14px; }
    .bq-plan-row { grid-template-columns: 6.5rem auto auto; row-gap: 4px; }
    .bq-plan-row .bq-plan-label { grid-column: 1 / -1; grid-row: 2; }
}

/* « Le matériel » (lot 65): a line its quantity, its name and where it comes from, « Chargé » and « Revenu » big enough
   for a thumb; on a phone its ticks under its name */
.bq-eq-counts { font-weight: 600; margin: 0 0 8px; }
.bq-eq-list { list-style: none; margin: 0; padding: 0; }
.bq-eq-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bs-border-color, #e5e7eb); }
.bq-eq-row:last-child { border-bottom: 0; }
.bq-eq-row form { margin: 0; }
.bq-eq-qty { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bq-eq-name small { display: block; color: var(--bs-secondary-color, #64748b); font-size: .78rem; }
.bq-eq-tick { min-height: 44px; min-width: 6.5rem; border: 1px solid var(--bs-border-color, #d1d5db); border-radius: 8px; background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #111827); font: inherit; padding: 6px 10px; cursor: pointer; }
.bq-eq-tick.on { background: #dcfce7; border-color: #16a34a; color: #14532d; font-weight: 600; }
.ea-dark-scheme .bq-eq-tick.on { background: rgba(22, 163, 74, .2); color: #bbf7d0; }
.bq-eq-tick:disabled { opacity: .6; }
.bq-eq-edit-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 6px; }
.bq-eq-remove { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: .85rem; white-space: nowrap; }
.bq-eq-gone { color: var(--bs-secondary-color, #64748b); }
@media (max-width: 520px) {
    .bq-eq-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
    .bq-eq-row .bq-eq-name { grid-column: 2 / -1; }
    .bq-eq-row form:first-of-type { grid-column: 2; justify-self: start; }
    .bq-eq-tick { min-width: 0; width: 100%; }
}

