/*
 * EDARA v3.1.100 — Mission 4 : couche responsive assainie.
 * Objectif : limiter les corrections globales, cibler les shells EDARA et réduire
 * les !important aux seuls cas de verrouillage responsive encore nécessaires.
 * Desktop : tableaux classiques. Tablette/mobile : lignes de tableaux en cartes natives.
 */

html body.edara-responsive-ready :where(
    .edara-responsive-scope,
    .edara-responsive-scope *,
    .edara-public-register-shell,
    .edara-public-register-shell *,
    .edara-admin-nav,
    .edara-admin-nav *
) {
    box-sizing: border-box;
}

html body.edara-responsive-ready {
    max-width: 100%;
}

/* ==========================================================
   1. Shells EDARA : logique type Dashboard financier partout.
   ========================================================== */
html body.edara-responsive-ready :where(
    .edara-responsive-scope,
    .edara-dashboard,
    .edara-admin-space,
    .edara-admin-page,
    .edara-admin-page-shell,
    .edara-admin-control-dashboard,
    .edara-admin-demande-page,
    .edara-admin-document-page,
    .edara-admin-relance-page,
    .edara-entities-dashboard,
    .edara-patrimoine-dashboard,
    .edara-baux-dashboard,
    .edara-edl-dashboard,
    .edara-quittances-dashboard,
    .edara-pointage-dashboard,
    .edara-financial-dashboard,
    .edara-livre-compte-dashboard,
    .edara-livre-compte-premium-dashboard,
    .edara-sorties-wrap,
    .edara-sorties-page,
    .edara-bailleur-space,
    .edara-bailleur-dashboard,
    .edara-bailleur-page-shell,
    .edara-bailleur-create-page,
    .edara-bailleur-add-sci-page,
    .edara-bailleur-add-bien-page,
    .edara-bailleur-add-locataire-page,
    .edara-locataire-space,
    .edara-locataire-dashboard,
    .edara-locataire-page-shell,
    .edara-locataire-compte-page,
    .edara-locataire-upload-page,
    .edara-client-home,
    .edara-client-page-shell,
    .edara-profile-page,
    .edara-demand-response-page,
    .edara-auth-alert-page
) {
    width: 100%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    padding-left: clamp(14px, 2.4vw, 28px);
    padding-right: clamp(14px, 2.4vw, 28px);
}

/* EDARA Mission 3 — exception métier : le dashboard financier est conçu à 1180px. */
html body.edara-responsive-ready .edara-financial-dashboard.edara-dashboard {
    --edara-financial-dashboard-max-width: 1180px;
    width: min(100%, var(--edara-financial-dashboard-max-width));
    max-width: var(--edara-financial-dashboard-max-width);
}

/* Les shells imbriqués ne doivent pas ajouter une deuxième marge externe. */
html body.edara-responsive-ready :where(
    .edara-dashboard,
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell
) :where(
    .edara-dashboard,
    .edara-admin-page-shell,
    .edara-bailleur-dashboard,
    .edara-bailleur-page-shell,
    .edara-locataire-dashboard,
    .edara-locataire-page-shell,
    .edara-client-page-shell
) {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

html body.edara-responsive-ready :where(
    .edara-card,
    .edara-section,
    .edara-form,
    .edara-stat-card,
    .edara-tool-card,
    .edara-tool-section,
    .edara-control-center,
    .edara-subtabs-card,
    .edara-patrimoine-tabs-card,
    .edara-patrimoine-search-card,
    .edara-smart-filter-panel,
    .edara-sorties-panel,
    .edara-bailleur-filter-panel,
    .edara-bailleur-priority-panel,
    .edara-bailleur-account-section,
    .edara-bailleur-account-detail,
    .edara-locataire-panel,
    .edara-locataire-account-card,
    .edara-locataire-compte-card,
    .edara-locataire-logement-card,
    .edara-locataire-upload-card,
    .edara-baux-form,
    .edara-edl-form,
    .edara-baux-intro,
    .edara-baux-legal-details,
    .edara-diagnostic-wrap,
    .edara-diagnostic-group,
    .edara-diagnostic-actions-card,
    .edara-admin-cleanup-card,
    .edara-admin-help-box,
    .edara-edit-panel-card
) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

html body.edara-responsive-ready :where(.edara-responsive-scope img, .edara-responsive-scope video, .edara-responsive-scope canvas, .edara-responsive-scope svg, .edara-responsive-scope iframe, .edara-public-register-shell img, .edara-public-register-shell svg) {
    max-width: 100%;
    height: auto;
}

/* EDARA v3.1.100 — les textes longs peuvent se couper, mais pas les montants, badges et boutons. */
html body.edara-responsive-ready :where(
    .edara-card p,
    .edara-section p,
    .edara-form p,
    .edara-description,
    .edara-address,
    .edara-muted,
    .edara-muted-value,
    .edara-text-wrap,
    .edara-client-note,
    .edara-alert
) {
    overflow-wrap: anywhere;
}

html body.edara-responsive-ready :where(
    .edara-money,
    .edara-money-cell,
    .edara-solde-cell,
    .edara-status-badge,
    .edara-balance-badge,
    .edara-date-badge,
    .edara-button,
    .edara-sorties-button,
    .edara-phone
) {
    overflow-wrap: normal;
    word-break: normal;
}

/* ==========================================================
   2. Formulaires, champs et grilles.
   ========================================================== */
html body.edara-responsive-ready :where(.edara-responsive-scope input, .edara-responsive-scope select, .edara-responsive-scope textarea, .edara-responsive-scope button, .edara-public-register-shell input, .edara-public-register-shell select, .edara-public-register-shell textarea, .edara-public-register-shell button, input[class*="edara-"], select[class*="edara-"], textarea[class*="edara-"], button[class*="edara-"]) {
    max-width: 100%;
    min-width: 0;
}

html body.edara-responsive-ready :where(
    .edara-form,
    .edara-card,
    .edara-section,
    .edara-filter-bar,
    .filter-bar,
    .edara-smart-filter-panel,
    .edara-sorties-filters,
    .edara-bailleur-filter-panel,
    .edara-locataire-compte-selector
) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%;
}

html body.edara-responsive-ready :where(
    .edara-field,
    .filter-group,
    .edara-sorties-field,
    .edara-smart-filter-field,
    .edara-smart-filter-field-wide,
    .edara-inline-edit-grid > *,
    .edara-form-grid > *,
    .edara-form-grid-2 > *,
    .edara-form-grid-3 > *,
    .edara-form-grid-4 > *
) {
    min-width: 0;
}

html body.edara-responsive-ready :where(
    .edara-stats-grid,
    .edara-stats-grid-v2,
    .edara-dashboard-grid,
    .edara-actions-grid,
    .edara-tool-grid,
    .edara-diagnostic-actions-grid,
    .edara-diagnostic-checks,
    .edara-patrimoine-summary-grid,
    .edara-patrimoine-alert-grid,
    .edara-patrimoine-mini-alerts,
    .edara-bailleur-kpi-grid,
    .edara-bailleur-premium-summary,
    .edara-bailleur-priority-grid,
    .edara-bailleur-quick-grid,
    .edara-bailleur-account-grid,
    .edara-bailleur-filter-grid,
    .edara-locataire-kpi-grid,
    .edara-locataire-action-grid,
    .edara-locataire-logements-grid,
    .edara-locataire-finance-grid,
    .edara-locataire-alert-grid,
    .edara-locataire-info-grid,
    .edara-locataire-doc-tools,
    .edara-baux-stats-grid,
    .edara-baux-principles,
    .edara-baux-annexes-grid,
    .edara-form-grid,
    .edara-form-grid-2,
    .edara-form-grid-3,
    .edara-form-grid-4,
    .edara-baux-grid,
    .edara-edl-grid,
    .edara-two-columns,
    .edara-patrimoine-two-columns,
    .edara-sorties-grid,
    .edara-sorties-add-grid,
    .edara-sorties-filters,
    .edara-smart-filter-panel,
    .edara-control-center-head,
    .edara-table-toolbar,
    .filter-bar,
    .edara-inline-field-row,
    .edara-edit-panels-grid,
    .edara-inline-edit-grid
) {
    min-width: 0;
}

/* ==========================================================
   3. Navigation / sous-menus : centrés, compacts, esthétiques.
      Le sticky/fixed admin est géré uniquement par edara-base.js.
   ========================================================== */
html body.edara-responsive-ready :where(.edara-admin-nav-sticky-holder, .edara-responsive-nav-holder) {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    min-width: 0;
}

html body.edara-responsive-ready :where(.edara-admin-nav, .edara-subtabs, .edara-patrimoine-tabs, .edara-edit-tabs, .edara-baux-tabs) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

html body.edara-responsive-ready :where(.edara-admin-nav) {
    padding: 10px;
    border-radius: 22px;
}

html body.edara-responsive-ready :where(.edara-admin-nav a, .edara-subtab, .edara-patrimoine-tab, .edara-edit-tab, .edara-baux-type-tab) {
    min-width: 0;
    text-align: center;
    line-height: 1.18;
}

html body.edara-responsive-ready :where(.edara-admin-nav a) {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
}

html body.edara-responsive-ready :where(.edara-responsive-nav) {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ==========================================================
   4. Tableaux desktop : tableaux intacts dans leurs wrappers.
   ========================================================== */
html body.edara-responsive-ready :where(
    .edara-responsive-table-wrap,
    .edara-table-responsive,
    .edara-mobile-scroll,
    .edara-sorties-scroll,
    .edara-pointage-table-wrap,
    .edara-patrimoine-table-wrap,
    .edara-finance-table-wrap,
    .edara-livre-compte-table-wrap,
    .edara-search-results-table-wrap,
    .edara-table-scroll-fallback,
    .edara-mobile-card-table-wrap
) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 18px;
}

html body.edara-responsive-ready :where(.edara-generated-mobile-cards) {
    display: none !important;
    visibility: hidden !important;
}

html body.edara-responsive-ready :where(
    table.edara-table,
    table.edara-finance-table,
    table.edara-pointage-loyers-table,
    table.edara-patrimoine-table,
    table.edara-documents-bulk-table,
    table.edara-livre-compte-table,
    table.edara-livre-compte-premium-table,
    table.edara-bailleur-accounts-table,
    table.edara-bailleur-simple-table,
    table.edara-bailleur-documents-table,
    table.edara-bailleur-demandes-table,
    table.edara-locataire-doc-table,
    table.edara-locataire-demande-table,
    table.edara-edl-room-table,
    table.edara-bail-contract-table,
    table.edara-sorties-summary-table,
    table.edara-sorties-rent-table,
    table.edara-sorties-table,
    .edara-card:not(.edara-no-card-table) table,
    .edara-section:not(.edara-no-card-table) table
) {
    display: table;
    width: 100%;
    max-width: none;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) thead { display: table-header-group; }
html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) tbody { display: table-row-group; }
html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) tr { display: table-row; }
html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) :where(th, td) {
    display: table-cell;
    width: auto;
    min-width: 0;
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}
html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) td::before { content: none !important; display: none !important; }
html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) tr[hidden],
html body.edara-responsive-ready :where(table.edara-table, table.edara-finance-table, table.edara-pointage-loyers-table, table.edara-patrimoine-table, table.edara-documents-bulk-table, table.edara-livre-compte-table, table.edara-livre-compte-premium-table, table.edara-bailleur-accounts-table, table.edara-bailleur-simple-table, table.edara-bailleur-documents-table, table.edara-bailleur-demandes-table, table.edara-locataire-doc-table, table.edara-locataire-demande-table, table.edara-edl-room-table, table.edara-bail-contract-table, table.edara-sorties-summary-table, table.edara-sorties-rent-table, table.edara-sorties-table, .edara-card:not(.edara-no-card-table) table, .edara-section:not(.edara-no-card-table) table) tr.edara-table-row-hidden { display: none !important; }


@media (min-width: 1181px) {
    html body.edara-responsive-ready :where(
        .edara-money,
        .edara-money-cell,
        .edara-solde-cell,
        .edara-nowrap-actions
    ) {
        white-space: nowrap;
    }
}


@media (min-width: 1181px) {
html body.edara-responsive-ready :where(table.edara-finance-table) { min-width: 980px; }
html body.edara-responsive-ready :where(table.edara-pointage-loyers-table) { min-width: 1080px; }
html body.edara-responsive-ready :where(table.edara-patrimoine-table) { min-width: 1100px; }
html body.edara-responsive-ready :where(table.edara-documents-bulk-table) { min-width: 1180px; }
html body.edara-responsive-ready :where(table.edara-livre-compte-table, table.edara-livre-compte-premium-table) { min-width: 980px; }
html body.edara-responsive-ready :where(table.edara-bailleur-accounts-table) { min-width: 1040px; }
html body.edara-responsive-ready :where(table.edara-bailleur-demandes-table, table.edara-bailleur-documents-table) { min-width: 900px; }
html body.edara-responsive-ready :where(table.edara-bailleur-simple-table) { min-width: 620px; }
html body.edara-responsive-ready :where(table.edara-locataire-doc-table, table.edara-locataire-demande-table) { min-width: 760px; }
html body.edara-responsive-ready :where(table.edara-locataire-logement-table, table.edara-locataire-finance-table) { min-width: 1060px; }
html body.edara-responsive-ready :where(table.edara-edl-room-table, table.edara-bail-contract-table) { min-width: 720px; }
html body.edara-responsive-ready :where(table.edara-sorties-summary-table) { min-width: 1320px; }
html body.edara-responsive-ready :where(table.edara-sorties-rent-table) { min-width: 1380px; }
html body.edara-responsive-ready :where(table.edara-sorties-table) { min-width: 1760px; }
}
@media (max-width: 1180px) {
    html body.edara-responsive-ready :where(
        table.edara-finance-table,
        table.edara-pointage-loyers-table,
        table.edara-patrimoine-table,
        table.edara-documents-bulk-table,
        table.edara-livre-compte-table,
        table.edara-livre-compte-premium-table,
        table.edara-bailleur-accounts-table,
        table.edara-bailleur-demandes-table,
        table.edara-bailleur-documents-table,
        table.edara-bailleur-simple-table,
        table.edara-locataire-doc-table,
        table.edara-locataire-demande-table,
        table.edara-locataire-logement-table,
        table.edara-locataire-finance-table,
        table.edara-edl-room-table,
        table.edara-bail-contract-table,
        table.edara-sorties-summary-table,
        table.edara-sorties-rent-table,
        table.edara-sorties-table
    ) {
        min-width: 0;
    }
}


html body.edara-responsive-ready :where(
    .edara-responsive-table-wrap,
    .edara-table-responsive,
    .edara-sorties-scroll,
    .edara-pointage-table-wrap,
    .edara-patrimoine-table-wrap,
    .edara-finance-table-wrap,
    .edara-livre-compte-table-wrap
) :where(table.edara-table) {
    margin: 0;
}

/* ==========================================================
   5. Actions et boutons.
   ========================================================== */
html body.edara-responsive-ready :where(
    .edara-actions-stack,
    .edara-inline-actions,
    .edara-sorties-actions,
    .edara-patrimoine-actions,
    .edara-patrimoine-shortcuts,
    .edara-bailleur-actions,
    .edara-client-actions,
    .edara-locataire-actions,
    .edara-locataire-card-actions,
    .edara-quick-search-actions,
    .edara-admin-actions-row
) {
    min-width: 0;
    max-width: 100%;
}

html body.edara-responsive-ready :where(
    .edara-button,
    a.edara-button,
    button.edara-button,
    input[type="submit"].edara-button,
    .edara-sorties-button,
    .edara-notification-button,
    .edara-open-button,
    .edara-delete-button,
    .edara-relance-button,
    .edara-reset-button,
    .edara-button-light,
    .edara-action-card-light
) {
    max-width: 100%;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
}

html body.edara-responsive-ready :where(td, th, .edara-actions-cell) :where(
    .edara-actions-stack,
    .edara-inline-actions,
    .edara-sorties-actions,
    .edara-patrimoine-actions,
    .edara-bailleur-actions,
    .edara-locataire-card-actions
) {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    max-width: 420px;
}

@media (min-width: 1181px) {
    html body.edara-responsive-ready :where(td, th, .edara-actions-cell) :where(
        .edara-button,
        a.edara-button,
        button.edara-button,
        input[type="submit"].edara-button,
        .edara-sorties-button,
        .edara-notification-button,
        .edara-open-button,
        .edara-delete-button,
        .edara-relance-button
    ) {
        width: auto;
        min-width: max-content;
        max-width: none;
        white-space: nowrap;
    }
}

/* ==========================================================
   6. Autocomplete / recherches rapides : contraste fiable au survol.
   ========================================================== */
html body.edara-responsive-ready :where(
    .edara-autocomplete-option:hover,
    .edara-autocomplete-option:focus,
    .edara-autocomplete-option.is-active,
    .edara-quick-search-option:hover,
    .edara-quick-search-option:focus,
    .edara-quick-search-option.is-active,
    .edara-sorties-bien-suggestion:hover,
    .edara-sorties-bien-suggestion.is-active
) {
    background: linear-gradient(135deg, #111111, #2a2419);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html body.edara-responsive-ready :where(
    .edara-autocomplete-option:hover *,
    .edara-autocomplete-option:focus *,
    .edara-autocomplete-option.is-active *,
    .edara-quick-search-option:hover *,
    .edara-quick-search-option:focus *,
    .edara-quick-search-option.is-active *,
    .edara-sorties-bien-suggestion:hover *,
    .edara-sorties-bien-suggestion.is-active *
) {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/* ==========================================================
   7. Générateur de baux : boutons de choix = formulaire, pas menu.
   ========================================================== */
html body.edara-responsive-ready :where(.edara-baux-toggle-row) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    overflow: visible;
    max-width: 100%;
}

html body.edara-responsive-ready :where(.edara-baux-toggle-row label) {
    flex: 1 1 210px;
    min-width: min(210px, 100%);
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
}

/* ==========================================================
   8. Utilitaires / structures EDARA.
   ========================================================== */
html body.edara-responsive-ready .edara-muted { color: #666; }
html body.edara-responsive-ready .edara-muted-small,
html body.edara-responsive-ready .edara-help-text {
    color: #666;
    font-size: 12px;
    line-height: 1.45;
}
html body.edara-responsive-ready .edara-help-text { display: block; margin-top: 4px; }
html body.edara-responsive-ready .edara-help-text-block { margin: 6px 0 0; }
html body.edara-responsive-ready .edara-subtabs-card-spaced { margin-bottom: 22px; }
html body.edara-responsive-ready .edara-subtabs-card-inline { margin: 18px 0 22px; }
html body.edara-responsive-ready .edara-edit-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}
html body.edara-responsive-ready .edara-edit-panel-card {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 20px;
    background: #fafafa;
    min-width: 0;
}
html body.edara-responsive-ready .edara-section-separator { margin: 18px 0; border: 0; border-top: 1px solid #eeeeee; }
html body.edara-responsive-ready .edara-field-separated { border-top: 1px solid #eeeeee; padding-top: 18px; margin-top: 10px; }
html body.edara-responsive-ready .edara-field-spaced { margin-bottom: 10px; }
html body.edara-responsive-ready .edara-bulk-toolbar { margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
html body.edara-responsive-ready .edara-bulk-field { margin: 0; min-width: 260px; }
html body.edara-responsive-ready .edara-table-select-col { width: 46px; text-align: center; }
html body.edara-responsive-ready .edara-table-select-cell { text-align: center; vertical-align: middle; }
html body.edara-responsive-ready .edara-table-control { max-width: 100%; }
html body.edara-responsive-ready .edara-table-control-xs { width: 120px; }
html body.edara-responsive-ready .edara-table-control-sm { width: 150px; }
html body.edara-responsive-ready .edara-table-control-md { width: 180px; }
html body.edara-responsive-ready .edara-table-control-lg { width: 220px; }
html body.edara-responsive-ready .edara-year-input { width: 85px; }
html body.edara-responsive-ready .edara-button-gold { background: #e2c08d; color: #000; font-weight: 700; }
html body.edara-responsive-ready .edara-button-danger { background: #b42318; border-color: #b42318; color: #ffffff; }
html body.edara-responsive-ready .edara-button-dark { background: #1a1a1a; color: #ffffff; }
html body.edara-responsive-ready .edara-text-danger { color: #d9363e; }
html body.edara-responsive-ready .edara-text-critical { color: #a8071a; }
html body.edara-responsive-ready .edara-text-success { color: #107c41; }
html body.edara-responsive-ready .edara-inline-form { display: inline-block; margin: 0; }
html body.edara-responsive-ready .edara-inline-form-spaced { margin-right: 6px; }
html body.edara-responsive-ready .edara-empty-table-cell { text-align: center; padding: 50px; color: #999999; }
html body.edara-responsive-ready .edara-soft-card { background: #fbfaf7; }
html body.edara-responsive-ready .edara-table-cell-flush { padding: 0; }
html body.edara-responsive-ready .edara-inline-edit-grid {
    display: grid;
    grid-template-columns: 150px 180px minmax(220px, 1fr) 160px 230px;
    gap: 10px;
    align-items: center;
    padding: 12px;
}
html body.edara-responsive-ready .edara-full-input { width: 100%; }
html body.edara-responsive-ready .edara-feature-card-left { border-left: 5px solid #111111; }
html body.edara-responsive-ready .edara-feature-icon { font-size: 36px; margin: 20px 0; }
html body.edara-responsive-ready .edara-list-compact { margin: 10px 0 0 18px; }
html body.edara-responsive-ready .edara-search-results-section { margin-top: 25px; }
html body.edara-responsive-ready .edara-nested-group { margin-left: 20px; }
html body.edara-responsive-ready .edara-nested-group-bien { margin-top: 18px; }
html body.edara-responsive-ready .edara-nested-group-locataire { margin-top: 14px; }
html body.edara-responsive-ready .edara-hidden-search-empty { display: none; margin-top: 14px; }
html body.edara-responsive-ready .edara-action-paragraph { margin-top: 14px; }
html body.edara-responsive-ready .edara-tight-top { margin-top: -4px; }

/* ==========================================================
   9. Création & affiliation EDARA : formulaires sans chevauchement.
   ========================================================== */
html body.edara-responsive-ready :where(.edara-entities-dashboard .edara-form) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: start;
}

html body.edara-responsive-ready :where(
    .edara-entities-dashboard .edara-form > h2,
    .edara-entities-dashboard .edara-form > h3,
    .edara-entities-dashboard .edara-form > p,
    .edara-entities-dashboard .edara-form > .edara-alert,
    .edara-entities-dashboard .edara-form > button,
    .edara-entities-dashboard .edara-form > .edara-button,
    .edara-entities-dashboard .edara-form > .edara-field-separated,
    .edara-entities-dashboard .edara-form > .edara-smart-filter-panel,
    .edara-entities-dashboard .edara-form > .edara-form-grid,
    .edara-entities-dashboard .edara-form > .edara-form-grid-2,
    .edara-entities-dashboard .edara-form > .edara-form-grid-3,
    .edara-entities-dashboard .edara-form > .edara-form-grid-4
) {
    grid-column: 1 / -1;
}

html body.edara-responsive-ready :where(.edara-entities-dashboard .edara-smart-filter-panel) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    align-items: end;
}

html body.edara-responsive-ready :where(.edara-entities-dashboard .edara-smart-filter-field-wide) {
    grid-column: 1 / -1;
}

html body.edara-responsive-ready :where(.edara-entities-dashboard .edara-form > button, .edara-entities-dashboard .edara-form > .edara-button) {
    justify-self: start;
}

/* ==========================================================
   11. Tablette et mobile : seules les tables opt-in .edara-responsive-table
       préparées par le JS deviennent des cartes responsive.
   ========================================================== */
@media (max-width: 1180px) {
    html body.edara-responsive-ready :where(
        .edara-admin-nav-sticky-holder,
        .edara-responsive-nav-holder
    ) {
        width: 100% !important;
        max-width: calc(100% - 28px) !important;
    }

    html body.edara-responsive-ready :where(.edara-admin-nav, .edara-subtabs, .edara-patrimoine-tabs, .edara-edit-tabs, .edara-baux-tabs) {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scroll-snap-type: x proximity !important;
    }

    html body.edara-responsive-ready :where(.edara-admin-nav a, .edara-subtab, .edara-patrimoine-tab, .edara-edit-tab, .edara-baux-type-tab) {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready) {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready thead) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready tbody) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready tr) {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: clamp(16px, 3vw, 22px) !important;
        border: 1px solid rgba(212, 175, 55, .28) !important;
        border-radius: 22px !important;
        background: linear-gradient(180deg, #ffffff, #fffdf7) !important;
        box-shadow: 0 12px 28px rgba(17, 17, 17, .07) !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready tr:hover) {
        transform: none !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready tr[hidden], .edara-card-table-ready tr.edara-table-row-hidden) {
        display: none !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td, .edara-card-table-ready th) {
        display: grid !important;
        grid-template-columns: minmax(104px, 36%) minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(17, 17, 17, .07) !important;
        background: transparent !important;
        color: #1f1f1f;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        line-height: 1.55 !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td:last-child, .edara-card-table-ready th:last-child) {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td::before, .edara-card-table-ready th::before) {
        content: attr(data-label) !important;
        display: block !important;
        min-width: 0 !important;
        font-weight: 900 !important;
        color: #6f581f !important;
        -webkit-text-fill-color: #6f581f !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td[data-edara-card-full="1"], .edara-card-table-ready th[data-edara-card-full="1"], .edara-card-table-ready .edara-actions-cell) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td[data-edara-card-full="1"]::before, .edara-card-table-ready th[data-edara-card-full="1"]::before, .edara-card-table-ready .edara-actions-cell::before) {
        margin-bottom: 8px !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready .edara-empty-table-cell) {
        display: block !important;
        text-align: center !important;
        padding: 28px 16px !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready .edara-money, .edara-card-table-ready .edara-money-cell, .edara-card-table-ready .edara-solde-cell, .edara-card-table-ready .edara-phone, .edara-card-table-ready .edara-status-badge, .edara-card-table-ready .edara-date-badge) {
        white-space: normal !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td > *, .edara-card-table-ready th > *) {
        max-width: 100% !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td :is(.edara-actions-stack, .edara-inline-actions, .edara-sorties-actions, .edara-patrimoine-actions, .edara-bailleur-actions, .edara-locataire-card-actions)) {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td :is(.edara-button, a.edara-button, button.edara-button, input[type="submit"].edara-button, .edara-sorties-button, .edara-notification-button, .edara-open-button, .edara-delete-button, .edara-relance-button)) {
        width: auto !important;
        min-width: min(100%, 132px) !important;
        min-height: 44px !important;
        padding: 11px 15px !important;
        border-radius: 15px !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body.edara-responsive-ready :where(.edara-responsive-table-wrap, .edara-table-responsive, .edara-mobile-scroll, .edara-sorties-scroll, .edara-pointage-table-wrap, .edara-patrimoine-table-wrap, .edara-finance-table-wrap, .edara-livre-compte-table-wrap, .edara-search-results-table-wrap, .edara-table-scroll-fallback, .edara-mobile-card-table-wrap) {
        overflow-x: visible !important;
        border-radius: 0 !important;
    }
}

/* ==========================================================
   12. Tablette.
   ========================================================== */
@media (min-width: 783px) and (max-width: 1180px) {
    html body.edara-responsive-ready :where(
        .edara-responsive-scope,
        .edara-dashboard,
        .edara-admin-space,
        .edara-admin-page,
        .edara-admin-page-shell,
        .edara-admin-control-dashboard,
        .edara-patrimoine-dashboard,
        .edara-baux-dashboard,
        .edara-edl-dashboard,
        .edara-quittances-dashboard,
        .edara-pointage-dashboard,
        .edara-financial-dashboard,
        .edara-livre-compte-dashboard,
        .edara-livre-compte-premium-dashboard,
        .edara-sorties-wrap,
        .edara-sorties-page,
        .edara-bailleur-space,
        .edara-bailleur-dashboard,
        .edara-bailleur-page-shell,
        .edara-locataire-space,
        .edara-locataire-dashboard,
        .edara-locataire-page-shell,
        .edara-locataire-compte-page,
        .edara-client-home,
        .edara-client-page-shell,
        .edara-profile-page,
        .edara-demand-response-page
    ) {
        width: 100%;
        max-width: 1180px;
        padding-left: 18px;
        padding-right: 18px;
    }

    html body.edara-responsive-ready :where(
        .edara-stats-grid,
        .edara-stats-grid-v2,
        .edara-dashboard-grid,
        .edara-actions-grid,
        .edara-tool-grid,
        .edara-diagnostic-actions-grid,
        .edara-diagnostic-checks,
        .edara-patrimoine-summary-grid,
        .edara-patrimoine-alert-grid,
        .edara-patrimoine-mini-alerts,
        .edara-bailleur-kpi-grid,
        .edara-bailleur-premium-summary,
        .edara-bailleur-priority-grid,
        .edara-bailleur-quick-grid,
        .edara-bailleur-account-grid,
        .edara-bailleur-filter-grid,
        .edara-locataire-kpi-grid,
        .edara-locataire-action-grid,
        .edara-locataire-logements-grid,
        .edara-locataire-finance-grid,
        .edara-locataire-alert-grid,
        .edara-locataire-info-grid,
        .edara-locataire-doc-tools,
        .edara-baux-stats-grid,
        .edara-baux-principles,
        .edara-baux-annexes-grid,
        .edara-form-grid,
        .edara-form-grid-2,
        .edara-form-grid-3,
        .edara-form-grid-4,
        .edara-baux-grid,
        .edara-edl-grid,
        .edara-two-columns,
        .edara-patrimoine-two-columns,
        .edara-sorties-grid,
        .edara-sorties-add-grid,
        .edara-sorties-filters,
        .edara-control-center-head,
        .edara-table-toolbar,
        .filter-bar,
        .edara-inline-field-row
    ) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* ==========================================================
   13. Smartphone.
   ========================================================== */
@media (max-width: 782px) {
    html body.edara-responsive-ready :where(
        .edara-responsive-scope,
        .edara-dashboard,
        .edara-admin-space,
        .edara-admin-page,
        .edara-admin-page-shell,
        .edara-admin-control-dashboard,
        .edara-admin-demande-page,
        .edara-admin-document-page,
        .edara-admin-relance-page,
            .edara-entities-dashboard,
        .edara-patrimoine-dashboard,
        .edara-baux-dashboard,
        .edara-edl-dashboard,
        .edara-quittances-dashboard,
        .edara-pointage-dashboard,
        .edara-financial-dashboard,
        .edara-livre-compte-dashboard,
        .edara-livre-compte-premium-dashboard,
        .edara-sorties-wrap,
        .edara-sorties-page,
        .edara-bailleur-space,
        .edara-bailleur-dashboard,
        .edara-bailleur-page-shell,
        .edara-bailleur-create-page,
        .edara-bailleur-add-sci-page,
        .edara-bailleur-add-bien-page,
        .edara-bailleur-add-locataire-page,
        .edara-locataire-space,
        .edara-locataire-dashboard,
        .edara-locataire-page-shell,
        .edara-locataire-compte-page,
        .edara-locataire-upload-page,
        .edara-client-home,
        .edara-client-page-shell,
        .edara-profile-page,
        .edara-demand-response-page,
            .edara-auth-alert-page
    ) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        min-width: 0 !important;
    }

    html body.edara-responsive-ready :where(
        .edara-card,
        .edara-section,
        .edara-form,
        .edara-stat-card,
        .edara-tool-card,
        .edara-control-center,
        .edara-subtabs-card,
        .edara-patrimoine-tabs-card,
        .edara-patrimoine-search-card,
        .edara-sorties-panel,
        .edara-bailleur-filter-panel,
        .edara-bailleur-priority-panel,
        .edara-bailleur-account-section,
        .edara-bailleur-account-detail,
        .edara-locataire-panel,
        .edara-locataire-account-card,
        .edara-locataire-compte-card,
        .edara-locataire-logement-card,
        .edara-locataire-upload-card,
        .edara-baux-form,
        .edara-edl-form,
        .edara-baux-intro,
        .edara-baux-legal-details,
        .edara-diagnostic-group,
        .edara-diagnostic-actions-card,
        .edara-admin-cleanup-card,
        .edara-admin-help-box,
        .edara-edit-panel-card
    ) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    html body.edara-responsive-ready :where(
        .edara-dashboard-header,
        .edara-page-hero,
        .edara-bailleur-hero,
        .edara-locataire-hero,
        .edara-sorties-header,
        .edara-bailleur-account-detail-header,
        .edara-bailleur-account-card-top,
        .edara-locataire-section-title,
        .edara-locataire-logement-top,
        .edara-locataire-account-head,
        .edara-control-center-head
    ) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 12px !important;
        text-align: left !important;
    }

    html body.edara-responsive-ready :where(.edara-dashboard-header h1, .edara-page-hero h1, .edara-bailleur-hero h1, .edara-locataire-hero h1) {
        max-width: 100% !important;
        font-size: clamp(22px, 7vw, 30px) !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
    }

    html body.edara-responsive-ready :where(
        .edara-stats-grid,
        .edara-stats-grid-v2,
        .edara-dashboard-grid,
        .edara-actions-grid,
        .edara-tool-grid,
        .edara-diagnostic-actions-grid,
        .edara-diagnostic-checks,
        .edara-patrimoine-summary-grid,
        .edara-patrimoine-alert-grid,
        .edara-patrimoine-mini-alerts,
        .edara-bailleur-kpi-grid,
        .edara-bailleur-premium-summary,
        .edara-bailleur-priority-grid,
        .edara-bailleur-quick-grid,
        .edara-bailleur-account-grid,
        .edara-bailleur-filter-grid,
        .edara-locataire-kpi-grid,
        .edara-locataire-action-grid,
        .edara-locataire-logements-grid,
        .edara-locataire-finance-grid,
        .edara-locataire-alert-grid,
        .edara-locataire-info-grid,
        .edara-locataire-doc-tools,
        .edara-baux-stats-grid,
        .edara-baux-principles,
        .edara-baux-annexes-grid,
        .edara-form-grid,
        .edara-form-grid-2,
        .edara-form-grid-3,
        .edara-form-grid-4,
        .edara-baux-grid,
        .edara-edl-grid,
        .edara-two-columns,
        .edara-patrimoine-two-columns,
        .edara-sorties-grid,
        .edara-sorties-add-grid,
        .edara-sorties-filters,
        .edara-smart-filter-panel,
        .edara-control-center-head,
        .edara-table-toolbar,
        .filter-bar,
        .edara-inline-field-row,
        .edara-edit-panels-grid,
        .edara-inline-edit-grid
    ) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    html body.edara-responsive-ready :where(.edara-actions-stack, .edara-inline-actions, .edara-sorties-actions, .edara-patrimoine-actions, .edara-patrimoine-shortcuts, .edara-bailleur-actions, .edara-client-actions, .edara-locataire-actions, .edara-locataire-card-actions, .edara-quick-search-actions, .edara-admin-actions-row) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.edara-responsive-ready :where(.edara-button, a.edara-button, button.edara-button, input[type="submit"].edara-button, .edara-sorties-button, .edara-notification-button, .edara-open-button, .edara-delete-button, .edara-relance-button, .edara-reset-button, .edara-button-light, .edara-action-card-light) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        white-space: normal !important;
        text-align: center !important;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td :is(.edara-button, a.edara-button, button.edara-button, input[type="submit"].edara-button, .edara-sorties-button, .edara-notification-button, .edara-open-button, .edara-delete-button, .edara-relance-button)) {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body.edara-responsive-ready :where(.edara-bulk-field, .edara-year-input, .edara-table-control, .edara-table-control-xs, .edara-table-control-sm, .edara-table-control-md, .edara-table-control-lg) {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body.edara-responsive-ready .edara-nested-group {
        margin-left: 0;
        padding-left: 12px;
        border-left: 2px solid rgba(212, 175, 55, .32);
    }

    html body.edara-responsive-ready .edara-nowrap-actions {
        white-space: normal;
    }


    html body.edara-responsive-ready :where(.edara-card-table-ready td, .edara-card-table-ready th) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
    }
}

@media (max-width: 520px) {
    html body.edara-responsive-ready :where(
        .edara-dashboard,
        .edara-admin-page-shell,
        .edara-admin-control-dashboard,
        .edara-bailleur-dashboard,
        .edara-bailleur-page-shell,
        .edara-locataire-dashboard,
        .edara-locataire-page-shell,
        .edara-client-page-shell,
        .edara-profile-page,
        .edara-demand-response-page
    ) {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-control-center, .edara-sorties-panel, .edara-locataire-panel, .edara-bailleur-filter-panel, .edara-edit-panel-card) {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    html body.edara-responsive-ready :where(.edara-admin-nav a) {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

/* Bouton retour haut — conservé, isolé de la mise en page. */
html body.edara-responsive-ready #edara-scroll-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8b15a, #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18), inset 0 2px 8px rgba(255,255,255,0.25);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    border: 2px solid rgba(255,255,255,0.15);
    box-sizing: border-box;
}
html body.edara-responsive-ready #edara-scroll-top span {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-2px);
}
html body.edara-responsive-ready #edara-scroll-top.edara-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 782px) {
    html body.edara-responsive-ready #edara-scroll-top {
        width: 46px;
        height: 46px;
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }
    html body.edara-responsive-ready #edara-scroll-top span { font-size: 24px; }
}

@media print {
    html body.edara-responsive-ready :where(.edara-generated-mobile-cards) { display: none !important; }
    html body.edara-responsive-ready :where(table.edara-responsive-table, table.edara-card-table-ready) {
        display: table !important;
        width: 100% !important;
        overflow: visible !important;
        min-width: 0 !important;
    }
    html body.edara-responsive-ready :where(table.edara-responsive-table, table.edara-card-table-ready) thead { display: table-header-group !important; }
    html body.edara-responsive-ready :where(table.edara-responsive-table, table.edara-card-table-ready) tbody { display: table-row-group !important; }
    html body.edara-responsive-ready :where(table.edara-responsive-table, table.edara-card-table-ready) tr { display: table-row !important; }
    html body.edara-responsive-ready :where(table.edara-responsive-table, table.edara-card-table-ready) :where(th, td) { display: table-cell !important; }
}

/* ==========================================================
   14. Page publique "Créer mon espace EDARA" — bloc unique isolé.
   IMPORTANT : cette page ne doit plus dépendre des shells admin/bailleur,
   ne doit plus utiliser 100vw, et ne doit jamais modifier les conteneurs
   du thème WordPress/Astra (#content, .entry-content, .site-content, etc.).
   ========================================================== */
html body.edara-registration-context .edara-registration-external-ghost,
html body.edara-responsive-ready .edara-registration-external-ghost {
    display: none !important;
    visibility: hidden !important;
}

html body.edara-registration-context .edara-public-register-shell,
html body.edara-responsive-ready .edara-public-register-shell {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: clamp(22px, 4vw, 48px) auto;
    padding: 0 clamp(16px, 3vw, 28px);
    color: #171717;
    -webkit-text-fill-color: initial;
    overflow: visible;
    transform: none;
}

html body.edara-registration-context .edara-public-register-shell,
html body.edara-registration-context .edara-public-register-shell *,
html body.edara-responsive-ready .edara-public-register-shell,
html body.edara-responsive-ready .edara-public-register-shell * {
    box-sizing: border-box;
}

html body.edara-registration-context .edara-public-register-layout,
html body.edara-responsive-ready .edara-public-register-layout {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(420px, 1.08fr);
    align-items: stretch;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 18px;
    overflow: visible;
    border-radius: 30px;
    border: 1px solid rgba(212,175,55,.30);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,250,241,.96));
    box-shadow: 0 22px 58px rgba(12,10,6,.12);
}

html body.edara-registration-context .edara-registration-hero,
html body.edara-registration-context .edara-registration-panel,
html body.edara-responsive-ready .edara-registration-hero,
html body.edara-responsive-ready .edara-registration-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    overflow: visible;
}

html body.edara-registration-context .edara-registration-hero,
html body.edara-responsive-ready .edara-registration-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(26px, 3.2vw, 42px);
    background: radial-gradient(circle at 15% 0%, rgba(212,175,55,.30), transparent 34%), linear-gradient(135deg, #070707 0%, #151515 58%, #292929 100%);
    color: #fff;
    border: 1px solid rgba(212,175,55,.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

html body.edara-registration-context .edara-registration-brand,
html body.edara-responsive-ready .edara-registration-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--edara-gold-gradient);
    color: #111;
    -webkit-text-fill-color: #111;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body.edara-registration-context .edara-registration-hero h2,
html body.edara-responsive-ready .edara-registration-hero h2 {
    margin: 0;
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: clamp(25px, 3vw, 39px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -.035em;
    overflow-wrap: normal;
}

html body.edara-registration-context .edara-registration-benefits,
html body.edara-responsive-ready .edara-registration-benefits {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

html body.edara-registration-context .edara-registration-benefits li,
html body.edara-responsive-ready .edara-registration-benefits li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 0;
    color: rgba(255,255,255,.88);
    -webkit-text-fill-color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: normal;
}

html body.edara-registration-context .edara-registration-benefits li::before,
html body.edara-responsive-ready .edara-registration-benefits li::before {
    content: "◆";
    display: inline-block;
    color: var(--edara-gold-2, #d4af37);
    -webkit-text-fill-color: var(--edara-gold-2, #d4af37);
    font-size: 12px;
    line-height: 1.75;
}

html body.edara-registration-context .edara-registration-panel,
html body.edara-responsive-ready .edara-registration-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 3vw, 38px);
    background: #fff;
    border: 1px solid rgba(212,175,55,.18);
    box-shadow: 0 12px 34px rgba(12,10,6,.06);
    color: #181818;
    -webkit-text-fill-color: initial;
}

html body.edara-registration-context .edara-registration-head,
html body.edara-responsive-ready .edara-registration-head {
    display: grid;
    gap: 8px;
    margin: 0;
}

html body.edara-registration-context .edara-registration-eyebrow,
html body.edara-responsive-ready .edara-registration-eyebrow {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff7df;
    border: 1px solid rgba(212,175,55,.34);
    color: #6b4f0b;
    -webkit-text-fill-color: #6b4f0b;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body.edara-registration-context .edara-registration-panel h3,
html body.edara-responsive-ready .edara-registration-panel h3 {
    margin: 0;
    color: #121212;
    -webkit-text-fill-color: #121212;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -.03em;
}

html body.edara-registration-context .edara-registration-intro,
html body.edara-responsive-ready .edara-registration-intro {
    margin: 0;
    max-width: 58ch;
    color: #57534a;
    -webkit-text-fill-color: #57534a;
    font-size: 15px;
    line-height: 1.62;
}

html body.edara-registration-context .edara-registration-content,
html body.edara-responsive-ready .edara-registration-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

html body.edara-registration-context .edara-registration-content .edara-alert,
html body.edara-responsive-ready .edara-registration-content .edara-alert {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 15px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 750;
}

html body.edara-registration-context .edara-registration-content .edara-alert:last-child,
html body.edara-responsive-ready .edara-registration-content .edara-alert:last-child {
    margin-bottom: 0;
}

html body.edara-registration-context .edara-registration-connected-alert,
html body.edara-responsive-ready .edara-registration-connected-alert {
    background: #ecfdf3;
    border: 1px solid rgba(22, 163, 74, .30);
    color: #166534;
    -webkit-text-fill-color: #166534;
}

html body.edara-registration-context .edara-public-register-form,
html body.edara-registration-context form.edara-public-register-form,
html body.edara-responsive-ready .edara-public-register-form,
html body.edara-responsive-ready form.edara-public-register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 15px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html body.edara-registration-context .edara-registration-field,
html body.edara-responsive-ready .edara-registration-field {
    display: grid;
    gap: 7px;
    align-content: start;
    min-width: 0;
}

html body.edara-registration-context .edara-registration-field label,
html body.edara-responsive-ready .edara-registration-field label {
    color: #211b12;
    -webkit-text-fill-color: #211b12;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
}

html body.edara-registration-context .edara-registration-field input,
html body.edara-registration-context .edara-registration-field select,
html body.edara-registration-context .edara-registration-field textarea,
html body.edara-responsive-ready .edara-registration-field input,
html body.edara-responsive-ready .edara-registration-field select,
html body.edara-responsive-ready .edara-registration-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid rgba(120,103,69,.24);
    background: #fffdf8;
    color: #161616;
    -webkit-text-fill-color: #161616;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: none;
}

html body.edara-registration-context .edara-registration-field input:focus,
html body.edara-registration-context .edara-registration-field select:focus,
html body.edara-registration-context .edara-registration-field textarea:focus,
html body.edara-responsive-ready .edara-registration-field input:focus,
html body.edara-responsive-ready .edara-registration-field select:focus,
html body.edara-responsive-ready .edara-registration-field textarea:focus {
    outline: none;
    border-color: rgba(212,175,55,.75);
    box-shadow: 0 0 0 3px rgba(212,175,55,.16);
}

html body.edara-registration-context .edara-registration-help,
html body.edara-responsive-ready .edara-registration-help {
    color: #746a5d;
    -webkit-text-fill-color: #746a5d;
    font-size: 12px;
    line-height: 1.45;
}


html body.edara-registration-context .edara-registration-followup-note,
html body.edara-responsive-ready .edara-registration-followup-note {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,55,.28);
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    color: #5a4a2b;
    -webkit-text-fill-color: #5a4a2b;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 650;
}

html body.edara-registration-context .edara-honeypot-field,
html body.edara-responsive-ready .edara-honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

html body.edara-registration-context .edara-registration-field-role,
html body.edara-registration-context .edara-registration-field-full,
html body.edara-registration-context .edara-registration-submit,
html body.edara-responsive-ready .edara-registration-field-role,
html body.edara-responsive-ready .edara-registration-field-full,
html body.edara-responsive-ready .edara-registration-submit {
    grid-column: 1 / -1;
}

html body.edara-registration-context .edara-registration-submit,
html body.edara-responsive-ready .edara-registration-submit,
html body.edara-registration-context .edara-public-register-form button[type="submit"],
html body.edara-responsive-ready .edara-public-register-form button[type="submit"] {
    justify-self: start;
    width: auto;
    max-width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    white-space: normal;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 950;
}

/* Alignement desktop du formulaire d'inscription : rangées cohérentes et champs lisibles. */
@media (min-width: 921px) {
    html body.edara-registration-context .edara-public-register-shell,
    html body.edara-responsive-ready .edara-public-register-shell {
        max-width: 1120px;
    }

    html body.edara-registration-context .edara-registration-panel,
    html body.edara-responsive-ready .edara-registration-panel {
        align-self: stretch;
    }

    html body.edara-registration-context .edara-public-register-form,
    html body.edara-registration-context form.edara-public-register-form,
    html body.edara-responsive-ready .edara-public-register-form,
    html body.edara-responsive-ready form.edara-public-register-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    html body.edara-registration-context .edara-registration-field-role,
    html body.edara-responsive-ready .edara-registration-field-role {
        grid-column: 1 / -1;
    }

    html body.edara-registration-context .edara-registration-submit,
    html body.edara-responsive-ready .edara-registration-submit,
    html body.edara-registration-context .edara-public-register-form button[type="submit"],
    html body.edara-responsive-ready .edara-public-register-form button[type="submit"] {
        justify-self: stretch;
        width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    html body.edara-registration-context .edara-public-register-shell,
    html body.edara-responsive-ready .edara-public-register-shell {
        max-width: 760px;
        padding-left: clamp(14px, 3vw, 22px);
        padding-right: clamp(14px, 3vw, 22px);
    }

    html body.edara-registration-context .edara-public-register-layout,
    html body.edara-responsive-ready .edara-public-register-layout {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
        border-radius: 26px;
    }

    html body.edara-registration-context .edara-registration-hero,
    html body.edara-registration-context .edara-registration-panel,
    html body.edara-responsive-ready .edara-registration-hero,
    html body.edara-responsive-ready .edara-registration-panel {
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    html body.edara-registration-context .edara-public-register-shell,
    html body.edara-responsive-ready .edara-public-register-shell {
        margin-top: 14px;
        margin-bottom: 22px;
        padding-left: 12px;
        padding-right: 12px;
    }

    html body.edara-registration-context .edara-public-register-layout,
    html body.edara-responsive-ready .edara-public-register-layout {
        padding: 9px;
        gap: 10px;
    }

    html body.edara-registration-context .edara-registration-hero,
    html body.edara-registration-context .edara-registration-panel,
    html body.edara-responsive-ready .edara-registration-hero,
    html body.edara-responsive-ready .edara-registration-panel {
        padding: 20px;
        border-radius: 20px;
    }

    html body.edara-registration-context .edara-public-register-form,
    html body.edara-registration-context form.edara-public-register-form,
    html body.edara-responsive-ready .edara-public-register-form,
    html body.edara-responsive-ready form.edara-public-register-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    html body.edara-registration-context .edara-registration-submit,
    html body.edara-responsive-ready .edara-registration-submit,
    html body.edara-registration-context .edara-public-register-form button[type="submit"],
    html body.edara-responsive-ready .edara-public-register-form button[type="submit"] {
        justify-self: stretch;
        width: 100%;
    }
}


/* ==========================================================
   15. Garde-fou thème WordPress/Astra limité au contexte EDARA.
   Ce bloc reste volontairement non prioritaire : il corrige le logo uniquement
   lorsque la classe body EDARA est présente, sans combattre le thème.
   ========================================================== */
html body.edara-responsive-ready :where(
    #masthead .custom-logo-link,
    #masthead .site-logo-img,
    #masthead .ast-site-identity,
    .site-header .custom-logo-link,
    .site-header .site-logo-img,
    .site-header .ast-site-identity,
    .main-header-bar .site-branding,
    .ast-primary-header-bar .site-branding
) {
    max-width: 100%;
    min-width: 0;
}

html body.edara-responsive-ready :where(
    #masthead img,
    #masthead .custom-logo,
    #masthead .custom-logo-link img,
    #masthead .site-logo-img img,
    #masthead .ast-site-identity img,
    header.site-header img,
    .wp-block-template-part header img,
    .site-header .custom-logo,
    .site-header .custom-logo-link img,
    .site-header .site-logo-img img,
    .site-header .ast-site-identity img,
    .main-header-bar .custom-logo,
    .main-header-bar .custom-logo-link img,
    .ast-primary-header-bar .custom-logo,
    .ast-primary-header-bar .custom-logo-link img
) {
    display: block;
    width: auto;
    max-width: min(620px, 70vw);
    max-height: 178px;
    height: auto;
    object-fit: contain;
}

html body.edara-responsive-ready :where(
    #masthead .ast-container,
    #masthead .main-header-container,
    .site-header .ast-container,
    .main-header-bar .ast-container,
    .ast-primary-header-bar .ast-container
) {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

html body.edara-responsive-ready :where(
    #masthead .main-header-bar,
    #masthead .ast-primary-header-bar,
    .site-header .main-header-bar,
    .site-header .ast-primary-header-bar
) {
    min-height: 0;
}

@media (max-width: 782px) {
    html body.edara-responsive-ready :where(
        #masthead img,
        #masthead .custom-logo,
        #masthead .custom-logo-link img,
        #masthead .site-logo-img img,
        #masthead .ast-site-identity img,
        header.site-header img,
        .wp-block-template-part header img,
        .site-header .custom-logo,
        .site-header .custom-logo-link img,
        .site-header .site-logo-img img,
        .site-header .ast-site-identity img
    ) {
        max-width: min(420px, 82vw);
        max-height: 128px;
    }
}


/* ==========================================================
   EDARA v3.1.100 — respiration visuelle globale des tableaux scellée.
   Objectif : rendre les listes admin/bailleur/locataire plus aérées,
   sans modifier la logique responsive en cartes déjà stabilisée.
   ========================================================== */
html body.edara-responsive-ready :where(
    .edara-responsive-scope,
    .edara-dashboard,
    .edara-admin-page-shell,
    .edara-admin-control-dashboard,
    .edara-bailleur-dashboard,
    .edara-bailleur-page-shell,
    .edara-locataire-dashboard,
    .edara-locataire-page-shell,
    .edara-financial-dashboard,
    .edara-pointage-dashboard,
    .edara-patrimoine-dashboard,
    .edara-entities-dashboard,
    .edara-sorties-wrap,
    .edara-livre-compte-dashboard,
    .edara-livre-compte-premium-dashboard,
    .edara-baux-dashboard,
    .edara-quittances-dashboard
) {
    --edara-table-cell-x: clamp(16px, 1.05vw, 24px);
    --edara-table-cell-y: clamp(14px, .9vw, 20px);
    --edara-table-head-x: clamp(16px, 1vw, 22px);
    --edara-table-head-y: clamp(13px, .8vw, 17px);
    --edara-table-row-gap: 8px;
    --edara-table-line-height: 1.55;
    --edara-table-button-gap: 10px;
}

@media (min-width: 1181px) {
    html body.edara-responsive-ready :where(
        .edara-responsive-table-wrap,
        .edara-table-responsive,
        .edara-mobile-scroll,
        .edara-pointage-table-wrap,
        .edara-patrimoine-table-wrap,
        .edara-finance-table-wrap,
        .edara-livre-compte-table-wrap,
        .edara-search-results-table-wrap,
        .edara-table-scroll-fallback,
        .edara-mobile-card-table-wrap
    ) {
        padding: 8px;
        background: linear-gradient(180deg, #fffdf7, #ffffff);
        border: 1px solid rgba(212, 175, 55, .22);
        border-radius: 24px;
        box-shadow: 0 12px 30px rgba(17, 17, 17, .045);
    }

    html body.edara-responsive-ready :where(.edara-sorties-scroll) {
        padding: 6px;
        border-radius: 22px;
        background: #fffdf7;
    }

    html body.edara-responsive-ready :where(
        table.edara-table,
        table.edara-finance-table,
        table.edara-pointage-loyers-table,
        table.edara-patrimoine-table,
        table.edara-bailleur-accounts-table,
        table.edara-bailleur-simple-table,
        table.edara-bailleur-documents-table,
        table.edara-bailleur-demandes-table,
        table.edara-locataire-doc-table,
        table.edara-locataire-demande-table,
        table.edara-livre-compte-table,
        table.edara-livre-compte-premium-table,
        table.edara-sorties-summary-table,
        table.edara-sorties-rent-table,
        .edara-card:not(.edara-no-card-table) table,
        .edara-section:not(.edara-no-card-table) table
    ) {
        border-collapse: separate;
        border-spacing: 0 var(--edara-table-row-gap);
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    html body.edara-responsive-ready :where(
        table.edara-table thead th,
        table.edara-finance-table thead th,
        table.edara-pointage-loyers-table thead th,
        table.edara-patrimoine-table thead th,
        table.edara-bailleur-accounts-table thead th,
        table.edara-bailleur-simple-table thead th,
        table.edara-bailleur-documents-table thead th,
        table.edara-bailleur-demandes-table thead th,
        table.edara-locataire-doc-table thead th,
        table.edara-locataire-demande-table thead th,
        table.edara-livre-compte-table thead th,
        table.edara-livre-compte-premium-table thead th,
        table.edara-sorties-summary-table thead th,
        table.edara-sorties-rent-table thead th,
        .edara-card:not(.edara-no-card-table) table thead th,
        .edara-section:not(.edara-no-card-table) table thead th
    ) {
        padding: var(--edara-table-head-y) var(--edara-table-head-x);
        line-height: 1.35;
        vertical-align: middle;
        border: 0;
    }

    html body.edara-responsive-ready :where(
        table.edara-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-finance-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-pointage-loyers-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-patrimoine-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-accounts-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-simple-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-documents-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-demandes-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-locataire-doc-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-locataire-demande-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-livre-compte-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-livre-compte-premium-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-sorties-summary-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-sorties-rent-table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        .edara-card:not(.edara-no-card-table) table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        .edara-section:not(.edara-no-card-table) table tbody tr:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td
    ) {
        padding: var(--edara-table-cell-y) var(--edara-table-cell-x);
        line-height: var(--edara-table-line-height);
        vertical-align: middle;
        border-top: 1px solid rgba(17, 17, 17, .055);
        border-bottom: 1px solid rgba(17, 17, 17, .055);
        background: #ffffff;
    }

    html body.edara-responsive-ready :where(
        table.edara-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-finance-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-pointage-loyers-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-patrimoine-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-accounts-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-simple-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-documents-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-demandes-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-locataire-doc-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-locataire-demande-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-livre-compte-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-livre-compte-premium-table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        .edara-card:not(.edara-no-card-table) table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        .edara-section:not(.edara-no-card-table) table tbody tr:nth-child(even):not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td
    ) {
        background: #fff8ea;
    }

    html body.edara-responsive-ready :where(
        table.edara-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-finance-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-pointage-loyers-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-patrimoine-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-accounts-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-simple-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-documents-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-bailleur-demandes-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-locataire-doc-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-livre-compte-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        table.edara-livre-compte-premium-table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        .edara-card:not(.edara-no-card-table) table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td,
        .edara-section:not(.edara-no-card-table) table tbody tr:hover:not(.category-row):not(.type-entree):not(.type-sortie):not(.edara-notification-row):not(.edara-alert-row) td
    ) {
        background: #fff2cf;
    }

    html body.edara-responsive-ready :where(
        table.edara-table tbody td:first-child,
        table.edara-finance-table tbody td:first-child,
        table.edara-pointage-loyers-table tbody td:first-child,
        table.edara-patrimoine-table tbody td:first-child,
        table.edara-bailleur-accounts-table tbody td:first-child,
        table.edara-bailleur-simple-table tbody td:first-child,
        table.edara-bailleur-documents-table tbody td:first-child,
        table.edara-bailleur-demandes-table tbody td:first-child,
        table.edara-locataire-doc-table tbody td:first-child,
        table.edara-locataire-demande-table tbody td:first-child,
        table.edara-livre-compte-table tbody td:first-child,
        table.edara-livre-compte-premium-table tbody td:first-child,
        .edara-card:not(.edara-no-card-table) table tbody td:first-child,
        .edara-section:not(.edara-no-card-table) table tbody td:first-child
    ) {
        border-left: 1px solid rgba(17, 17, 17, .055);
        border-radius: 18px 0 0 18px;
        padding-left: calc(var(--edara-table-cell-x) + 4px);
    }

    html body.edara-responsive-ready :where(
        table.edara-table tbody td:last-child,
        table.edara-finance-table tbody td:last-child,
        table.edara-pointage-loyers-table tbody td:last-child,
        table.edara-patrimoine-table tbody td:last-child,
        table.edara-bailleur-accounts-table tbody td:last-child,
        table.edara-bailleur-simple-table tbody td:last-child,
        table.edara-bailleur-documents-table tbody td:last-child,
        table.edara-bailleur-demandes-table tbody td:last-child,
        table.edara-locataire-doc-table tbody td:last-child,
        table.edara-locataire-demande-table tbody td:last-child,
        table.edara-livre-compte-table tbody td:last-child,
        table.edara-livre-compte-premium-table tbody td:last-child,
        .edara-card:not(.edara-no-card-table) table tbody td:last-child,
        .edara-section:not(.edara-no-card-table) table tbody td:last-child
    ) {
        border-right: 1px solid rgba(17, 17, 17, .055);
        border-radius: 0 18px 18px 0;
        padding-right: calc(var(--edara-table-cell-x) + 4px);
    }

    html body.edara-responsive-ready :where(
        table.edara-table tbody td,
        table.edara-bailleur-accounts-table tbody td,
        table.edara-patrimoine-table tbody td,
        table.edara-pointage-loyers-table tbody td
    ) :where(strong, b) {
        line-height: 1.42;
    }

    html body.edara-responsive-ready :where(
        .edara-actions-stack,
        .edara-inline-actions,
        .edara-sorties-actions,
        .edara-patrimoine-actions,
        .edara-bailleur-actions,
        .edara-locataire-card-actions
    ) {
        gap: var(--edara-table-button-gap);
    }

    html body.edara-responsive-ready :where(td, th, .edara-actions-cell) :where(
        .edara-button,
        a.edara-button,
        button.edara-button,
        input[type="submit"].edara-button,
        .edara-sorties-button,
        .edara-notification-button,
        .edara-open-button,
        .edara-delete-button,
        .edara-relance-button
    ) {
        min-height: 42px;
        padding: 10px 16px;
        border-radius: 15px;
        line-height: 1.2;
        margin: 0;
    }

    html body.edara-responsive-ready :where(
        .edara-status-badge,
        .edara-date-badge,
        .edara-balance-badge,
        .edara-bailleur-pill,
        .edara-sci-badge
    ) {
        padding: 8px 13px;
        line-height: 1.2;
        border-radius: 999px;
    }

    html body.edara-responsive-ready :where(
        .edara-bailleur-accounts-table td small,
        .edara-table td small,
        .edara-card table td small,
        .edara-section table td small
    ) {
        display: inline-block;
        margin-top: 4px;
        line-height: 1.45;
    }
}

/* EDARA v3.1.100 — doublon d’aération mobile fusionné dans le bloc principal. */


/* EDARA v3.1.100 — préservation des couleurs métier après aération. */
html body.edara-responsive-ready :where(.edara-sorties-table tr.category-row td) {
    background: #f2e6d3;
    color: #171717;
    -webkit-text-fill-color: #171717;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}
html body.edara-responsive-ready :where(.edara-sorties-table tr.type-entree td) {
    background: #f1fbf4;
}
html body.edara-responsive-ready :where(.edara-sorties-table tr.type-sortie td) {
    background: #fffafa;
}
html body.edara-responsive-ready :where(.edara-notification-row td) {
    background: #fff7ed;
}
html body.edara-responsive-ready :where(.edara-notification-row:hover td) {
    background: #ffedd5;
}

/* Mission 14 — Navigation groupée : comportement tablette/mobile */
@media (max-width: 1180px) {
    html body.edara-responsive-ready .edara-admin-nav.edara-admin-nav-grouped {
        align-items: center;
    }

    html body.edara-responsive-ready .edara-admin-nav-groups {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    html body.edara-responsive-ready .edara-admin-nav-group {
        flex: 0 0 auto;
        align-items: center;
    }

    html body.edara-responsive-ready .edara-admin-nav-group-links {
        flex-wrap: nowrap;
    }
}

@media (max-width: 640px) {
    html body.edara-responsive-ready .edara-admin-nav.edara-admin-nav-grouped {
        gap: 8px;
        padding: 8px;
    }

    html body.edara-responsive-ready .edara-admin-nav-group {
        gap: 6px;
        padding: 5px;
        border-radius: 18px;
    }

    html body.edara-responsive-ready .edara-admin-nav-group-title {
        min-height: 30px;
        padding: 0 8px;
        font-size: 9px;
    }

    html body.edara-responsive-ready .edara-admin-nav.edara-admin-nav-grouped a.edara-admin-nav-link {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 12px;
    }
}



/* Mission 17D — off-canvas admin nav overrides responsive legacy group rules */
@media (max-width: 1180px) {
    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-pill {
        display: flex;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-groups {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
        flex: none;
        gap: 12px;
        width: 100%;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-group {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 13px;
        border-radius: 22px;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-group-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        flex-wrap: initial;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-pill {
        gap: 8px;
        padding: 6px;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-brand {
        min-height: 38px;
        padding: 7px 10px;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-brand span {
        display: none;
    }

    html body.edara-responsive-ready .edara-admin-nav-offcanvas-mode .edara-admin-nav-group-title {
        min-height: 0;
        padding: 0;
        font-size: 11px;
    }
}

/* EDARA Mission 17F — respiration mobile/tablette.
 * Garde l’interface compacte sur petit écran sans coller les contenus aux bords.
 */
@media (max-width: 782px) {
    html body.edara-responsive-ready {
        --edara-card-padding: clamp(16px, 4vw, 22px);
        --edara-card-padding-sm: clamp(14px, 3.6vw, 18px);
        --edara-content-gap: 12px;
        --edara-section-gap: 16px;
    }

    html body.edara-responsive-ready :where(
        .edara-card,
        .edara-section,
        .edara-form,
        .edara-control-center,
        .edara-tool-section,
        .edara-tool-card,
        .edara-subtabs-card,
        .edara-patrimoine-tabs-card,
        .edara-patrimoine-search-card,
        .edara-smart-filter-panel,
        .edara-sorties-panel,
        .edara-bailleur-filter-panel,
        .edara-bailleur-account-section,
        .edara-bailleur-account-detail,
        .edara-locataire-panel,
        .edara-edit-panel-card,
        .edara-baux-intro,
        .edara-baux-legal-details,
        .edara-dashboard .filter-bar,
        .edara-admin-page-shell .filter-bar,
        .edara-bailleur-page-shell .filter-bar,
        .edara-locataire-page-shell .filter-bar
    ) {
        padding: var(--edara-card-padding) !important;
        border-radius: 18px !important;
    }

    html body.edara-responsive-ready :where(.edara-alert, .edara-help-text-block, .edara-admin-help-text, .edara-action-card-light, .edara-locataire-action-card, .edara-bailleur-quick-card) {
        padding: var(--edara-card-padding-sm) !important;
    }

    html body.edara-responsive-ready :where(.edara-dashboard-header, .edara-page-hero, .edara-bailleur-hero, .edara-client-home, .edara-auth-alert-page) {
        padding: clamp(20px, 5vw, 28px) !important;
        border-radius: 20px !important;
    }

    html body.edara-responsive-ready :where(.edara-subtabs, .edara-patrimoine-tabs, .edara-edit-tabs, .edara-patrimoine-shortcuts, .edara-client-actions) {
        gap: 8px !important;
    }

    html body.edara-responsive-ready :where(.edara-subtab, .edara-patrimoine-tab, .edara-edit-tab, .edara-button, .edara-button-light) {
        min-height: 40px;
        padding-left: 12px;
        padding-right: 12px;
    }

    html body.edara-responsive-ready :where(.edara-card-table-ready td, .edara-card-table-ready th) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}



/* ==========================================================
   EDARA v3.1.116 — Mission 17O : vérification responsive globale
   Tables admin / bailleur / locataire : scroll propre, lisibilité mobile,
   sans modifier les calculs ni les données.
   ========================================================== */
@media (max-width: 1180px) {
    html body.edara-responsive-ready :where(
        .edara-admin-page-shell,
        .edara-bailleur-page-shell,
        .edara-locataire-page-shell,
        .edara-client-page-shell,
        .edara-dashboard,
        .edara-responsive-scope
    ) :where(.edara-responsive-table-wrap, .edara-table-responsive, .edara-sorties-scroll) {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    html body.edara-responsive-ready :where(
        table.edara-table,
        table.edara-finance-table,
        table.edara-pointage-loyers-table,
        table.edara-patrimoine-table,
        table.edara-documents-bulk-table,
        table.edara-livre-compte-table,
        table.edara-livre-compte-premium-table,
        table.edara-bailleur-accounts-table,
        table.edara-bailleur-simple-table,
        table.edara-bailleur-documents-table,
        table.edara-bailleur-demandes-table,
        table.edara-locataire-logement-table,
        table.edara-locataire-finance-table,
        table.edara-locataire-doc-table,
        table.edara-locataire-demande-table,
        table.edara-sorties-summary-table,
        table.edara-sorties-rent-table,
        table.edara-sorties-table
    ) {
        min-width: max-content;
    }

    html body.edara-responsive-ready :where(
        table.edara-locataire-logement-table,
        table.edara-locataire-finance-table,
        table.edara-bailleur-accounts-table,
        table.edara-locataire-doc-table,
        table.edara-locataire-demande-table,
        table.edara-bailleur-documents-table,
        table.edara-bailleur-demandes-table,
        table.edara-bailleur-simple-table
    ) {
        min-width: 860px;
    }

    html body.edara-responsive-ready :where(
        table.edara-patrimoine-table,
        table.edara-documents-bulk-table,
        table.edara-finance-table,
        table.edara-livre-compte-table,
        table.edara-livre-compte-premium-table,
        table.edara-pointage-loyers-table
    ) {
        min-width: 980px;
    }
}

@media (max-width: 760px) {
    html body.edara-responsive-ready :where(
        table.edara-locataire-logement-table,
        table.edara-locataire-finance-table,
        table.edara-bailleur-accounts-table,
        table.edara-locataire-doc-table,
        table.edara-locataire-demande-table,
        table.edara-bailleur-documents-table,
        table.edara-bailleur-demandes-table,
        table.edara-bailleur-simple-table
    ) {
        min-width: 760px;
    }

    html body.edara-responsive-ready :where(.edara-responsive-table-wrap, .edara-table-responsive, .edara-sorties-scroll)::after {
        content: "Glissez horizontalement pour voir toutes les colonnes";
        display: block;
        padding: 8px 4px 0;
        color: var(--edara-muted);
        font-size: 12px;
        font-weight: 850;
    }
}
