/* EDARA point 74 : design system allégé. Les surcharges fortes ne doivent plus verrouiller le layout responsive. */
/* EDARA Mission 1 : variables de charte centralisées dans assets/css/edara-base.css. */
/* Point 84 : plus de overflow-x:hidden global sur html/body.
   Le scroll horizontal doit être traité dans les wrappers EDARA, pas masqué au niveau du site. */
body.edara-responsive-ready {
    max-width: 100%;
}

body .edara-dashboard,
body .edara-card,
body .edara-form,
body .edara-section,
body .edara-stats-grid,
body .edara-actions-grid,
body .edara-subtabs,
body .edara-table,
body .edara-admin-nav,
body .edara-patrimoine-summary-grid,
body .edara-patrimoine-tabs,
body .edara-patrimoine-two-columns,
body .edara-patrimoine-alert-grid,
body .edara-patrimoine-mini-alerts {
    box-sizing: border-box;
}

body .edara-dashboard,
body .edara-patrimoine-dashboard {
    width: 100%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    color: var(--edara-text);
}

body .edara-dashboard-header {
    position: relative;
    overflow: hidden;
    background: var(--edara-dark-gradient);
    border: 1px solid rgba(212,175,55,.42);
    border-radius: 28px;
    padding: clamp(26px, 4vw, 44px);
    box-shadow: 0 18px 55px rgba(5,5,5,.18);
    color: #ffffff;
}

body .edara-dashboard-header::after {
    content: "";
    position: absolute;
    left: clamp(24px, 4vw, 44px);
    right: clamp(24px, 4vw, 44px);
    bottom: 0;
    height: 3px;
    background: var(--edara-gold-gradient);
    opacity: .95;
}

body .edara-dashboard-header h1,
body .edara-dashboard-header h2,
body .edara-dashboard-header p,
body .edara-dashboard-header .edara-muted {
    position: relative;
    z-index: 1;
}

body .edara-dashboard-header h1,
body .edara-dashboard-header h2 {
    color: #ffffff;
    letter-spacing: -.02em;
    line-height: 1.08;
}

body .edara-dashboard-header p,
body .edara-dashboard-header .edara-muted,
body .edara-dashboard-header small {
    color: rgba(255,255,255,.82);
}

body .edara-card,
body .edara-stat-card,
body .edara-action-card-light,
body .edara-subtabs-card,
body .edara-patrimoine-stat,
body .edara-patrimoine-alert-box,
body .edara-patrimoine-tabs-card,
body .edara-patrimoine-search-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
    color: var(--edara-text);
    border: 1px solid var(--edara-border);
    border-radius: var(--edara-radius);
    box-shadow: var(--edara-shadow-soft);
}

body .edara-card,
body .edara-section {
    margin-bottom: 24px;
}

body .edara-card h1,
body .edara-card h2,
body .edara-card h3,
body .edara-card h4,
body .edara-card h5,
body .edara-card h6,
body .edara-section h1,
body .edara-section h2,
body .edara-section h3,
body .edara-section h4,
body .edara-form label,
body .edara-patrimoine-search-label,
body .edara-patrimoine-stat-number,
body .edara-patrimoine-stat-label,
body .edara-patrimoine-alert-box h3 {
    color: var(--edara-ink);
}

body .edara-muted,
body .edara-patrimoine-stat-hint,
body .edara-patrimoine-table small,
body .edara-muted-value,
body .edara-dashboard small,
body .edara-admin-page-shell small,
body .edara-bailleur-page-shell small,
body .edara-locataire-page-shell small,
body .edara-client-page-shell small {
    color: var(--edara-muted);
}

body .edara-form input,
body .edara-form select,
body .edara-form textarea,
body .edara-card input,
body .edara-card select,
body .edara-card textarea,
body .edara-patrimoine-search,
body #edara_quittance_bien_search {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    border: 1px solid var(--edara-border-strong);
    border-radius: var(--edara-radius-sm);
    background: linear-gradient(180deg, #ffffff, var(--edara-cream-2));
    color: var(--edara-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

body .edara-form input::placeholder,
body .edara-form textarea::placeholder,
body .edara-card input::placeholder,
body .edara-card textarea::placeholder,
body .edara-patrimoine-search::placeholder,
body #edara_quittance_bien_search::placeholder {
    color: #807567;
}

body .edara-form input:focus,
body .edara-form select:focus,
body .edara-form textarea:focus,
body .edara-card input:focus,
body .edara-card select:focus,
body .edara-card textarea:focus,
body .edara-patrimoine-search:focus,
body #edara_quittance_bien_search:focus {
    outline: none;
    border-color: var(--edara-gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,.18);
}

body .edara-button,
body button.edara-button,
body a.edara-button,
body input[type="submit"].edara-button,
body .edara-action-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--edara-dark-gradient);
    color: #ffffff;
    border: 1px solid rgba(212,175,55,.42);
    border-radius: 999px;
    padding: 11px 17px;
    min-height: 42px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(5,5,5,.14);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

body .edara-button:hover,
body button.edara-button:hover,
body a.edara-button:hover,
body input[type="submit"].edara-button:hover,
body .edara-action-card:hover,
body .edara-button:focus-visible,
body button.edara-button:focus-visible,
body a.edara-button:focus-visible {
    background: var(--edara-gold-gradient);
    color: #111111;
    border-color: var(--edara-gold-deep, #8c6a19);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(140,106,25,.24);
    outline: none;
}

body .edara-button-light,
body a.edara-button-light,
body button.edara-button-light,
body .edara-action-card-light,
body a.edara-action-card-light {
    background: linear-gradient(180deg, #ffffff, var(--edara-silver-light));
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.35);
    box-shadow: var(--edara-shadow-soft);
}

body .edara-button-light:hover,
body a.edara-button-light:hover,
body button.edara-button-light:hover,
body .edara-action-card-light:hover,
body a.edara-action-card-light:hover {
    background: var(--edara-dark-gradient);
    color: #ffffff;
    border-color: rgba(212,175,55,.55);
}

body .edara-admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto 28px auto;
    padding: 14px;
    background: rgba(255,255,255,.965);
    border: 1px solid rgba(212,175,55,.32);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(5,5,5,.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body .edara-admin-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    min-height: 46px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--edara-dark-gradient);
    border: 1px solid rgba(212,175,55,.50);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 22px rgba(5,5,5,.12);
    flex: 0 0 auto;
}

body .edara-admin-nav-brand img {
    display: block;
    width: 92px;
    max-width: 92px;
    height: 34px;
    object-fit: contain;
    border: 0;
    box-shadow: none;
    background: transparent;
}

body .edara-admin-nav-brand span {
    color: var(--edara-gold-light);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .edara-admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f6f4ef);
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.18);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(5,5,5,.04);
}

body .edara-admin-nav a:hover,
body .edara-admin-nav a:focus-visible {
    background: var(--edara-dark-gradient);
    color: #ffffff;
    border-color: rgba(212,175,55,.55);
    outline: none;
}

body .edara-admin-nav a.active {
    background: var(--edara-gold-gradient);
    color: #111111;
    border-color: rgba(140,106,25,.65);
    box-shadow: 0 10px 24px rgba(140,106,25,.22);
}

body .edara-admin-nav.edara-admin-nav-fixed {
    border-radius: 0 0 24px 24px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 20px 55px rgba(5,5,5,.16);
}

body .edara-subtabs,
body .edara-patrimoine-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .edara-subtab,
body .edara-edit-tab,
body .edara-patrimoine-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, var(--edara-silver-light));
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.26);
    text-decoration: none;
    font-weight: 800;
    box-shadow: none;
}

body .edara-subtab:hover,
body .edara-edit-tab:hover,
body .edara-patrimoine-tab:hover {
    background: var(--edara-dark-gradient);
    color: #ffffff;
    border-color: rgba(212,175,55,.55);
}

body .edara-subtab.is-active,
body .edara-edit-tab.is-active,
body .edara-patrimoine-tab.is-active,
body .edara-patrimoine-tab.active {
    background: var(--edara-gold-gradient);
    color: #111111;
    border-color: rgba(140,106,25,.65);
    box-shadow: 0 10px 22px rgba(140,106,25,.18);
}


/* EDARA v3.1.100 — bloc obsolète supprimé : ancien style global .edara-table */

body .edara-table a:not(.edara-button),
body .edara-card a:not(.edara-button):not(.edara-action-card-light):not(.edara-subtab):not(.edara-patrimoine-tab),
body .edara-section a:not(.edara-button):not(.edara-action-card-light):not(.edara-subtab):not(.edara-patrimoine-tab) {
    color: #6f5010;
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body .edara-table a:not(.edara-button):hover,
body .edara-card a:not(.edara-button):not(.edara-action-card-light):hover,
body .edara-section a:not(.edara-button):not(.edara-action-card-light):hover {
    color: #111111;
}

body .edara-alert {
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 8px 22px rgba(5,5,5,.045);
    color: var(--edara-ink);
}

body .edara-alert-success {
    background: #ecfdf3;
    border-color: #b7efca;
    color: #14532d;
}

body .edara-alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #7f1d1d;
}

body .edara-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}

body .edara-validation-badge,
body .edara-patrimoine-badge,
body .edara-badge-v2,
body .edara-status-success,
body .edara-status-danger,
body .edara-status-neutral,
body .edara-balance-badge,
body .edara-date-badge,
body .edara-sci-badge,
body .edara-phone,
body .edara-money {
    color: var(--edara-ink);
    border-radius: 999px;
    font-weight: 900;
}


/* Mission 16 : styles du livre de compte fusionnés depuis edara-livre-compte-styles.css. */
body .edara-solde-debiteur,
body .edara-solde-crediteur,
body .edara-solde-neutre {
    font-weight: 800;
}

body .edara-badge-approved,
body .edara-patrimoine-badge-success,
body .edara-status-success,
body .edara-solde-crediteur,
body .edara-balance-positive {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

body .edara-badge-pending,
body .edara-patrimoine-badge-warning,
body .edara-alert-warning,
body .edara-status-neutral,
body .edara-solde-neutre,
body .edara-balance-zero {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #fde68a;
}

body .edara-badge-rejected,
body .edara-patrimoine-badge-danger,
body .edara-status-danger,
body .edara-solde-debiteur,
body .edara-balance-negative {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

body .edara-patrimoine-badge-neutral,
body .edara-date-badge,
body .edara-sci-badge,
body .edara-phone,
body .edara-money,
body .edara-muted-value {
    background: linear-gradient(180deg, #ffffff, var(--edara-silver-light));
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.26);
}

body .edara-autocomplete-results {
    background: #ffffff;
    border: 1px solid var(--edara-border-strong);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(5,5,5,.14);
    padding: 7px;
}

body .edara-autocomplete-option,
body .edara-autocomplete-empty {
    background: #ffffff;
    color: var(--edara-ink);
    border-radius: 12px;
}

body .edara-autocomplete-option:hover,
body .edara-autocomplete-option:focus,
body .edara-autocomplete-option.is-active {
    background: var(--edara-dark-gradient);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    outline: none;
}
body .edara-autocomplete-option:hover *,
body .edara-autocomplete-option:focus *,
body .edara-autocomplete-option.is-active * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

body .edara-autocomplete-empty {
    color: var(--edara-muted);
}

body .edara-stats-grid,
body .edara-actions-grid,
body .edara-patrimoine-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

body .edara-patrimoine-two-columns {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px;
}

body .edara-patrimoine-alert-grid,
body .edara-patrimoine-mini-alerts {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

body .edara-card [style*="background:#fff"],
body .edara-card [style*="background: #fff"],
body .edara-section [style*="background:#fff"],
body .edara-section [style*="background: #fff"] {
    color: var(--edara-ink);
}


/* EDARA v3.1.8 - Logique couleur claire : urgence, succès, lisibilité */
body .edara-relance-button,
body button.edara-relance-button,
body a.edara-relance-button,
body input[type="submit"].edara-relance-button,
body button[name="edara_pointage_action"][value="send_relance"],
body .edara-admin-nav a[href*="relance"],
body .edara-dashboard a[href*="gestion-relances"],
body .edara-admin-page-shell a[href*="gestion-relances"],
body .edara-dashboard a[href*="edara_finance_view=relances"],
body .edara-admin-page-shell a[href*="edara_finance_view=relances"] {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 12px 26px rgba(185, 28, 28, .26);
}

body .edara-relance-button:hover,
body button.edara-relance-button:hover,
body a.edara-relance-button:hover,
body input[type="submit"].edara-relance-button:hover,
body button[name="edara_pointage_action"][value="send_relance"]:hover,
body .edara-admin-nav a[href*="relance"]:hover,
body .edara-dashboard a[href*="gestion-relances"]:hover,
body .edara-admin-page-shell a[href*="gestion-relances"]:hover,
body .edara-dashboard a[href*="edara_finance_view=relances"]:hover,
body .edara-admin-page-shell a[href*="edara_finance_view=relances"]:hover,
body .edara-relance-button:focus-visible,
body button.edara-relance-button:focus-visible,
body a.edara-relance-button:focus-visible {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border-color: #fecaca;
    box-shadow: 0 16px 34px rgba(185, 28, 28, .34);
}

body .edara-relance-button *,
body button.edara-relance-button *,
body a.edara-relance-button *,
body .edara-admin-nav a[href*="relance"] *,
body .edara-dashboard a[href*="gestion-relances"] *,
body .edara-admin-page-shell a[href*="gestion-relances"] *,
body .edara-dashboard a[href*="edara_finance_view=relances"] *,
body .edara-admin-page-shell a[href*="edara_finance_view=relances"] * {
    color: #ffffff;
}

body .edara-urgent,
body .edara-status-urgent,
body .edara-status-danger,
body .edara-badge-rejected,
body .edara-patrimoine-badge-danger,
body .edara-badge-v2.status-danger,
body .edara-dashboard .status-danger,
body .edara-admin-page-shell .status-danger,
body .edara-bailleur-page-shell .status-danger,
body .edara-locataire-page-shell .status-danger,
body .edara-alert-error {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #fecaca;
}

body .edara-important,
body .edara-warning,
body .edara-badge-pending,
body .edara-patrimoine-badge-warning,
body .edara-badge-v2.status-partial,
body .edara-badge-v2.status-muted,
body .edara-dashboard .status-partial,
body .edara-admin-page-shell .status-partial,
body .edara-bailleur-page-shell .status-partial,
body .edara-locataire-page-shell .status-partial,
body .edara-dashboard .status-muted,
body .edara-admin-page-shell .status-muted,
body .edara-bailleur-page-shell .status-muted,
body .edara-locataire-page-shell .status-muted,
body .edara-alert-warning {
    background: #fef3c7;
    color: #78350f;
    border-color: #fde68a;
}

body .edara-done,
body .edara-paid,
body .edara-positive,
body .edara-badge-approved,
body .edara-patrimoine-badge-success,
body .edara-badge-v2.status-paid,
body .edara-badge-v2.status-success,
body .edara-dashboard .status-paid,
body .edara-admin-page-shell .status-paid,
body .edara-bailleur-page-shell .status-paid,
body .edara-locataire-page-shell .status-paid,
body .edara-dashboard .status-success,
body .edara-admin-page-shell .status-success,
body .edara-bailleur-page-shell .status-success,
body .edara-locataire-page-shell .status-success,
body .edara-alert-success {
    background: #dcfce7;
    color: #14532d;
    border-color: #bbf7d0;
}

body .edara-neutral,
body .edara-badge-v2.status-neutral,
body .edara-dashboard .status-neutral,
body .edara-admin-page-shell .status-neutral,
body .edara-bailleur-page-shell .status-neutral,
body .edara-locataire-page-shell .status-neutral,
body .edara-patrimoine-badge-neutral {
    background: linear-gradient(180deg, #ffffff, var(--edara-silver-light));
    color: var(--edara-ink);
    border-color: rgba(141,147,155,.28);
}

body .edara-action-card:hover,
body .edara-action-card-light:hover,
body a.edara-action-card:hover,
body a.edara-action-card-light:hover,
body .edara-subtab:hover,
body .edara-edit-tab:hover,
body .edara-patrimoine-tab:hover,
body .edara-admin-nav a:hover,
body .edara-button-light:hover,
body button.edara-button-light:hover,
body a.edara-button-light:hover {
    color: #ffffff;
}

body .edara-action-card:hover *,
body .edara-action-card-light:hover *,
body a.edara-action-card:hover *,
body a.edara-action-card-light:hover *,
body .edara-subtab:hover *,
body .edara-edit-tab:hover *,
body .edara-patrimoine-tab:hover *,
body .edara-admin-nav a:hover *,
body .edara-button-light:hover *,
body button.edara-button-light:hover *,
body a.edara-button-light:hover * {
    color: #ffffff;
}

body .edara-button:hover:not(.edara-relance-button) *,
body button.edara-button:hover:not(.edara-relance-button) *,
body a.edara-button:hover:not(.edara-relance-button) * {
    color: #111111;
}

body .edara-card,
body .edara-section,
body .edara-form,
body .edara-dashboard .filter-bar,
body .edara-admin-page-shell .filter-bar,
body .edara-bailleur-page-shell .filter-bar,
body .edara-locataire-page-shell .filter-bar,
body .stat-card-v2,
body .edara-patrimoine-search-card,
body .edara-patrimoine-tabs-card {
    color: var(--edara-text);
}

body .edara-card p,
body .edara-section p,
body .edara-form p,
body .edara-dashboard .filter-bar p,
body .edara-admin-page-shell .filter-bar p,
body .edara-bailleur-page-shell .filter-bar p,
body .edara-locataire-page-shell .filter-bar p,
body .stat-card-v2 p,
body .edara-card span:not(.edara-badge-v2):not(.edara-validation-badge):not(.edara-patrimoine-badge):not(.edara-status-danger):not(.edara-status-success),
body .edara-section span:not(.edara-badge-v2):not(.edara-validation-badge):not(.edara-patrimoine-badge):not(.edara-status-danger):not(.edara-status-success) {
    color: inherit;
}

body .stat-card-v2 {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
    color: var(--edara-text);
    border: 1px solid var(--edara-border);
    border-bottom: 4px solid var(--edara-gold);
    border-radius: var(--edara-radius);
    box-shadow: var(--edara-shadow-soft);
}

body .stat-card-v2:hover,
body .clickable-stat:hover {
    background: linear-gradient(180deg, #ffffff 0%, #fff7e5 100%);
    color: var(--edara-ink);
    border-bottom-color: var(--edara-gold-deep);
}

body .stat-card-v2:hover *,
body .clickable-stat:hover * {
    color: inherit;
}

body .stat-card-v2 .stat-label,
body .filter-group label {
    color: var(--edara-muted);
}

body .edara-dashboard-header,
body .edara-dashboard-header *,
body .edara-admin-nav-brand,
body .edara-admin-nav-brand * {
    color: #ffffff;
}

body .edara-admin-nav-brand span {
    color: var(--edara-gold-light);
}

body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#1a1a1a"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #1a1a1a"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#000"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #000"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#111"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #111"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#050505"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #050505"] {
    color: #ffffff;
}

body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#1a1a1a"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #1a1a1a"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#000"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #000"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#111"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #111"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#050505"] *,
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #050505"] * {
    color: #ffffff;
}

body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background:#fff"],
body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [style*="background: #fff"] {
    color: var(--edara-ink);
}









/* EDARA v3.1.9 - Correction lisibilité onglets patrimoine + dashboard bailleur premium */
body .edara-patrimoine-tabs-card .edara-patrimoine-tab:hover,
body .edara-patrimoine-tabs-card .edara-patrimoine-tab:focus,
body .edara-patrimoine-tabs .edara-patrimoine-tab:hover,
body .edara-patrimoine-tabs .edara-patrimoine-tab:focus {
    background: var(--edara-dark-gradient);
    color: #ffffff;
    border-color: rgba(212,175,55,.72);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

body .edara-patrimoine-tabs-card .edara-patrimoine-tab:hover *,
body .edara-patrimoine-tabs-card .edara-patrimoine-tab:focus *,
body .edara-patrimoine-tabs .edara-patrimoine-tab:hover *,
body .edara-patrimoine-tabs .edara-patrimoine-tab:focus * {
    color: #ffffff;
}

body .edara-patrimoine-tabs-card .edara-patrimoine-tab.is-active,
body .edara-patrimoine-tabs .edara-patrimoine-tab.is-active,
body .edara-patrimoine-tabs .edara-patrimoine-tab.active {
    background: var(--edara-gold-gradient);
    color: #111111;
    border-color: rgba(140,106,25,.7);
}

body .edara-patrimoine-tabs-card .edara-patrimoine-tab.is-active *,
body .edara-patrimoine-tabs .edara-patrimoine-tab.is-active *,
body .edara-patrimoine-tabs .edara-patrimoine-tab.active * {
    color: #111111;
}

body .edara-bailleur-premium-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 14px;
    margin: 22px 0;
}

body .edara-bailleur-stat {
    position: relative;
    min-height: 148px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8f6f0);
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.22);
    box-shadow: 0 16px 40px rgba(5,5,5,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

body .edara-bailleur-stat::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--edara-silver-gradient);
}

body .edara-bailleur-stat-title {
    display: block;
    color: #4b5563;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .015em;
    margin-bottom: 4px;
    min-height: 34px;
    line-height: 1.25;
}

body .edara-bailleur-stat strong {
    display: block;
    color: var(--edara-ink);
    font-size: clamp(26px, 2.45vw, 38px);
    line-height: 1.05;
    font-weight: 950;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -.035em;
}

body .edara-bailleur-stat small {
    color: #64748b;
    font-weight: 700;
    line-height: 1.35;
    min-height: 36px;
    display: block;
}

body .edara-bailleur-stat-gold::before { background: var(--edara-gold-gradient); }
body .edara-bailleur-stat-success::before { background: linear-gradient(180deg, #16a34a, #86efac); }
body .edara-bailleur-stat-warning::before { background: linear-gradient(180deg, #f59e0b, #fde68a); }
body .edara-bailleur-stat-danger::before { background: linear-gradient(180deg, #dc2626, #fca5a5); }

body .edara-bailleur-stat-danger {
    border-color: rgba(220,38,38,.28);
    background: linear-gradient(180deg, #fffafa, #fff1f2);
}

body .edara-bailleur-stat-success {
    border-color: rgba(22,163,74,.24);
    background: linear-gradient(180deg, #fbfffd, #f0fdf4);
}

body .edara-bailleur-stat-warning {
    border-color: rgba(245,158,11,.28);
    background: linear-gradient(180deg, #fffdf7, #fffbeb);
}

body .edara-bailleur-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

body .edara-bailleur-quick-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, var(--edara-cream, #f7f2e8));
    color: var(--edara-ink);
    text-decoration: none;
    border: 1px solid rgba(212,175,55,.18);
    box-shadow: 0 14px 34px rgba(5,5,5,.055);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body .edara-bailleur-quick-card strong {
    color: var(--edara-ink);
    font-size: 16px;
    font-weight: 900;
}

body .edara-bailleur-quick-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

body .edara-bailleur-quick-card:hover {
    transform: translateY(-2px);
    background: var(--edara-dark-gradient);
    box-shadow: 0 18px 44px rgba(5,5,5,.18);
    border-color: rgba(212,175,55,.55);
}

body .edara-bailleur-quick-card:hover strong,
body .edara-bailleur-quick-card:hover span {
    color: #ffffff;
}

body .edara-bailleur-quick-card-alert {
    border-color: rgba(220,38,38,.22);
}

body .edara-bailleur-priority-panel {
    border-color: rgba(212,175,55,.18);
}

body .edara-bailleur-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

body .edara-bailleur-priority-box {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.18);
    box-shadow: 0 12px 30px rgba(5,5,5,.045);
}

body .edara-bailleur-priority-box h3 {
    margin: 0 0 12px;
    color: var(--edara-ink);
    font-size: 17px;
    font-weight: 950;
}

body .edara-bailleur-priority-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

body .edara-bailleur-priority-box li {
    padding: 12px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(141,147,155,.14);
    color: var(--edara-ink);
}

body .edara-bailleur-priority-box li strong {
    color: var(--edara-ink);
}

body .edara-bailleur-priority-box li span,
body .edara-bailleur-priority-box li small {
    color: #64748b;
}

body .edara-bailleur-priority-box .edara-bailleur-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    font-weight: 800;
}

body .edara-bailleur-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    border: 1px solid transparent;
    white-space: nowrap;
}

body .edara-bailleur-pill-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

body .edara-bailleur-pill-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

body .edara-bailleur-pill-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

body .edara-bailleur-pill-neutral {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

body .edara-bailleur-accounts-table td small {
    color: #64748b;
    font-weight: 650;
}

body .edara-bailleur-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


body .edara-bailleur-account-section {
    border-color: rgba(212,175,55,.18);
}

body .edara-bailleur-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

body .edara-bailleur-account-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: var(--edara-ink);
    border: 1px solid rgba(141,147,155,.18);
    box-shadow: 0 14px 34px rgba(5,5,5,.055);
}

body .edara-bailleur-account-card-danger {
    background: linear-gradient(180deg, #fffafa, #fff1f2);
    border-color: rgba(220,38,38,.24);
}

body .edara-bailleur-account-card-warning {
    background: linear-gradient(180deg, #fffdf7, #fffbeb);
    border-color: rgba(245,158,11,.26);
}

body .edara-bailleur-account-card-success {
    background: linear-gradient(180deg, #fbfffd, #f0fdf4);
    border-color: rgba(22,163,74,.22);
}

body .edara-bailleur-account-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

body .edara-bailleur-account-card-top strong {
    color: var(--edara-ink);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
}

body .edara-bailleur-account-meta,
body .edara-bailleur-account-card small {
    color: #64748b;
    font-weight: 700;
    line-height: 1.35;
}

body .edara-bailleur-account-amount strong {
    font-size: 22px;
    font-weight: 950;
}

body .edara-bailleur-account-card .edara-button {
    margin-top: auto;
    align-self: flex-start;
}

body .edara-bailleur-account-card.is-selected {
    border-color: rgba(212,175,55,.72);
    box-shadow: 0 18px 44px rgba(212,175,55,.18), 0 12px 30px rgba(5,5,5,.08);
    transform: translateY(-1px);
}

body .edara-bailleur-account-card.is-selected .edara-button {
    background: linear-gradient(135deg, var(--edara-gold), var(--edara-gold-dark));
    color: #111111;
    border-color: rgba(212,175,55,.55);
}

body .edara-bailleur-account-empty-state {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}

body .edara-bailleur-account-empty-state strong {
    color: var(--edara-ink);
    font-size: 18px;
    font-weight: 950;
}

body .edara-bailleur-account-empty-state span {
    color: #64748b;
    font-weight: 750;
}

body .edara-bailleur-account-detail-empty {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-style: dashed;
}

body .edara-bailleur-account-templates {
    display: none !important;
}

body .edara-bailleur-account-detail {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, var(--edara-cream, #f7f2e8));
    border: 1px solid rgba(212,175,55,.22);
    box-shadow: 0 16px 40px rgba(5,5,5,.06);
    margin: 18px 0 22px;
}

body .edara-bailleur-account-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(141,147,155,.18);
}

body .edara-bailleur-account-detail-header h3 {
    margin: 0 0 6px;
    color: var(--edara-ink);
    font-size: 22px;
    font-weight: 950;
}

body .edara-bailleur-account-detail-header p {
    margin: 0;
    color: #64748b;
    font-weight: 750;
}

body .edara-bailleur-account-detail-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}









    

/* EDARA v3.1.10 - correction définitive lisibilité onglets Patrimoine + bouton Reset */
html body .edara-patrimoine-tabs-card a.edara-patrimoine-tab:hover,
html body .edara-patrimoine-tabs-card a.edara-patrimoine-tab:focus,
html body .edara-patrimoine-tabs a.edara-patrimoine-tab:hover,
html body .edara-patrimoine-tabs a.edara-patrimoine-tab:focus {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(140,106,25,.85);
    box-shadow: 0 12px 28px rgba(140,106,25,.22);
}
html body .edara-patrimoine-tabs-card a.edara-patrimoine-tab:hover *,
html body .edara-patrimoine-tabs-card a.edara-patrimoine-tab:focus *,
html body .edara-patrimoine-tabs a.edara-patrimoine-tab:hover *,
html body .edara-patrimoine-tabs a.edara-patrimoine-tab:focus * {
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body .edara-patrimoine-tabs-card a.edara-patrimoine-tab.is-active,
html body .edara-patrimoine-tabs a.edara-patrimoine-tab.is-active,
html body .edara-patrimoine-tabs a.edara-patrimoine-tab.active {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body .edara-reset-button,
html body a.edara-reset-button,
html body button.edara-reset-button {
    background: #B42318;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #B42318;
}
html body .edara-reset-button:hover,
html body a.edara-reset-button:hover,
html body button.edara-reset-button:hover {
    background: #7A1810;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #7A1810;
}


/* EDARA v3.1.13 - filtres bailleur SCI / biens personnels */
html body .edara-bailleur-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

html body .edara-bailleur-filter-panel {
    border-color: rgba(212,175,55,.22);
    background: linear-gradient(180deg, #ffffff, var(--edara-cream, #f7f2e8));
}

html body .edara-bailleur-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

html body .edara-bailleur-filter-heading h2 {
    margin-bottom: 4px;
}

html body .edara-bailleur-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    font-weight: 950;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid rgba(140,106,25,.46);
}

html body .edara-bailleur-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.35fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

html body .edara-bailleur-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

html body .edara-bailleur-filter-grid label span {
    color: #334155;
    font-weight: 900;
    font-size: 13px;
}

html body .edara-bailleur-filter-grid select,
html body .edara-bailleur-filter-grid input[type="search"] {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(141,147,155,.34);
    background: #ffffff;
    color: #111827;
    -webkit-text-fill-color: #111827;
    font-weight: 750;
    padding: 10px 12px;
    box-shadow: inset 0 1px 2px rgba(5,5,5,.03);
}

html body .edara-bailleur-filter-grid select:focus,
html body .edara-bailleur-filter-grid input[type="search"]:focus {
    border-color: rgba(212,175,55,.72);
    box-shadow: 0 0 0 4px rgba(212,175,55,.16);
    outline: none;
}

html body .edara-bailleur-filter-grid .edara-button-danger,
html body .edara-bailleur-filter-grid button[data-edara-bailleur-filter-reset] {
    min-height: 46px;
    background: #B42318;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #B42318;
    white-space: nowrap;
}

html body .edara-bailleur-filter-grid .edara-button-danger:hover,
html body .edara-bailleur-filter-grid button[data-edara-bailleur-filter-reset]:hover {
    background: #7A1810;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #7A1810;
}

html body .edara-bailleur-filter-empty {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 850;
}

html body [data-edara-bailleur-filter-item][hidden],
html body .edara-filter-hidden {
    display: none !important;
}

html body .edara-bailleur-account-card[hidden],
html body .edara-bailleur-accounts-table tr[hidden] {
    display: none !important;
}







/* EDARA v3.1.14 - Espace locataire premium */
html body .edara-locataire-dashboard {
    gap: 22px;
}

html body .edara-locataire-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

html body .edara-locataire-eyebrow {
    color: var(--edara-gold-2, #d4af37);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 900;
    font-size: 12px;
    margin: 0 0 10px;
}

html body .edara-locataire-hero-badge {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

html body .edara-locataire-hero-badge span,
html body .edara-locataire-hero-badge small,
html body .edara-locataire-hero-badge strong {
    display: block;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html body .edara-locataire-hero-badge span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    opacity: .84;
}

html body .edara-locataire-hero-badge strong {
    font-size: 26px;
    line-height: 1.05;
    margin: 8px 0 4px;
}

html body .edara-locataire-kpi-grid,
html body .edara-locataire-actions,
html body .edara-locataire-alert-grid,
html body .edara-locataire-logements-grid,
html body .edara-locataire-finance-grid {
    display: grid;
    gap: 16px;
}

html body .edara-locataire-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0;
}

html body .edara-locataire-kpi,
html body .edara-locataire-panel,
html body .edara-locataire-action-card,
html body .edara-locataire-logement-card,
html body .edara-locataire-account-card,
html body .edara-locataire-alert,
html body .edara-locataire-empty {
    box-sizing: border-box;
    border-radius: 24px;
    border: 1px solid var(--edara-border);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
    color: var(--edara-text);
    box-shadow: var(--edara-shadow-soft);
}

html body .edara-locataire-kpi {
    min-height: 130px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

html body .edara-locataire-kpi::before,
html body .edara-locataire-logement-card::before,
html body .edara-locataire-account-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--edara-silver-gradient);
}

html body .edara-locataire-kpi.is-gold::before { background: var(--edara-gold-gradient); }
html body .edara-locataire-kpi.is-danger::before,
html body .edara-locataire-logement-card.is-danger::before,
html body .edara-locataire-account-card.is-danger::before { background: #B42318; }
html body .edara-locataire-kpi.is-success::before,
html body .edara-locataire-logement-card.is-success::before,
html body .edara-locataire-account-card.is-success::before { background: #1F8F46; }
html body .edara-locataire-kpi.is-neutral::before,
html body .edara-locataire-logement-card.is-neutral::before,
html body .edara-locataire-account-card.is-neutral::before { background: var(--edara-silver-gradient); }

html body .edara-locataire-kpi span,
html body .edara-locataire-kpi small {
    color: var(--edara-muted);
    font-weight: 800;
}

html body .edara-locataire-kpi strong {
    color: var(--edara-ink);
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

html body .edara-locataire-kpi.is-danger strong { color: #B42318; }
html body .edara-locataire-kpi.is-success strong { color: #1F8F46; }
html body .edara-locataire-kpi.is-gold strong { color: var(--edara-gold-deep, #8c6a19); }

html body .edara-locataire-panel {
    padding: clamp(18px, 3vw, 28px);
    margin: 22px 0;
}

html body .edara-locataire-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--edara-border);
}

html body .edara-locataire-section-title h2 {
    margin: 0;
    color: var(--edara-ink);
}

html body .edara-locataire-section-title p {
    margin: 0;
    color: var(--edara-muted);
    font-weight: 650;
}

html body .edara-locataire-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 22px;
}

html body .edara-locataire-action-card {
    padding: 20px;
    min-height: 148px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

html body .edara-locataire-action-card span {
    font-size: 24px;
}

html body .edara-locataire-action-card strong {
    color: var(--edara-ink);
    font-size: 17px;
}

html body .edara-locataire-action-card small {
    color: var(--edara-muted);
    font-weight: 650;
}

html body .edara-locataire-action-card:hover,
html body .edara-locataire-action-card:focus-visible {
    transform: translateY(-2px);
    background: var(--edara-dark-gradient);
    border-color: rgba(212,175,55,.74);
    box-shadow: 0 18px 44px rgba(5,5,5,.18);
}

html body .edara-locataire-action-card:hover *,
html body .edara-locataire-action-card:focus-visible * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html body .edara-locataire-alert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html body .edara-locataire-alert,
html body .edara-locataire-empty {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html body .edara-locataire-alert strong,
html body .edara-locataire-empty strong {
    color: var(--edara-ink);
    font-size: 16px;
}

html body .edara-locataire-alert span,
html body .edara-locataire-empty span {
    color: var(--edara-muted);
    font-weight: 650;
}

html body .edara-locataire-alert.is-danger {
    border-color: #FDA29B;
    background: linear-gradient(180deg, #fff7f5 0%, #ffffff 100%);
}

html body .edara-locataire-alert.is-danger strong { color: #B42318; }

html body .edara-locataire-alert.is-warning,
html body .edara-locataire-empty.is-warning {
    border-color: #FED7AA;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

html body .edara-locataire-empty.is-success {
    border-color: #A6F4C5;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}
html body .edara-locataire-empty.is-success strong { color: #1F8F46; }

html body .edara-locataire-logements-grid,
html body .edara-locataire-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body .edara-locataire-logement-card,
html body .edara-locataire-account-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

html body .edara-locataire-logement-top,
html body .edara-locataire-account-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

html body .edara-locataire-logement-top h3,
html body .edara-locataire-account-head h3 {
    margin: 0 0 6px;
    color: var(--edara-ink);
}

html body .edara-locataire-logement-top p,
html body .edara-locataire-account-head span {
    margin: 0;
    color: var(--edara-muted);
    font-weight: 750;
}

html body .edara-locataire-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--edara-silver-light);
    color: var(--edara-ink);
    font-weight: 900;
    border: 1px solid var(--edara-border);
}

html body .edara-locataire-logement-card.is-danger .edara-locataire-pill { background: #FEE4E2; color: #B42318; border-color: #FDA29B; }
html body .edara-locataire-logement-card.is-success .edara-locataire-pill { background: #DCFCE7; color: #166534; border-color: #A6F4C5; }

html body .edara-locataire-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

html body .edara-locataire-info-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

html body .edara-locataire-info-grid > div {
    padding: 14px;
    border-radius: 16px;
    background: #fbfaf7;
    border: 1px solid var(--edara-border);
}

html body .edara-locataire-info-grid span {
    display: block;
    color: var(--edara-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 900;
    margin-bottom: 6px;
}

html body .edara-locataire-info-grid strong {
    display: block;
    color: var(--edara-ink);
    font-size: 15px;
    line-height: 1.25;
}

html body .edara-locataire-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

html body .edara-button-light,
html body a.edara-button-light {
    background: linear-gradient(180deg, #ffffff, #fbfaf7);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    border-color: var(--edara-border-strong);
    box-shadow: var(--edara-shadow-soft);
}

html body .edara-button-light:hover,
html body a.edara-button-light:hover {
    background: var(--edara-dark-gradient);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html body .edara-button-small,
html body a.edara-button-small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

html body .edara-locataire-account-head > strong {
    color: var(--edara-ink);
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: -.03em;
}

html body .edara-locataire-account-card.is-danger .edara-locataire-account-head > strong,
html body .is-danger-text { color: #B42318; }
html body .edara-locataire-account-card.is-success .edara-locataire-account-head > strong,
html body .is-success-text { color: #1F8F46; }

html body .edara-locataire-mini-history {
    margin: 18px 0;
    padding: 14px;
    border-radius: 18px;
    background: #fbfaf7;
    border: 1px solid var(--edara-border);
}

html body .edara-locataire-mini-history h4 {
    margin: 0 0 10px;
    color: var(--edara-ink);
}

html body .edara-locataire-mini-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid rgba(234,223,202,.72);
}

html body .edara-locataire-mini-line span {
    color: var(--edara-muted);
    font-weight: 700;
}

html body .edara-locataire-doc-tools {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 12px;
    margin-bottom: 16px;
}

html body .edara-locataire-doc-tools input,
html body .edara-locataire-doc-tools select,
html body .edara-locataire-compte-selector select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--edara-border-strong);
    border-radius: 14px;
    background: #ffffff;
    color: var(--edara-ink);
    padding: 9px 12px;
}

html body .edara-locataire-doc-tools input:focus,
html body .edara-locataire-doc-tools select:focus,
html body .edara-locataire-compte-selector select:focus {
    outline: none;
    border-color: var(--edara-gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,.16);
}

/* EDARA point 74 : .edara-responsive-table-wrap est désormais piloté uniquement par edara-responsive-optimizations.css. */

html body .edara-locataire-compte-context {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fbfaf7;
    border: 1px solid var(--edara-border);
}

html body .edara-locataire-compte-context strong {
    color: var(--edara-ink);
}
html body .edara-locataire-compte-context span {
    color: var(--edara-muted);
}

html body [data-edara-doc-row][hidden] {
    display: none !important;
}


/* EDARA - Générateur de baux */
html body .edara-baux-dashboard {
    display: block;
}
html body .edara-baux-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}
html body .edara-baux-stats-grid .edara-stat-card {
    min-height: 132px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
html body .edara-baux-stats-grid .edara-stat-card strong {
    display: block;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    color: var(--edara-ink);
}
html body .edara-baux-principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
html body .edara-baux-principles > div {
    border: 1px solid var(--edara-border);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg,#ffffff,var(--edara-silver-light));
}
html body .edara-baux-principles strong,
html body .edara-baux-principles span {
    display: block;
    color: var(--edara-ink);
}
html body .edara-baux-principles span {
    color: var(--edara-muted);
    font-size: 13px;
    margin-top: 4px;
}
html body .edara-baux-form h2 {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--edara-border);
    color: var(--edara-ink);
}
html body .edara-baux-form h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
html body .edara-form-grid-2,
html body .edara-form-grid-3 {
    display: grid;
    gap: 14px;
}
html body .edara-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
html body .edara-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
html body .edara-baux-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 16px;
}
html body .edara-baux-toggle-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fffaf1;
    border: 1px solid var(--edara-border);
    color: var(--edara-ink);
    font-weight: 800;
    cursor: pointer;
}
html body .edara-baux-toggle-row label:hover {
    background: var(--edara-gold-gradient);
    color: #111111;
}
html body .edara-baux-form [hidden],
html body [data-edara-sci-select][hidden] {
    display: none !important;
}











/* EDARA v3.1.19 - Générateur de baux premium + responsive */
html body .edara-baux-dashboard .edara-dashboard-header {
    background: radial-gradient(circle at 15% 0%, rgba(212,175,55,.20), transparent 32%), linear-gradient(135deg, #080808, #171717 58%, #2a2419);
    border: 1px solid rgba(212,175,55,.38);
    color: #ffffff;
    border-radius: 30px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
html body .edara-baux-dashboard .edara-dashboard-header h1,
html body .edara-baux-dashboard .edara-dashboard-header p {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
html body .edara-baux-dashboard .edara-dashboard-header p {
    color: rgba(255,255,255,.80);
    -webkit-text-fill-color: rgba(255,255,255,.80);
}
html body .edara-baux-form {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
    border: 1px solid rgba(212,175,55,.30);
    box-shadow: 0 18px 55px rgba(25,20,12,.08);
}
html body .edara-baux-form > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-size: clamp(18px, 2vw, 24px);
}
html body .edara-baux-form > h2::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--edara-gold-gradient);
    box-shadow: 0 0 0 5px rgba(212,175,55,.14);
    flex: 0 0 auto;
}
html body .edara-baux-form .edara-field label,
html body .edara-baux-form .edara-checkline,
html body .edara-baux-form .edara-baux-annexes-grid label {
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
}
html body .edara-baux-form input[type="text"],
html body .edara-baux-form input[type="email"],
html body .edara-baux-form input[type="number"],
html body .edara-baux-form input[type="date"],
html body .edara-baux-form select,
html body .edara-baux-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(15,23,42,.16);
    background: #ffffff;
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-radius: 16px;
    padding: 11px 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
html body .edara-baux-form textarea {
    min-height: 94px;
}
html body .edara-baux-form input:focus,
html body .edara-baux-form select:focus,
html body .edara-baux-form textarea:focus {
    outline: none;
    border-color: var(--edara-gold);
    box-shadow: 0 0 0 4px rgba(212,175,55,.18);
}
html body .edara-baux-legal-details,
html body .edara-baux-sci-new {
    border-radius: 24px;
    padding: clamp(18px, 2.2vw, 24px);
    background: linear-gradient(180deg, #fffef9, #faf4e8);
    border: 1px solid rgba(212,175,55,.34);
    box-shadow: 0 12px 34px rgba(25,20,12,.05);
}
html body .edara-baux-legal-details h3,
html body .edara-baux-sci-new h3 {
    color: #111111;
    -webkit-text-fill-color: #111111;
    font-size: 18px;
    margin-bottom: 12px;
}
html body .edara-baux-commercial-block {
    background: radial-gradient(circle at top left, rgba(192,192,192,.26), transparent 30%), linear-gradient(180deg, #fff, #f3f4f6);
    border-color: rgba(148,163,184,.55);
}
html body .edara-baux-annexes-grid label:hover,
html body .edara-baux-toggle-row label:hover {
    background: linear-gradient(135deg, #111111, #2a2419);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: rgba(212,175,55,.60);
}
html body .edara-baux-annexes-grid label:hover *,
html body .edara-baux-toggle-row label:hover * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
html body .edara-baux-form [hidden],
html body .edara-baux-annexes-grid [hidden] {
    display: none !important;
}
html body .edara-baux-form .edara-button[type="submit"] {
    width: 100%;
    justify-content: center;
    min-height: 54px;
    font-size: 16px;
    margin-top: 14px;
    background: linear-gradient(135deg, #111111, #2a2419);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid rgba(212,175,55,.55);
}
html body .edara-baux-form .edara-button[type="submit"]:hover {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
}

/* EDARA point 86+ : les boutons de choix du générateur de baux restent des contrôles de formulaire,
   pas des onglets de navigation. */
html body .edara-baux-toggle-row {
    overflow: visible;
}
html body .edara-baux-toggle-row label {
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
}






/* EDARA v3.1.25 - Harmonisation finale Gestion EDARA */

.edara-page-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: radial-gradient(circle at top left, rgba(212,175,55,.26), transparent 34%), linear-gradient(135deg, #0b0b0d, #151515 55%, #1f1b12);
    border: 1px solid rgba(212,175,55,.36);
    border-radius: 28px;
    padding: clamp(20px, 3vw, 34px);
    box-shadow: 0 20px 48px rgba(0,0,0,.18);
    margin: 0 0 22px;
}
.edara-page-hero h1,
.edara-page-hero p { color: #fff; -webkit-text-fill-color: #fff; }
.edara-page-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 42px); letter-spacing:-.03em; }
.edara-page-hero p { margin:0; opacity:.9; max-width:850px; }
.edara-page-hero-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:20px;
    background: var(--edara-gold-gradient);
    color: #111;
    -webkit-text-fill-color: #111;
    font-size:28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 30px rgba(0,0,0,.22);
}
.edara-control-center {
    margin: 24px 0 34px;
    padding: clamp(18px, 2.5vw, 28px);
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff, #f7f3ea);
    border: 1px solid rgba(212,175,55,.28);
    box-shadow: 0 20px 50px rgba(16,24,40,.09);
}
.edara-control-center-head {
    display:grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap:18px;
    align-items:end;
    margin-bottom: 22px;
}
.edara-control-center h2 { margin:0 0 6px; color: #111; -webkit-text-fill-color: #111; }
.edara-control-center p { margin:0; color: #555; -webkit-text-fill-color: #555; }
.edara-tool-search,
.edara-table-toolbar input,
.edara-smart-filter-panel input,
.edara-smart-filter-panel select {
    width:100%;
    min-height:46px;
    border-radius:16px;
    border:1px solid rgba(17,17,17,.14);
    background: #fff;
    color: #111;
    -webkit-text-fill-color: #111;
    padding: 0 14px;
    outline:none;
    box-shadow: 0 8px 18px rgba(15,23,42,.04);
}
.edara-tool-search:focus,
.edara-table-toolbar input:focus,
.edara-smart-filter-panel input:focus,
.edara-smart-filter-panel select:focus {
    border-color:var(--edara-gold-2, #d4af37);
    box-shadow:0 0 0 4px rgba(212,175,55,.16);
}
.edara-tool-section { margin-top: 20px; }
.edara-tool-section h3 {
    margin: 0 0 12px;
    color: #111;
    -webkit-text-fill-color: #111;
    font-size: 18px;
}
.edara-tool-grid {
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:14px;
}
.edara-tool-card {
    display:grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 116px;
    padding: 16px;
    border-radius: 22px;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #fbfaf6);
    border:1px solid rgba(17,17,17,.08);
    box-shadow:0 12px 26px rgba(16,24,40,.06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.edara-tool-card .edara-tool-icon {
    grid-row: 1 / span 2;
    width:46px;
    height:46px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: linear-gradient(135deg, #111, #2a2419);
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size:22px;
}
.edara-tool-card strong {
    align-self:end;
    color: #111;
    -webkit-text-fill-color: #111;
    font-size:15px;
}
.edara-tool-card small {
    color: #555;
    -webkit-text-fill-color: #555;
    line-height:1.35;
    margin-top: 5px;
}
.edara-tool-card:hover,
.edara-tool-card:focus-visible {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #101010, #231f16);
    border-color: rgba(212,175,55,.55);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}
.edara-tool-card:hover strong,
.edara-tool-card:hover small,
.edara-tool-card:focus-visible strong,
.edara-tool-card:focus-visible small {
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.edara-tool-card:hover .edara-tool-icon,
.edara-tool-card:focus-visible .edara-tool-icon {
    background: var(--edara-gold-gradient);
    color: #111;
    -webkit-text-fill-color: #111;
}
.edara-smart-filter-panel {
    display:grid;
    grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr);
    gap:14px;
    padding:14px;
    margin: 14px 0 10px;
    border-radius:22px;
    background:linear-gradient(180deg, #fff, #f9fafb);
    border:1px solid rgba(17,17,17,.08);
}
.edara-smart-filter-field label,
.edara-table-toolbar label {
    display:block;
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
    color: #6b5b25;
    -webkit-text-fill-color: #6b5b25;
    margin-bottom:7px;
}
.edara-filter-empty::after {
    content:'Aucun bien ne correspond à ce filtre';
    grid-column:1 / -1;
    color: #9f1239;
    -webkit-text-fill-color: #9f1239;
    font-weight:700;
    font-size:13px;
}
.edara-table-toolbar {
    display:grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap:10px;
    align-items:end;
    margin: 12px 0;
    padding: 12px;
    border-radius:18px;
    background:#fffaf0;
    border:1px solid rgba(212,175,55,.24);
}
.edara-table-toolbar label { grid-column:1 / -1; margin-bottom:-2px; }
.edara-table-count {
    white-space:nowrap;
    align-self:center;
    color: #111;
    -webkit-text-fill-color: #111;
    font-weight:800;
    background:#f1f5f9;
    border-radius:999px;
    padding: 10px 12px;
}

/* EDARA v3.1.100 — bloc obsolète supprimé : doublon ancien garde-fou tableaux design-system */

/* EDARA point 72 : les anciens blocs v3.1.26 à v3.1.28 ont été retirés de ce fichier.
   Leur rôle de finition visuelle est désormais intégré directement dans edara-design-system.css
   et le responsive reste piloté par edara-responsive-optimizations.css afin d'éviter les contradictions de largeur,
   d'entête, d'onglets actifs, de boutons et de tableaux entre bureau/tablette/mobile. */

/* =========================================================
   EDARA point 84 — garde-fou visuel consolidé dans le design system
   Ancien fichier : assets/css/edara-final-visual-guard.css
   ========================================================= */

/* EDARA point 73 : garde-fou visuel uniquement ; le responsive/layout global reste piloté par edara-responsive-optimizations.css. */
/*
 * EDARA - Garde-fou visuel final consolidé.
 * Point 5 / v3.1.53 : fusion des anciennes couches final-visual-guard
 * auparavant chargées en wp_head/wp_footer avec priorités extrêmes.
 * Ordre conservé pour compatibilité visuelle.
 */


/* === Bloc consolidé : ancien garde-fou visuel final intégré au design system === */

/* EDARA Mission 1 : ancien garde-fou visuel conservé sans redéfinition de variables. */
html body:has(.edara-admin-nav),
html body:has(.edara-dashboard),
html body:has(.edara-home) {
    background: var(--edara-page-gradient);
}

html body [class*="edara-"] { box-sizing: border-box !important; }

/* Page d'accueil / landing : clair, premium, léger, pas de noir massif. */
html body .edara-home,
html body .edara-landing,
html body .edara-home-section {
    background: var(--edara-page-gradient);
    color: var(--edara-ink);
    -webkit-text-fill-color: initial;
}
html body .edara-home :is(h1,h2,h3,h4,p,span,strong,li,div),
html body .edara-landing :is(h1,h2,h3,h4,p,span,strong,li,div) {
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    text-shadow: none;
}
html body .edara-gold-text,
html body .edara-home .edara-gold-text,
html body .edara-landing .edara-gold-text {
    background: var(--edara-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Conteneurs principaux : fond clair premium et centrage propre. */
html body .edara-dashboard,
html body .edara-patrimoine-dashboard,
html body .edara-sorties-page,
html body .edara-bailleur-dashboard,
html body .edara-locataire-dashboard,
html body .edara-admin-page-shell {
    margin-top: 26px;
    margin-bottom: 36px;
    padding: clamp(18px, 2.4vw, 34px);
    border-radius: clamp(24px, 2.5vw, 34px);
    background: var(--edara-soft-gold-gradient);
    border: 1px solid var(--edara-line);
    box-shadow: var(--edara-shadow-strong);
    color: var(--edara-ink);
    -webkit-text-fill-color: initial;
}
html body .edara-dashboard .edara-dashboard,
html body .edara-dashboard .edara-bailleur-dashboard,
html body .edara-dashboard .edara-locataire-dashboard {
    margin: 22px 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* Navigation Gestion EDARA : centrée, sticky propre, élégante. */
html body .edara-admin-nav-sticky-holder {
    width: 100%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}
html body .edara-admin-nav {
    width: 100%;
    max-width: 1380px;
    margin: 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--edara-line);
    box-shadow: 0 18px 48px rgba(40,30,12,.10);
    backdrop-filter: blur(14px);
}
/* Positionnement du menu flottant volontairement laissé à edara-responsive-optimizations.css + JS. */
html body .edara-admin-nav-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 9px !important;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #050505 0%, #171717 70%, #332405 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid rgba(212,175,55,.45);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
html body .edara-admin-nav-brand img { height: 28px !important; width: auto; }
html body .edara-admin-nav-brand * { color: #fff; -webkit-text-fill-color: #fff; }

/* Entêtes : fond clair/or, texte foncé, plus doux. */
html body .edara-dashboard-header,
html body .edara-page-hero,
html body .edara-bailleur-hero,
html body .edara-locataire-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 116px;
    margin: 0 0 24px;
    padding: clamp(22px, 3vw, 42px);
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 58%, #f3dfad 100%);
    border: 1px solid rgba(212,175,55,.38);
    box-shadow: var(--edara-shadow-soft);
    overflow: hidden;
    color: var(--edara-ink);
    -webkit-text-fill-color: initial;
}
html body .edara-dashboard-header::before,
html body .edara-page-hero::before,
html body .edara-bailleur-hero::before,
html body .edara-locataire-hero::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 5px;
    border-radius: 0 0 999px 999px;
    background: var(--edara-gold-gradient);
}
html body .edara-dashboard-header :is(h1,h2,h3,p,span,strong,small,div),
html body .edara-page-hero :is(h1,h2,h3,p,span,strong,small,div),
html body .edara-bailleur-hero :is(h1,h2,h3,p,span,strong,small,div),
html body .edara-locataire-hero :is(h1,h2,h3,p,span,strong,small,div) {
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    text-shadow: none;
}
html body .edara-dashboard-header h1,
html body .edara-page-hero h1,
html body .edara-bailleur-hero h1,
html body .edara-locataire-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -.04em;
}
html body .edara-dashboard-header p,
html body .edara-page-hero p,
html body .edara-bailleur-hero p,
html body .edara-locataire-hero p {
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.55;
    margin: 0;
}
html body .edara-page-hero-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    box-shadow: 0 16px 34px rgba(212,175,55,.24);
    font-size: 30px;
    font-weight: 900;
}

/* Blocs et cartes. */
html body .edara-card,
html body .edara-section,
html body .edara-form,
html body .edara-dashboard .filter-bar,
html body .edara-admin-page-shell .filter-bar,
html body .edara-bailleur-page-shell .filter-bar,
html body .edara-locataire-page-shell .filter-bar,
html body .edara-control-center,
html body .edara-tool-section,
html body .edara-subtabs-card,
html body .edara-patrimoine-tabs-card,
html body .edara-patrimoine-search-card,
html body .edara-smart-filter-panel,
html body .edara-sorties-panel,
html body .edara-bailleur-filter-panel,
html body .edara-bailleur-account-section,
html body .edara-bailleur-account-detail,
html body .edara-locataire-panel,
html body .edara-stat-card,
html body .edara-tool-card,
html body .edara-bailleur-stat,
html body .edara-locataire-kpi,
html body .edara-bailleur-account-card,
html body .edara-bailleur-priority-box,
html body .edara-bailleur-quick-card,
html body .edara-locataire-action-card,
html body .edara-action-card-light,
html body .edara-baux-legal-details,
html body .edara-baux-intro {
    background: var(--edara-panel-gradient);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    border: 1px solid var(--edara-line);
    border-radius: 24px;
    box-shadow: var(--edara-shadow-soft);
    text-shadow: none;
}
html body .edara-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,td,th,div),
html body .edara-section :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,td,th,div),
html body .edara-form :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,td,th,div),
html body .edara-stat-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,div),
html body .edara-tool-card :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,div),
html body .edara-bailleur-stat :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,div),
html body .edara-locataire-kpi :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,label,li,div) {
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    text-shadow: none;
}
html body .edara-muted,
html body .edara-card small,
html body .edara-section small,
html body .edara-bailleur-stat-title,
html body .edara-bailleur-account-meta,
html body .edara-locataire-kpi small,
html body .edara-tool-card small {
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
}

/* Fonds colorés métier : toujours lisibles. */
html body .edara-bailleur-stat-success,
html body .edara-locataire-kpi-success,
html body .edara-bailleur-account-card-success,
html body .edara-status-success,
html body .edara-alert-success {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
    border-color: rgba(22,163,74,.30);
    border-left: 6px solid var(--edara-green);
    color: #12301e;
    -webkit-text-fill-color: #12301e;
}
html body .edara-bailleur-stat-danger,
html body .edara-locataire-kpi-danger,
html body .edara-bailleur-account-card-danger,
html body .edara-status-danger,
html body .edara-alert-error,
html body .edara-alert-danger {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    border-color: rgba(220,38,38,.30);
    border-left: 6px solid var(--edara-red);
    color: #3b0a0a;
    -webkit-text-fill-color: #3b0a0a;
}
html body .edara-bailleur-stat-warning,
html body .edara-locataire-kpi-warning,
html body .edara-bailleur-account-card-warning,
html body .edara-status-warning,
html body .edara-alert-warning {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    border-color: rgba(245,158,11,.32);
    border-left: 6px solid var(--edara-orange);
    color: #3d2600;
    -webkit-text-fill-color: #3d2600;
}
html body :is(.edara-alert-success,.edara-alert-error,.edara-alert-danger,.edara-alert-warning,.edara-bailleur-stat-success,.edara-bailleur-stat-danger,.edara-bailleur-stat-warning) * {
    color: inherit;
    -webkit-text-fill-color: inherit;
}

/* Formulaires. */
html body .edara-form input,
html body .edara-form select,
html body .edara-form textarea,
html body .edara-card input,
html body .edara-card select,
html body .edara-card textarea,
html body .edara-section input,
html body .edara-section select,
html body .edara-section textarea,
html body .edara-patrimoine-search,
html body #edara_quittance_bien_search,
html body [id^="edara_livre_search_"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    border: 1px solid rgba(185,135,34,.32);
    border-radius: 14px;
    background: #ffffff;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
    text-shadow: none;
}
html body .edara-form input::placeholder,
html body .edara-form textarea::placeholder,
html body .edara-card input::placeholder,
html body .edara-card textarea::placeholder {
    color: #8a8173;
    -webkit-text-fill-color: #8a8173;
}
html body .edara-form input:focus,
html body .edara-form select:focus,
html body .edara-form textarea:focus,
html body .edara-card input:focus,
html body .edara-card select:focus,
html body .edara-card textarea:focus {
    outline: none;
    border-color: var(--edara-gold-2);
    box-shadow: 0 0 0 4px rgba(212,175,55,.18);
}

/* Boutons / onglets. */
html body .edara-admin-nav a,
html body .edara-subtab,
html body a.edara-subtab,
html body button.edara-subtab,
html body .edara-edit-tab,
html body .edara-patrimoine-tab,
html body .edara-button-light,
html body a.edara-button-light,
html body button.edara-button-light,
html body .edara-action-card-light {
    background: linear-gradient(180deg, #ffffff 0%, #f9f2e4 100%);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    border: 1px solid rgba(185,135,34,.34);
    border-radius: 999px;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 8px 20px rgba(40,30,12,.05);
}
html body :is(.edara-admin-nav a,.edara-subtab,.edara-edit-tab,.edara-patrimoine-tab,.edara-button-light,.edara-action-card-light) * {
    color: inherit;
    -webkit-text-fill-color: inherit;
}
html body .edara-admin-nav a:hover,
html body .edara-subtab:hover,
html body .edara-edit-tab:hover,
html body .edara-patrimoine-tab:hover,
html body .edara-button-light:hover,
html body .edara-action-card-light:hover,
html body .edara-bailleur-quick-card:hover,
html body .edara-locataire-action-card:hover {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(122,86,18,.70);
    box-shadow: 0 14px 34px rgba(185,135,34,.18);
    transform: translateY(-1px) !important;
}
html body :is(.edara-admin-nav a:hover,.edara-subtab:hover,.edara-edit-tab:hover,.edara-patrimoine-tab:hover,.edara-button-light:hover,.edara-action-card-light:hover,.edara-bailleur-quick-card:hover,.edara-locataire-action-card:hover) * {
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body .edara-admin-nav a.active,
html body .edara-admin-nav a.is-active,
html body .edara-subtab.is-active,
html body .edara-subtab.active,
html body a.edara-subtab.is-active,
html body button.edara-subtab.is-active,
html body .edara-edit-tab.is-active,
html body .edara-edit-tab.active,
html body .edara-patrimoine-tab.is-active,
html body .edara-patrimoine-tab.active,
html body .edara-selected,
html body :where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [aria-selected="true"] {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(122,86,18,.78);
    box-shadow: 0 12px 30px rgba(212,175,55,.24), inset 0 1px 0 rgba(255,255,255,.55);
    text-shadow: none;
}
html body :is(.edara-admin-nav a.active,.edara-admin-nav a.is-active,.edara-subtab.is-active,.edara-subtab.active,.edara-edit-tab.is-active,.edara-edit-tab.active,.edara-patrimoine-tab.is-active,.edara-patrimoine-tab.active,.edara-selected,:where(.edara-dashboard,.edara-admin-page-shell,.edara-bailleur-page-shell,.edara-locataire-page-shell,.edara-client-page-shell) [aria-selected="true"]) * {
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body .edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button),
html body a.edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button),
html body button.edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button),
html body input[type="submit"].edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button),
html body .edara-form button[type="submit"]:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button) {
    background: linear-gradient(135deg, #111111 0%, #242424 70%, #3a2a06 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid rgba(212,175,55,.48);
    border-radius: 14px;
    font-weight: 850;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
html body :is(.edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button),.edara-form button[type="submit"]:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button)) * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
html body .edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button):hover,
html body .edara-form button[type="submit"]:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button):hover {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body :is(.edara-button:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button):hover,.edara-form button[type="submit"]:not(.edara-button-light):not(.edara-button-danger):not(.edara-relance-button):not(.edara-reset-button):hover) * {
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body .edara-button-danger,
html body .edara-relance-button,
html body .edara-reset-button,
html body a.edara-button-danger,
html body a.edara-relance-button,
html body a.edara-reset-button,
html body button.edara-button-danger,
html body button.edara-relance-button,
html body button.edara-reset-button,
html body input.edara-button-danger,
html body input.edara-reset-button {
    background: linear-gradient(135deg, var(--edara-red-dark), var(--edara-red));
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: #7f1d1d;
}
html body :is(.edara-button-danger,.edara-relance-button,.edara-reset-button) * { color: #fff; -webkit-text-fill-color: #fff; }

/* Baux : boutons de formulaire propres. */
html body .edara-baux-toggle-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    margin: 10px 0 20px;
    background: rgba(255,250,240,.92);
    border: 1px solid rgba(185,135,34,.26);
    border-radius: 20px;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
}
html body .edara-baux-toggle-row > label,
html body .edara-baux-annexes-grid label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(185,135,34,.32);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(40,30,12,.05);
}
html body .edara-baux-toggle-row > label:hover,
html body .edara-baux-annexes-grid label:hover,
html body .edara-baux-toggle-row > label:has(input:checked),
html body .edara-baux-annexes-grid label:has(input:checked) {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(122,86,18,.78);
}
html body .edara-baux-toggle-row input[type="radio"],
html body .edara-baux-annexes-grid input[type="checkbox"] {
    width: auto;
    min-height: auto;
    accent-color: var(--edara-gold-2);
}


/* EDARA v3.1.100 — bloc obsolète supprimé : ancien final visual guard tableaux/couleurs héritées */
@media (min-width: 783px) {
    html body .edara-finance-col-bien,
    html body .edara-finance-col-locataire,
    html body .edara-finance-col-email,
    html body .edara-finance-col-sci,
    html body .edara-finance-col-solde { min-width: 140px; }
}

/* Badges. */
html body .edara-sci-badge,
html body .edara-phone,
html body .edara-muted-value,
html body .edara-status-neutral,
html body .edara-badge,
html body .edara-balance-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px !important;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #d8dde5;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: none;
}

html body .edara-badge-success {
    background: var(--edara-success-soft, #dcfce7);
    color: var(--edara-success-dark, #065f46);
    -webkit-text-fill-color: var(--edara-success-dark, #065f46);
    border-color: var(--edara-success-border, #bbf7d0);
}

html body .edara-badge-danger {
    background: var(--edara-danger-soft, #fee2e2);
    color: var(--edara-danger-dark, #7f1d1d);
    -webkit-text-fill-color: var(--edara-danger-dark, #7f1d1d);
    border-color: var(--edara-danger-border, #fecaca);
}

html body .edara-badge-warning {
    background: var(--edara-warning-soft, #fef3c7);
    color: var(--edara-warning-dark, #78350f);
    -webkit-text-fill-color: var(--edara-warning-dark, #78350f);
    border-color: var(--edara-warning-border, #fde68a);
}

html body .edara-badge-info {
    background: var(--edara-info-soft, #e0f2fe);
    color: var(--edara-info, #005a8d);
    -webkit-text-fill-color: var(--edara-info, #005a8d);
    border-color: var(--edara-info-border, #bae6fd);
}

html body .edara-badge-neutral {
    background: var(--edara-neutral-soft, #f8fafc);
    color: var(--edara-muted, #667085);
    -webkit-text-fill-color: var(--edara-muted, #667085);
    border-color: var(--edara-neutral-border, #d8dde5);
}

/* Grilles. */
html body .edara-stats-grid,
html body .edara-stats-grid-v2,
html body .edara-tool-grid,
html body .edara-bailleur-premium-summary,
html body .edara-bailleur-quick-grid,
html body .edara-bailleur-account-grid,
html body .edara-locataire-kpi-grid,
html body .edara-locataire-action-grid,
html body .edara-baux-stats-grid,
html body .edara-baux-principles,
html body .edara-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
html body .edara-admin-control-dashboard .edara-stat-card,
html body .edara-admin-control-dashboard .edara-tool-card {
    min-height: 150px !important;
    padding: 22px;
    border-bottom: 5px solid var(--edara-gold-2);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
html body .edara-admin-control-dashboard .edara-stat-card:hover,
html body .edara-admin-control-dashboard .edara-tool-card:hover {
    transform: translateY(-2px) !important;
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
}
html body :is(.edara-admin-control-dashboard .edara-stat-card:hover,.edara-admin-control-dashboard .edara-tool-card:hover) * { color: #111; -webkit-text-fill-color: #111; }

/* Responsive tablette/mobile. */







/* === Source legacy : assets/css/final-visual-guard/final-subtabs-footer-guard-v3134.css === */

/* EDARA - edara-subtabs-footer-guard-v3134, extrait du PHP au point 28. */
html body .edara-subtabs .edara-subtab,
html body .edara-subtabs a.edara-subtab,
html body .edara-subtabs button.edara-subtab,
html body .edara-dashboard .edara-subtabs .edara-subtab,
html body .edara-card .edara-subtabs .edara-subtab,
html body .edara-admin-page-shell .edara-subtabs .edara-subtab,
html body .edara-bailleur-dashboard .edara-subtabs .edara-subtab,
html body .edara-locataire-dashboard .edara-subtabs .edara-subtab {
    background: linear-gradient(180deg, #ffffff 0%, #f9f2e4 100%);
    color: #171717;
    -webkit-text-fill-color: #171717;
    border: 1px solid rgba(185,135,34,.34);
    text-shadow: none;
}
html body .edara-subtabs .edara-subtab *,
html body .edara-subtabs a.edara-subtab *,
html body .edara-subtabs button.edara-subtab * {
    color: inherit;
    -webkit-text-fill-color: inherit;
    text-shadow: none;
}
html body .edara-subtabs .edara-subtab:hover,
html body .edara-subtabs a.edara-subtab:hover,
html body .edara-subtabs button.edara-subtab:hover,
html body .edara-subtabs .edara-subtab:focus,
html body .edara-subtabs a.edara-subtab:focus,
html body .edara-subtabs button.edara-subtab:focus,
html body .edara-subtabs .edara-subtab:focus-visible,
html body .edara-subtabs a.edara-subtab:focus-visible,
html body .edara-subtabs button.edara-subtab:focus-visible {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(122,86,18,.72);
    box-shadow: 0 14px 34px rgba(185,135,34,.20);
    text-shadow: none;
}
html body .edara-subtabs .edara-subtab:hover *,
html body .edara-subtabs a.edara-subtab:hover *,
html body .edara-subtabs button.edara-subtab:hover *,
html body .edara-subtabs .edara-subtab:focus *,
html body .edara-subtabs a.edara-subtab:focus *,
html body .edara-subtabs button.edara-subtab:focus * {
    color: #111111;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
}
html body .edara-subtabs .edara-subtab.is-active,
html body .edara-subtabs a.edara-subtab.is-active,
html body .edara-subtabs button.edara-subtab.is-active,
html body .edara-subtabs .edara-subtab.active,
html body .edara-subtabs a.edara-subtab.active,
html body .edara-subtabs button.edara-subtab.active,
html body .edara-dashboard .edara-subtabs .edara-subtab.is-active,
html body .edara-card .edara-subtabs .edara-subtab.is-active,
html body .edara-admin-page-shell .edara-subtabs .edara-subtab.is-active {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(122,86,18,.78);
    box-shadow: 0 12px 30px rgba(212,175,55,.24), inset 0 1px 0 rgba(255,255,255,.55);
    text-shadow: none;
}
html body .edara-subtabs .edara-subtab.is-active *,
html body .edara-subtabs a.edara-subtab.is-active *,
html body .edara-subtabs button.edara-subtab.is-active *,
html body .edara-subtabs .edara-subtab.active *,
html body .edara-subtabs a.edara-subtab.active *,
html body .edara-subtabs button.edara-subtab.active * {
    color: #111111;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
}
/* Boutons internes des zones Création & affiliation et Livre de compte qui peuvent hériter d'un ancien style sombre. */
html body .edara-card .edara-button.is-active,
html body .edara-card button.is-active,
html body .edara-card a.is-active:not(.edara-admin-nav-brand),
html body .edara-form .edara-button.is-active,
html body .edara-form button.is-active {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
}
html body .edara-card .edara-button.is-active *,
html body .edara-card button.is-active *,
html body .edara-card a.is-active:not(.edara-admin-nav-brand) *,
html body .edara-form .edara-button.is-active *,
html body .edara-form button.is-active * {
    color: #111111;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
}


/* v3.1.34 — correction du sous-menu flottant au survol + relances rouges lisibles. */
html body .edara-admin-nav.edara-admin-nav-fixed a:hover,
html body .edara-admin-nav.edara-admin-nav-fixed a:focus,
html body .edara-admin-nav.edara-admin-nav-fixed a:focus-visible,
html body .edara-admin-nav.is-sticky-floating a:hover,
html body .edara-admin-nav.is-sticky-floating a:focus,
html body .edara-admin-nav.is-sticky-floating a:focus-visible,
html body .edara-admin-nav a:hover,
html body .edara-admin-nav a:focus,
html body .edara-admin-nav a:focus-visible {
    background: var(--edara-gold-gradient);
    color: #111111;
    -webkit-text-fill-color: #111111;
    border-color: rgba(122,86,18,.76);
    text-shadow: none;
}
html body .edara-admin-nav.edara-admin-nav-fixed a:hover *,
html body .edara-admin-nav.edara-admin-nav-fixed a:focus *,
html body .edara-admin-nav.edara-admin-nav-fixed a:focus-visible *,
html body .edara-admin-nav.is-sticky-floating a:hover *,
html body .edara-admin-nav.is-sticky-floating a:focus *,
html body .edara-admin-nav.is-sticky-floating a:focus-visible *,
html body .edara-admin-nav a:hover *,
html body .edara-admin-nav a:focus *,
html body .edara-admin-nav a:focus-visible * {
    color: #111111;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
}

html body .edara-admin-nav a[href*="relance"],
html body .edara-admin-nav a[href*="relances"],
html body .edara-admin-nav .edara-relance-button,
html body .edara-relance-button,
html body a.edara-relance-button,
html body button.edara-relance-button,
html body .edara-button-danger,
html body a.edara-button-danger,
html body button.edara-button-danger,
html body .edara-reset-button,
html body a.edara-reset-button,
html body button.edara-reset-button {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 48%, #ef4444 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: rgba(127,29,29,.85);
    text-shadow: none;
}
html body .edara-admin-nav a[href*="relance"] *,
html body .edara-admin-nav a[href*="relances"] *,
html body .edara-admin-nav .edara-relance-button *,
html body .edara-relance-button *,
html body a.edara-relance-button *,
html body button.edara-relance-button *,
html body .edara-button-danger *,
html body a.edara-button-danger *,
html body button.edara-button-danger *,
html body .edara-reset-button *,
html body a.edara-reset-button *,
html body button.edara-reset-button * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}
html body .edara-admin-nav a[href*="relance"]:hover,
html body .edara-admin-nav a[href*="relance"]:focus,
html body .edara-admin-nav a[href*="relances"]:hover,
html body .edara-admin-nav a[href*="relances"]:focus,
html body .edara-relance-button:hover,
html body a.edara-relance-button:hover,
html body button.edara-relance-button:hover,
html body .edara-button-danger:hover,
html body a.edara-button-danger:hover,
html body button.edara-button-danger:hover {
    background: linear-gradient(135deg, #450a0a 0%, #991b1b 48%, #dc2626 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: rgba(69,10,10,.92);
}
html body .edara-admin-nav a[href*="relance"]:hover *,
html body .edara-admin-nav a[href*="relance"]:focus *,
html body .edara-admin-nav a[href*="relances"]:hover *,
html body .edara-admin-nav a[href*="relances"]:focus *,
html body .edara-relance-button:hover *,
html body a.edara-relance-button:hover *,
html body button.edara-relance-button:hover *,
html body .edara-button-danger:hover *,
html body a.edara-button-danger:hover *,
html body button.edara-button-danger:hover * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}


/* v3.1.35 — Dashboard financier : relances rouges lisibles partout. */
html body .edara-dashboard .edara-finance-relance-card,
html body .edara-dashboard a.edara-finance-relance-card,
html body .edara-dashboard a.edara-finance-relance-card:visited {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 48%, #ef4444 100%);
    border-color: rgba(127,29,29,.85);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}
html body .edara-dashboard .edara-finance-relance-card *,
html body .edara-dashboard a.edara-finance-relance-card * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}
html body .edara-dashboard .edara-finance-relance-card:hover,
html body .edara-dashboard a.edara-finance-relance-card:hover,
html body .edara-dashboard .edara-finance-relance-card:focus,
html body .edara-dashboard a.edara-finance-relance-card:focus {
    background: linear-gradient(135deg, #450a0a 0%, #991b1b 48%, #dc2626 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
html body .edara-dashboard .edara-finance-relance-card:hover *,
html body .edara-dashboard a.edara-finance-relance-card:hover *,
html body .edara-dashboard .edara-finance-relance-card:focus *,
html body .edara-dashboard a.edara-finance-relance-card:focus * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 900;
}
html body .edara-dashboard .edara-relance-button,
html body .edara-dashboard button.edara-relance-button,
html body .edara-dashboard a.edara-relance-button,
html body .edara-dashboard input[type="submit"].edara-relance-button {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 48%, #ef4444 100%);
    border-color: rgba(127,29,29,.85);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 800;
    text-shadow: none;
}
html body .edara-dashboard .edara-relance-button *,
html body .edara-dashboard button.edara-relance-button *,
html body .edara-dashboard a.edara-relance-button * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}
html body .edara-dashboard .edara-relance-button:hover,
html body .edara-dashboard button.edara-relance-button:hover,
html body .edara-dashboard a.edara-relance-button:hover,
html body .edara-dashboard input[type="submit"].edara-relance-button:hover {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 900;
}
html body .edara-dashboard .edara-relance-button:hover *,
html body .edara-dashboard button.edara-relance-button:hover *,
html body .edara-dashboard a.edara-relance-button:hover * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 900;
}



/* EDARA point 65 : ancien bloc responsive contradictoire supprimé.
   La logique mobile/tablette/desktop est centralisée dans edara-responsive-optimizations.css. */

/* Grilles de cartes : meilleure occupation de la largeur disponible. */
html body .edara-stats-grid,
html body .edara-stats-grid-v2,
html body .edara-dashboard-grid,
html body .edara-actions-grid,
html body .edara-tool-grid,
html body .edara-bailleur-premium-summary,
html body .edara-bailleur-quick-grid,
html body .edara-bailleur-account-grid,
html body .edara-locataire-logements-grid,
html body .edara-locataire-finance-grid,
html body .edara-locataire-alert-grid {
    width: 100% !important;
    max-width: 100% !important;
}

html body .edara-locataire-info-grid,
html body .edara-locataire-info-grid.compact {
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px;
}

html body .edara-locataire-info-grid > div,
html body .edara-bailleur-account-card,
html body .edara-locataire-logement-card,
html body .edara-locataire-account-card,
html body .edara-stat-card,
html body .edara-tool-card,
html body .edara-action-card-light {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}





/* EDARA point 65 : ancien bloc responsive contradictoire supprimé.
   La logique mobile/tablette/desktop est centralisée dans edara-responsive-optimizations.css. */

/* === Source legacy : assets/css/final-visual-guard/final-layout-readability-guard-v3137.css === */

/* EDARA - edara-layout-readability-guard-v3137, extrait du PHP au point 28. */
/* ==========================================================
   EDARA v3.1.37 — Lisibilité générale badges / boutons
   ========================================================== */


/* EDARA v3.1.100 — bloc obsolète supprimé : ancien readability guard badges/statuts */

/* EDARA point 65 : ancien forçage global des actions supprimé.
   Les boutons/actions sont maintenant pilotés par la couche responsive unique. */

/* ==========================================================
   EDARA point 63 - Ancien mode carte desktop supprimé.
   Ce bloc transformait les tableaux larges en cartes au-dessus de
   1101px / 1400px. Il est volontairement neutralisé pour que le
   desktop reste toujours un vrai tableau.
   ========================================================== */






/* === Source legacy : assets/css/final-visual-guard/final-status-sorties-width-guard-v3138.css === */

/* EDARA - edara-status-sorties-width-guard-v3138, extrait du PHP au point 28. */
/* ==========================================================
   EDARA v3.1.38 — Statuts positifs différenciés
   ========================================================== */

/* En règle : vert doux, lisible, positif mais pas trop fort. */
html body .edara-status-neutral,
html body .edara-dashboard .edara-status-neutral,
html body .edara-table .edara-status-neutral,
html body span.edara-status-neutral {
    background: #eaf8ef;
    color: #166534;
    -webkit-text-fill-color: #166534;
    border: 1px solid #b7e4c7;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.10);
    font-weight: 900;
}

/* Payé : vert plus foncé que “En règle”. */
html body .edara-dashboard .status-paid,
html body .edara-admin-page-shell .status-paid,
html body .edara-bailleur-page-shell .status-paid,
html body .edara-locataire-page-shell .status-paid,
html body .edara-badge-v2.status-paid,
html body .edara-dashboard span.status-paid,
html body .edara-admin-page-shell span.status-paid,
html body .edara-bailleur-page-shell span.status-paid,
html body .edara-locataire-page-shell span.status-paid,
html body .edara-dashboard .status-paid,
html body .edara-table .status-paid {
    background: #d1fae5;
    color: #065f46;
    -webkit-text-fill-color: #065f46;
    border: 1px solid #10b981;
    box-shadow: 0 8px 18px rgba(6, 95, 70, 0.14);
    font-weight: 950;
}

/* Trop-perçu / En avance : vert premium encore plus foncé. */
html body .edara-dashboard .status-success,
html body .edara-admin-page-shell .status-success,
html body .edara-bailleur-page-shell .status-success,
html body .edara-locataire-page-shell .status-success,
html body .edara-badge-v2.status-success,
html body .edara-status-success,
html body .edara-dashboard span.status-success,
html body .edara-admin-page-shell span.status-success,
html body .edara-bailleur-page-shell span.status-success,
html body .edara-locataire-page-shell span.status-success,
html body span.edara-status-success,
html body .edara-dashboard .status-success,
html body .edara-dashboard .edara-status-success,
html body .edara-table .status-success,
html body .edara-table .edara-status-success {
    background: #064e3b;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border: 1px solid #047857;
    box-shadow: 0 10px 22px rgba(6, 78, 59, 0.22);
    font-weight: 950;
}

html body .edara-dashboard .status-success:hover,
html body .edara-admin-page-shell .status-success:hover,
html body .edara-bailleur-page-shell .status-success:hover,
html body .edara-locataire-page-shell .status-success:hover,
html body .edara-status-success:hover,
html body .edara-badge-v2.status-success:hover {
    background: #022c22;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/* ==========================================================
   EDARA v3.1.92 — Sorties & fiscalité : nettoyage des anciennes largeurs
   Les largeurs précises des tableaux Sorties sont maintenant centralisées dans
   assets/css/edara-responsive-optimizations.css pour éviter les conflits.
   ========================================================== */

html body .edara-sorties-wrap,
html body .edara-sorties-panel,
html body .edara-sorties-scroll {
    width: 100% !important;
    max-width: 100% !important;
}


/* EDARA v3.1.100 — bloc obsolète supprimé : ancien message scroll horizontal sorties */

/* EDARA point 65 : ancien bloc responsive contradictoire supprimé.
   La logique mobile/tablette/desktop est centralisée dans edara-responsive-optimizations.css. */


/* EDARA point 65 : garde-fou desktop point 63 supprimé et remplacé par la couche responsive unique. */

/* ==========================================================
   Mission 14 — Navigation admin front structurée par groupes
   ========================================================== */
html body .edara-admin-nav.edara-admin-nav-grouped {
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px;
}

html body .edara-admin-nav-grouped .edara-admin-nav-brand {
    align-self: stretch;
    min-height: 48px;
}

html body .edara-admin-nav-groups {
    display: flex;
    flex: 1 1 720px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

html body .edara-admin-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px;
    border: 1px solid rgba(185,135,34,.22);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(249,242,228,.72) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.70), 0 8px 20px rgba(40,30,12,.045);
}

html body .edara-admin-nav-group.is-active-group {
    border-color: rgba(185,135,34,.48);
    background: linear-gradient(180deg, #ffffff 0%, #fff3d0 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 12px 28px rgba(185,135,34,.12);
}

html body .edara-admin-nav-group-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(141,147,155,.14);
}

html body .edara-admin-nav-group.is-active-group .edara-admin-nav-group-title {
    color: #111111;
    -webkit-text-fill-color: #111111;
    background: var(--edara-gold-gradient);
    border-color: rgba(122,86,18,.38);
}

html body .edara-admin-nav-group-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

html body .edara-admin-nav.edara-admin-nav-grouped a.edara-admin-nav-link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12.5px;
    line-height: 1.12;
}

html body .edara-admin-nav-group-home,
html body .edara-admin-nav-group-outils {
    flex: 0 0 auto;
}

/* Mission 15 — écritures financières verrouillées */
html body .edara-inline-edit-grid-locked {
    align-items: center;
    background: linear-gradient(135deg, rgba(247,242,232,.86) 0%, rgba(255,255,255,.96) 100%);
    border: 1px dashed var(--edara-border);
    border-radius: var(--edara-radius-sm);
    color: var(--edara-ink);
}

html body .edara-inline-edit-grid-locked .edara-nowrap-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

html body .edara-inline-edit-grid-locked .edara-muted-small {
    display: inline-block;
    max-width: 190px;
    color: var(--edara-muted);
}


/* ==========================================================
   Mission 17C — UX admin : menu sticky compact + Patrimoine propre
   ========================================================== */
html body .edara-admin-nav.edara-admin-nav-grouped {
    transition: padding .18s ease, border-radius .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped {
    max-height: 70px;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border-color: rgba(201,151,46,.34);
    box-shadow: 0 14px 34px rgba(15,15,15,.14);
    overflow: hidden;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-brand,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-brand {
    min-height: 38px;
    align-self: center;
    padding: 7px 10px;
    gap: 6px;
    flex: 0 0 auto;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-brand img,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-brand img {
    height: 20px !important;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-brand span,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-brand span {
    font-size: 11px;
    letter-spacing: .02em;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-groups,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-groups {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-group,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-group {
    flex: 0 0 auto;
    gap: 5px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(247,242,232,.62);
    border-color: rgba(201,151,46,.16);
    box-shadow: none;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-group-title,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-group-title {
    min-height: 28px;
    padding: 0 7px;
    font-size: 0;
    letter-spacing: 0;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-group-title::first-letter,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-group-title::first-letter {
    font-size: 11px;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-group-links,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-group-links {
    flex-wrap: nowrap;
    gap: 4px;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped a.edara-admin-nav-link,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped a.edara-admin-nav-link {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped a.edara-admin-nav-link:not(.active):not(.is-active),
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped a.edara-admin-nav-link:not(.active):not(.is-active) {
    background: rgba(255,255,255,.62);
}

html body .edara-patrimoine-biens-table {
    table-layout: fixed;
    min-width: 1120px;
}

html body .edara-patrimoine-biens-table th,
html body .edara-patrimoine-biens-table td {
    vertical-align: middle;
}

html body .edara-patrimoine-biens-table th:nth-child(1),
html body .edara-patrimoine-biens-table td:nth-child(1) { width: 24%; }
html body .edara-patrimoine-biens-table th:nth-child(2),
html body .edara-patrimoine-biens-table td:nth-child(2) { width: 15%; }
html body .edara-patrimoine-biens-table th:nth-child(3),
html body .edara-patrimoine-biens-table td:nth-child(3) { width: 13%; }
html body .edara-patrimoine-biens-table th:nth-child(4),
html body .edara-patrimoine-biens-table td:nth-child(4) { width: 15%; }
html body .edara-patrimoine-biens-table th:nth-child(5),
html body .edara-patrimoine-biens-table td:nth-child(5) { width: 9%; }
html body .edara-patrimoine-biens-table th:nth-child(6),
html body .edara-patrimoine-biens-table td:nth-child(6),
html body .edara-patrimoine-biens-table th:nth-child(7),
html body .edara-patrimoine-biens-table td:nth-child(7) { width: 7%; text-align: center; }
html body .edara-patrimoine-biens-table th:nth-child(8),
html body .edara-patrimoine-biens-table td:nth-child(8) { width: 14%; }
html body .edara-patrimoine-biens-table th:nth-child(9),
html body .edara-patrimoine-biens-table td:nth-child(9) { width: 12%; }

html body .edara-patrimoine-bien-title {
    display: block;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-weight: 900;
    line-height: 1.25;
}

html body .edara-patrimoine-bien-address,
html body .edara-structure-detail {
    display: block;
    margin-top: 5px;
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
    font-size: 12px;
    line-height: 1.35;
}

html body .edara-structure-chip,
html body .edara-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    border: 1px solid var(--edara-border);
    background: var(--edara-neutral-soft);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
}

html body .edara-structure-chip-sci {
    background: rgba(201,151,46,.14);
    border-color: rgba(201,151,46,.34);
}

html body .edara-structure-chip-direct {
    background: var(--edara-info-soft);
    border-color: var(--edara-info-border);
    color: var(--edara-info);
    -webkit-text-fill-color: var(--edara-info);
}

html body .edara-structure-chip-missing {
    background: var(--edara-danger-soft);
    border-color: var(--edara-danger-border);
    color: var(--edara-danger);
    -webkit-text-fill-color: var(--edara-danger);
}

html body .edara-count-pill {
    min-width: 34px;
    background: #fff;
    border-color: rgba(201,151,46,.22);
}

html body .edara-patrimoine-col-loyer {
    white-space: nowrap;
    font-weight: 900;
}

html body .edara-actions-stack-compact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

html body .edara-button.edara-button-compact {
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 782px) {
    html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped,
    html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped {
        max-height: 62px;
        border-radius: 20px;
    }

    html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-grouped .edara-admin-nav-brand span,
    html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-grouped .edara-admin-nav-brand span {
        display: none;
    }
}



/* ==========================================================
   Mission 17D — Navigation off-canvas + harmonisation sous-pages admin
   ========================================================== */

/* Navigation : test off-canvas choisi pour libérer l'espace vertical. */
html body .edara-admin-nav.edara-admin-nav-offcanvas-mode,
html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-offcanvas-mode,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-offcanvas-mode {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    max-height: none;
    min-height: 0;
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(201,151,46,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 34px rgba(15,15,15,.10), inset 0 1px 0 rgba(255,255,255,.72);
}

html body .edara-admin-nav.edara-admin-nav-fixed.edara-admin-nav-offcanvas-mode .edara-admin-nav-pill,
html body .edara-admin-nav.is-sticky-floating.edara-admin-nav-offcanvas-mode .edara-admin-nav-pill {
    padding: 6px;
    box-shadow: 0 16px 38px rgba(15,15,15,.14), inset 0 1px 0 rgba(255,255,255,.76);
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    gap: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, #111 0%, #2a2114 55%, #111 100%);
    border: 1px solid rgba(201,151,46,.34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    text-decoration: none;
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-brand img {
    height: 22px !important;
    width: auto;
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-brand span {
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
    white-space: nowrap;
}

html body .edara-admin-nav-current {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

html body .edara-admin-nav-current-kicker {
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

html body .edara-admin-nav-current strong {
    display: block;
    overflow: hidden;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body .edara-admin-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    color: #15110a;
    -webkit-text-fill-color: #15110a;
    background: var(--edara-gold-gradient);
    box-shadow: 0 10px 20px rgba(201,151,46,.18);
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

html body .edara-admin-nav-toggle:hover,
html body .edara-admin-nav-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(201,151,46,.24);
    outline: none;
}

html body .edara-admin-nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

html body .edara-admin-nav-toggle-icon i {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #15110a;
}

html body .edara-admin-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(17,17,17,.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

html body .edara-admin-nav-drawer {
    position: fixed;
    z-index: 9998;
    top: 24px;
    right: 24px;
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(201,151,46,.26);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,242,232,.96) 100%);
    box-shadow: 0 30px 80px rgba(15,15,15,.24);
    transform: translateX(calc(100% + 42px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease, visibility .18s ease;
}

html body.admin-bar .edara-admin-nav-drawer {
    top: 56px;
    max-height: calc(100vh - 80px);
}

html body .edara-admin-nav.is-offcanvas-open .edara-admin-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html body .edara-admin-nav.is-offcanvas-open .edara-admin-nav-drawer {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.edara-admin-nav-open,
html body.edara-admin-nav-open {
    overflow: hidden;
}

html body .edara-admin-nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--edara-border);
}

html body .edara-admin-nav-drawer-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html body .edara-admin-nav-drawer-head strong {
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-size: 20px;
    font-weight: 950;
}

html body .edara-admin-nav-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--edara-border);
    border-radius: 999px;
    background: #fff;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    cursor: pointer;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

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

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(201,151,46,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-group.is-active-group {
    background: linear-gradient(180deg, #fff 0%, #fff5dc 100%);
    border-color: rgba(201,151,46,.42);
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-group-title {
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--edara-muted);
    -webkit-text-fill-color: var(--edara-muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

html body .edara-admin-nav-offcanvas-mode .edara-admin-nav-group.is-active-group .edara-admin-nav-group-title {
    color: var(--edara-gold);
    -webkit-text-fill-color: var(--edara-gold);
    background: transparent;
    border: 0;
}

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

html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(17,17,17,.06);
    box-shadow: none;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link:hover,
html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link:focus-visible {
    color: #15110a;
    -webkit-text-fill-color: #15110a;
    background: #fff8e6;
    border-color: rgba(201,151,46,.32);
    outline: none;
    transform: translateX(2px);
}

html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link.active,
html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link.is-active {
    color: #15110a;
    -webkit-text-fill-color: #15110a;
    background: var(--edara-gold-gradient);
    border-color: rgba(122,86,18,.30);
    box-shadow: 0 10px 20px rgba(201,151,46,.15);
}

html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link-relances,
html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link-relances *,
html body .edara-admin-nav-offcanvas-mode a[href*="relance"],
html body .edara-admin-nav-offcanvas-mode a[href*="relance"] * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link-relances,
html body .edara-admin-nav-offcanvas-mode a[href*="relance"] {
    background: linear-gradient(135deg, #b32d2e 0%, #8f1f24 100%) !important;
    border-color: rgba(143,31,36,.36) !important;
    box-shadow: 0 10px 22px rgba(179,45,46,.18) !important;
}

html body .edara-admin-nav-offcanvas-mode a.edara-admin-nav-link-relances:hover,
html body .edara-admin-nav-offcanvas-mode a[href*="relance"]:hover {
    background: linear-gradient(135deg, #c93a3b 0%, #9f2328 100%) !important;
}

/* Harmonisation pages et sous-pages de Gestion EDARA */
html body :where(.edara-admin-page-shell, .edara-admin-control-dashboard, .edara-patrimoine-dashboard, .edara-financial-dashboard, .edara-quittances-dashboard, .edara-pointage-dashboard, .edara-baux-dashboard, .edara-edl-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard) .edara-card {
    border: 1px solid rgba(234,223,202,.94);
    border-radius: var(--edara-radius);
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,252,246,.98) 100%);
    box-shadow: var(--edara-shadow-soft);
}

html body :where(.edara-admin-page-shell, .edara-admin-control-dashboard, .edara-patrimoine-dashboard) .edara-card > h2:first-child,
html body :where(.edara-admin-page-shell, .edara-admin-control-dashboard, .edara-patrimoine-dashboard) .edara-card > h3:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-weight: 950;
    letter-spacing: -.02em;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-responsive-table-wrap {
    width: 100%;
    border: 1px solid var(--edara-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.80);
    overflow-x: auto;
    overflow-y: hidden;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) table.edara-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) table.edara-table thead th {
    position: relative;
    padding: 15px 14px;
    color: #15110a;
    -webkit-text-fill-color: #15110a;
    background: linear-gradient(180deg, #fff8e6 0%, #f3e4c6 100%);
    border-bottom: 1px solid rgba(201,151,46,.28);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) table.edara-table tbody td {
    padding: 14px;
    border-bottom: 1px solid rgba(234,223,202,.82);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    vertical-align: middle;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) table.edara-table tbody tr:last-child td {
    border-bottom: 0;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) table.edara-table tbody tr:hover td {
    background: rgba(247,242,232,.42);
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-actions-cell,
html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-patrimoine-actions {
    min-width: 118px;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-actions-stack form {
    margin: 0;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-actions-stack .edara-button,
html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-actions-cell .edara-button {
    width: 100%;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.05;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-table-control,
html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-table-control-md,
html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-table-control-sm,
html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) .edara-table-control-xs,
html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) textarea.edara-table-control {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    border: 1px solid rgba(234,223,202,.98);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-size: 13px;
}

html body :where(.edara-admin-page-shell, .edara-patrimoine-dashboard) textarea.edara-table-control {
    min-height: 86px;
    resize: vertical;
}

html body .edara-bulk-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid var(--edara-border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(247,242,232,.86) 0%, rgba(255,255,255,.96) 100%);
}

/* Patrimoine : sous-menus et tableaux dédiés */
html body .edara-patrimoine-tabs-card {
    position: sticky;
    top: 12px;
    z-index: 15;
    padding: 10px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html body.admin-bar .edara-patrimoine-tabs-card {
    top: 46px;
}

html body .edara-patrimoine-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

html body .edara-patrimoine-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(247,242,232,.72);
    border: 1px solid rgba(234,223,202,.88);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    font-weight: 850;
    text-decoration: none;
}

html body .edara-patrimoine-tab:hover,
html body .edara-patrimoine-tab:focus-visible {
    background: #fff8e6;
    border-color: rgba(201,151,46,.34);
    transform: translateY(-1px);
    outline: none;
}

html body .edara-patrimoine-tab.is-active,
html body .edara-patrimoine-tab.active {
    color: #15110a;
    -webkit-text-fill-color: #15110a;
    background: var(--edara-gold-gradient);
    border-color: rgba(122,86,18,.30);
    box-shadow: 0 10px 20px rgba(201,151,46,.16);
}

html body .edara-patrimoine-table-wrap {
    margin-top: 12px;
}

html body .edara-patrimoine-table,
html body .edara-documents-bulk-table {
    min-width: 980px;
}

html body .edara-patrimoine-biens-table {
    table-layout: fixed;
    min-width: 1160px;
}

html body .edara-patrimoine-biens-table th:nth-child(1),
html body .edara-patrimoine-biens-table td:nth-child(1) { width: 23%; }
html body .edara-patrimoine-biens-table th:nth-child(2),
html body .edara-patrimoine-biens-table td:nth-child(2) { width: 15%; }
html body .edara-patrimoine-biens-table th:nth-child(3),
html body .edara-patrimoine-biens-table td:nth-child(3) { width: 13%; }
html body .edara-patrimoine-biens-table th:nth-child(4),
html body .edara-patrimoine-biens-table td:nth-child(4) { width: 14%; }
html body .edara-patrimoine-biens-table th:nth-child(5),
html body .edara-patrimoine-biens-table td:nth-child(5) { width: 8%; }
html body .edara-patrimoine-biens-table th:nth-child(6),
html body .edara-patrimoine-biens-table td:nth-child(6),
html body .edara-patrimoine-biens-table th:nth-child(7),
html body .edara-patrimoine-biens-table td:nth-child(7) { width: 6%; text-align: center; }
html body .edara-patrimoine-biens-table th:nth-child(8),
html body .edara-patrimoine-biens-table td:nth-child(8) { width: 15%; }
html body .edara-patrimoine-biens-table th:nth-child(9),
html body .edara-patrimoine-biens-table td:nth-child(9) { width: 14%; }

html body .edara-patrimoine-col-bien,
html body .edara-patrimoine-col-structure,
html body .edara-patrimoine-col-locataire {
    overflow-wrap: anywhere;
}

html body .edara-patrimoine-col-statut {
    min-width: 150px;
}

html body .edara-status-preview {
    margin-top: 8px;
}

html body .edara-delete-button {
    background: linear-gradient(135deg, #b32d2e 0%, #8f1f24 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: rgba(143,31,36,.30) !important;
}

html body .edara-delete-button * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

@media (max-width: 782px) {
    html body .edara-admin-nav-current strong {
        font-size: 12px;
    }

    html body .edara-admin-nav-current-kicker {
        font-size: 9px;
    }

    html body .edara-admin-nav-toggle {
        min-height: 38px;
        padding: 8px 12px;
    }

    html body .edara-admin-nav-toggle span:last-child {
        display: none;
    }

    html body .edara-admin-nav-drawer {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 24px);
        border-radius: 24px;
    }

    html body.admin-bar .edara-admin-nav-drawer {
        top: 58px;
        max-height: calc(100vh - 70px);
    }

    html body .edara-bulk-toolbar {
        grid-template-columns: 1fr;
    }

    html body .edara-patrimoine-tabs-card {
        position: relative;
        top: auto;
    }

    html body .edara-patrimoine-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    html body .edara-patrimoine-tab {
        white-space: nowrap;
    }
}

/* ==========================================================
   Mission 17E — correction mobile du menu off-canvas
   ========================================================== */
html body .edara-admin-nav-backdrop[data-edara-nav-portal="backdrop"] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html body .edara-admin-nav-backdrop[data-edara-nav-portal="backdrop"].is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] {
    position: fixed !important;
    z-index: 2147483001 !important;
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"].is-open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] .edara-admin-nav-groups {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 12px !important;
    overflow: visible !important;
}

html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] .edara-admin-nav-group,
html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] .edara-admin-nav-group-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    overflow: visible !important;
}

html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] a.edara-admin-nav-link {
    display: flex !important;
    width: 100% !important;
    white-space: normal !important;
}

@media (max-width: 782px) {
    html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] {
        top: max(10px, env(safe-area-inset-top)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        left: max(10px, env(safe-area-inset-left)) !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        padding: 14px !important;
        border-radius: 22px !important;
        transform: translate3d(0, 18px, 0) scale(.985) !important;
    }

    html body.admin-bar .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] {
        top: max(58px, calc(env(safe-area-inset-top) + 48px)) !important;
    }

    html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] .edara-admin-nav-drawer-head {
        position: sticky;
        top: -14px;
        z-index: 2;
        margin: -14px -14px 14px;
        padding: 14px;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: 22px 22px 0 0;
    }

    html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] .edara-admin-nav-group {
        padding: 12px !important;
        border-radius: 20px !important;
    }

    html body .edara-admin-nav-drawer[data-edara-nav-portal="drawer"] a.edara-admin-nav-link {
        min-height: 44px !important;
        padding: 11px 12px !important;
        font-size: 13px !important;
    }
}

/* EDARA Mission 17F — respiration visuelle globale.
 * Objectif : éviter les titres, textes, tableaux, menus et sous-menus collés aux bords
 * sur toutes les pages et sous-pages Gestion EDARA, Bailleur et Locataire.
 */
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);
}

html body.edara-responsive-ready :where(
    .edara-alert,
    .edara-help-text-block,
    .edara-admin-help-text,
    .edara-sorties-note,
    .edara-locataire-empty,
    .edara-admin-cleanup-card,
    .edara-diagnostic-actions-intro,
    .edara-bailleur-priority-box,
    .edara-bailleur-quick-card,
    .edara-locataire-action-card,
    .edara-action-card-light,
    .edara-print-summary-card
) {
    padding: var(--edara-card-padding-sm);
}

html body.edara-responsive-ready :where(
    .edara-stat-card,
    .stat-card-v2,
    .edara-patrimoine-stat,
    .edara-sorties-stat,
    .edara-bailleur-stat,
    .edara-locataire-kpi,
    .edara-diagnostic-kpi,
    .edara-bailleur-account-card
) {
    padding: clamp(18px, 2vw, 26px);
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-control-center, .edara-tool-section, .edara-tool-card) > :first-child,
html body.edara-responsive-ready :where(.edara-patrimoine-tabs-card, .edara-patrimoine-search-card, .edara-subtabs-card, .edara-smart-filter-panel, .edara-sorties-panel, .edara-locataire-panel) > :first-child {
    margin-top: 0;
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-control-center, .edara-tool-section, .edara-tool-card) > :last-child,
html body.edara-responsive-ready :where(.edara-patrimoine-tabs-card, .edara-patrimoine-search-card, .edara-subtabs-card, .edara-smart-filter-panel, .edara-sorties-panel, .edara-locataire-panel) > :last-child {
    margin-bottom: 0;
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-control-center, .edara-tool-section, .edara-tool-card) > * + *,
html body.edara-responsive-ready :where(.edara-patrimoine-tabs-card, .edara-patrimoine-search-card, .edara-subtabs-card, .edara-smart-filter-panel, .edara-sorties-panel, .edara-locataire-panel) > * + * {
    margin-top: var(--edara-content-gap);
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-tool-section, .edara-control-center) :where(h1, h2, h3, h4) {
    margin: 0 0 10px;
    line-height: 1.18;
    letter-spacing: -.015em;
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-tool-section, .edara-control-center) :where(p, .edara-muted, .edara-help-text, .edara-admin-help-text, small) {
    line-height: 1.62;
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-tool-section, .edara-control-center) :where(ul, ol) {
    margin-top: 12px;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form, .edara-tool-section, .edara-control-center) :where(li + li) {
    margin-top: 8px;
}

html body.edara-responsive-ready :where(
    .edara-dashboard-header,
    .edara-page-hero,
    .edara-bailleur-hero,
    .edara-client-home,
    .edara-auth-alert-page
) {
    padding: clamp(26px, 4vw, 46px);
}

html body.edara-responsive-ready :where(.edara-dashboard-header, .edara-page-hero, .edara-bailleur-hero) > :first-child {
    margin-top: 0;
}

html body.edara-responsive-ready :where(.edara-dashboard-header, .edara-page-hero, .edara-bailleur-hero) > :last-child {
    margin-bottom: 0;
}

/* Menus, sous-menus et sous-sous-menus. */
html body.edara-responsive-ready :where(.edara-subtabs-card, .edara-patrimoine-tabs-card) {
    display: block;
}

html body.edara-responsive-ready :where(.edara-subtabs, .edara-patrimoine-tabs, .edara-edit-tabs, .edara-client-actions, .edara-patrimoine-shortcuts) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

html body.edara-responsive-ready :where(.edara-subtab, .edara-patrimoine-tab, .edara-edit-tab, .edara-admin-nav-link, .edara-button, .edara-button-light) {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

html body.edara-responsive-ready :where(.edara-admin-nav-toggle-pill, .edara-admin-nav-drawer, .edara-admin-nav-group, .edara-admin-nav-group-links) {
    box-sizing: border-box;
}

html body.edara-responsive-ready :where(.edara-admin-nav-drawer) {
    padding: clamp(18px, 2.4vw, 28px);
}

html body.edara-responsive-ready :where(.edara-admin-nav-group) {
    padding: clamp(14px, 1.8vw, 20px);
}

html body.edara-responsive-ready :where(.edara-admin-nav-group-links) {
    gap: 8px;
}

/* Tableaux et listes : respiration dans les cartes sans casser le scroll responsive. */
html body.edara-responsive-ready :where(
    .edara-responsive-table-wrap,
    .edara-table-responsive,
    .edara-patrimoine-table-wrap,
    .edara-search-results-table-wrap,
    .edara-finance-table-wrap,
    .edara-livre-compte-table-wrap,
    .edara-sorties-scroll
) {
    margin-top: var(--edara-content-gap);
    border-radius: calc(var(--edara-radius) - 6px);
    overflow: auto;
}

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

html body.edara-responsive-ready :where(.edara-table th, .edara-table td, .edara-patrimoine-table th, .edara-patrimoine-table td, .edara-finance-table th, .edara-finance-table td, .edara-responsive-table th, .edara-responsive-table td) {
    vertical-align: middle;
}

/* Formulaires et actions. */
html body.edara-responsive-ready :where(.edara-field, .edara-registration-field, .edara-sorties-field, .edara-smart-filter-field, .edara-bailleur-smart-search-field) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

html body.edara-responsive-ready :where(.edara-form-grid-2, .edara-form-grid-3, .edara-edit-panels-grid, .edara-locataire-info-grid, .edara-bailleur-filter-grid, .edara-baux-annexes-grid) {
    gap: var(--edara-content-gap);
}

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, .edara-nowrap-actions) {
    gap: 8px;
    align-items: center;
}

html body.edara-responsive-ready :where(.edara-bulk-toolbar, .edara-inline-form, .edara-inline-form-spaced) {
    gap: var(--edara-content-gap);
    align-items: end;
}

/* Patrimoine : blocs d’attention, logique de pilotage et sous-pages. */
html body.edara-responsive-ready :where(.edara-patrimoine-two-columns, .edara-patrimoine-summary-grid, .edara-patrimoine-alert-grid, .edara-patrimoine-mini-alerts) {
    gap: var(--edara-section-gap);
}

html body.edara-responsive-ready :where(.edara-patrimoine-alert-box) {
    padding: var(--edara-card-padding-sm);
}

html body.edara-responsive-ready :where(.edara-patrimoine-mini-alerts ul) {
    margin: 10px 0 0;
    padding-left: 1.1rem;
}

html body.edara-responsive-ready :where(.edara-patrimoine-mini-alerts li) {
    padding: 10px 0;
}

html body.edara-responsive-ready :where(.edara-patrimoine-mini-alerts li + li) {
    border-top: 1px solid rgba(185, 135, 34, .14);
}

html body.edara-responsive-ready :where(.edara-patrimoine-bien-title, .edara-bailleur-account-amount, .edara-stat-card strong) {
    line-height: 1.22;
}

/* Évite les contenus directement collés lorsqu’un module ancien injecte un bloc simple. */
html body.edara-responsive-ready :where(.edara-card, .edara-section, .edara-form) > :where(div:not([class]), p:not([class]), h2:not([class]), h3:not([class])) {
    max-width: 100%;
}


/* ==========================================================
   EDARA v3.1.108 — Mission 17G : espaces bailleur/locataire
   Objectif : tableaux desktop lisibles, soldes colorés et statuts plus visibles.
   ========================================================== */

html body .edara-locataire-hero {
    align-items: stretch;
}

html body .edara-locataire-hero-badge {
    min-width: min(280px, 100%);
    padding: clamp(18px, 2.2vw, 26px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(12px);
}

html body .edara-locataire-hero-badge.is-danger {
    background: linear-gradient(135deg, rgba(127,29,29,.96), rgba(220,38,38,.78));
    border-color: rgba(254,202,202,.72);
}

html body .edara-locataire-hero-badge.is-success {
    background: linear-gradient(135deg, rgba(6,95,70,.96), rgba(22,163,74,.72));
    border-color: rgba(187,247,208,.72);
}

html body .edara-locataire-hero-badge.is-credit {
    background: linear-gradient(135deg, rgba(4,120,87,.98), rgba(22,163,74,.86) 56%, rgba(212,175,55,.78));
    border-color: rgba(212,175,55,.72);
    box-shadow: 0 22px 52px rgba(4,120,87,.22);
}

html body .edara-locataire-hero-badge strong {
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -.04em;
}

html body .edara-locataire-hero-badge small {
    font-size: clamp(20px, 2.3vw, 30px);
    font-weight: 950;
    line-height: 1.05;
}

html body .edara-locataire-kpi.is-success {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: var(--edara-success-border);
}

html body .edara-locataire-kpi.is-credit {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%, #fff8df 100%);
    border-color: rgba(22,163,74,.38);
}

html body .edara-locataire-kpi.is-credit::before,
html body .edara-locataire-table-row.is-credit td:first-child::before {
    background: linear-gradient(180deg, #047857, #16a34a 54%, #d4af37);
}

html body .edara-locataire-kpi.is-credit strong {
    color: #047857;
}

html body .edara-locataire-table-wrap {
    border: 1px solid var(--edara-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--edara-shadow-soft);
    overflow: auto;
}

html body .edara-locataire-logement-table,
html body .edara-locataire-finance-table {
    margin: 0;
    min-width: 1060px;
}

html body .edara-locataire-logement-table th,
html body .edara-locataire-finance-table th {
    background: linear-gradient(180deg, #fff8e6 0%, #f7f2e8 100%);
    color: var(--edara-gold-dark);
    font-weight: 950;
    letter-spacing: .025em;
    text-transform: uppercase;
    font-size: 12px;
}

html body .edara-locataire-logement-table td,
html body .edara-locataire-finance-table td {
    vertical-align: middle;
}

html body .edara-locataire-table-row {
    position: relative;
}

html body .edara-locataire-table-row td:first-child {
    position: relative;
    padding-left: 22px;
}

html body .edara-locataire-table-row td:first-child::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: var(--edara-silver-gradient);
}

html body .edara-locataire-table-row.is-danger td:first-child::before {
    background: linear-gradient(180deg, #991b1b, #dc2626);
}

html body .edara-locataire-table-row.is-success td:first-child::before {
    background: linear-gradient(180deg, #065f46, #22c55e);
}

html body .edara-locataire-main-cell strong {
    display: block;
    color: var(--edara-ink);
    font-weight: 950;
    line-height: 1.25;
}

html body .edara-locataire-main-cell small {
    display: block;
    margin-top: 4px;
    color: var(--edara-muted);
    font-weight: 700;
    line-height: 1.35;
}

html body .edara-locataire-balance-badge,
html body .edara-locataire-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--edara-neutral-border);
    background: var(--edara-neutral-soft);
    color: var(--edara-ink);
    font-weight: 950;
    white-space: nowrap;
}

html body .edara-locataire-status-badge {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

html body .edara-locataire-balance-badge {
    flex-direction: column;
    align-items: flex-start;
    min-width: 128px;
    padding: 9px 12px;
    line-height: 1.05;
}

html body .edara-locataire-balance-badge small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .78;
}

html body .edara-locataire-balance-badge strong {
    font-size: 18px;
    letter-spacing: -.02em;
}

html body .edara-locataire-balance-badge.is-danger,
html body .edara-locataire-status-badge.is-danger {
    background: var(--edara-danger-soft);
    border-color: var(--edara-danger-border);
    color: var(--edara-danger-dark);
}

html body .edara-locataire-balance-badge.is-success,
html body .edara-locataire-status-badge.is-success {
    background: var(--edara-success-soft);
    border-color: var(--edara-success-border);
    color: var(--edara-success-dark);
}

html body .edara-locataire-balance-badge.is-credit,
html body .edara-locataire-status-badge.is-credit {
    background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 55%, #fff7d6 100%);
    border-color: rgba(22,163,74,.34);
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(212,175,55,.16);
}

html body .edara-locataire-mini-history-table {
    margin: 0;
    padding: 10px 12px;
    max-width: 360px;
}

html body .edara-locataire-mini-history-table .edara-locataire-mini-line:first-child {
    border-top: 0;
}

html body .edara-locataire-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

html body .edara-bailleur-dashboard .edara-balance-badge,
html body .edara-bailleur-dashboard .edara-money-positive,
html body .edara-bailleur-dashboard .edara-money-negative,
html body .edara-bailleur-dashboard .edara-money-neutral,
html body .edara-client-home .edara-balance-badge,
html body .edara-client-home .edara-money-positive,
html body .edara-client-home .edara-money-negative,
html body .edara-client-home .edara-money-neutral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--edara-neutral-border);
    background: var(--edara-neutral-soft);
    color: var(--edara-ink);
    font-weight: 950;
    white-space: nowrap;
}

html body .edara-bailleur-dashboard .edara-money-negative,
html body .edara-client-home .edara-money-negative {
    background: var(--edara-danger-soft);
    border-color: var(--edara-danger-border);
    color: var(--edara-danger-dark);
}

html body .edara-bailleur-dashboard .edara-money-positive,
html body .edara-client-home .edara-money-positive {
    background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 58%, #fff7d6 100%);
    border-color: rgba(22,163,74,.34);
    color: #047857;
}

html body .edara-bailleur-dashboard .edara-money-neutral,
html body .edara-client-home .edara-money-neutral {
    background: var(--edara-success-soft);
    border-color: var(--edara-success-border);
    color: var(--edara-success-dark);
}

@media (max-width: 1180px) {
    html body .edara-locataire-logement-table,
    html body .edara-locataire-finance-table {
        min-width: 0;
    }

    html body .edara-locataire-table-wrap {
        overflow-x: visible;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    html body .edara-locataire-balance-badge {
        min-width: 0;
        width: fit-content;
    }
}


/* ==========================================================
   EDARA v3.1.109 — Mission 17H : états visuels vifs
   Objectif : rendre les rouges/verts plus forts, lisibles et cohérents.
   ========================================================== */

/* Rouge : alertes, impayés, soldes débiteurs, relances. */
html body :where(
    .edara-alert-error,
    .edara-badge-danger,
    .edara-badge-rejected,
    .edara-patrimoine-badge-danger,
    .edara-status-danger,
    .edara-solde-debiteur,
    .edara-balance-negative,
    .edara-money-negative,
    .edara-balance-badge.is-danger,
    .edara-relance-button
) {
    background: var(--edara-danger-gradient-strong, linear-gradient(135deg, #6f000c 0%, #b91c1c 38%, #ef233c 72%, #ff4d4d 100%));
    border-color: rgba(255, 255, 255, .22);
    color: var(--edara-status-on-vivid, #ffffff);
    -webkit-text-fill-color: var(--edara-status-on-vivid, #ffffff);
    font-weight: 950;
    box-shadow: var(--edara-danger-shadow, 0 14px 34px rgba(239, 35, 60, .28));
    text-shadow: 0 1px 1px rgba(0,0,0,.18);
}

html body :where(
    .edara-alert-error,
    .edara-badge-danger,
    .edara-badge-rejected,
    .edara-patrimoine-badge-danger,
    .edara-status-danger,
    .edara-solde-debiteur,
    .edara-balance-negative,
    .edara-money-negative,
    .edara-balance-badge.is-danger,
    .edara-relance-button
) :where(span, strong, small, em, b, i) {
    color: var(--edara-status-on-vivid, #ffffff);
    -webkit-text-fill-color: var(--edara-status-on-vivid, #ffffff);
    font-weight: 950;
}

/* Vert : comptes à jour, soldes neutres, statuts payés/validés. */
html body :where(
    .edara-alert-success,
    .edara-badge-success,
    .edara-badge-approved,
    .edara-patrimoine-badge-success,
    .edara-status-success,
    .edara-solde-neutre,
    .edara-balance-zero,
    .edara-money-neutral,
    .edara-balance-badge.is-success
) {
    background: var(--edara-success-gradient, linear-gradient(135deg, #006b3c 0%, #00a86b 48%, #22c55e 100%));
    border-color: rgba(255, 255, 255, .24);
    color: var(--edara-status-on-vivid, #ffffff);
    -webkit-text-fill-color: var(--edara-status-on-vivid, #ffffff);
    font-weight: 950;
    box-shadow: var(--edara-success-shadow, 0 14px 34px rgba(22, 199, 132, .26));
    text-shadow: 0 1px 1px rgba(0,0,0,.14);
}

html body :where(
    .edara-alert-success,
    .edara-badge-success,
    .edara-badge-approved,
    .edara-patrimoine-badge-success,
    .edara-status-success,
    .edara-solde-neutre,
    .edara-balance-zero,
    .edara-money-neutral,
    .edara-balance-badge.is-success
) :where(span, strong, small, em, b, i) {
    color: var(--edara-status-on-vivid, #ffffff);
    -webkit-text-fill-color: var(--edara-status-on-vivid, #ffffff);
    font-weight: 950;
}

/* Vert renforcé + doré : trop-perçu / solde créditeur. */
html body :where(
    .edara-solde-crediteur,
    .edara-balance-positive,
    .edara-money-positive,
    .edara-balance-badge.is-credit,
    .edara-status-credit
) {
    background: var(--edara-success-gradient-credit, linear-gradient(135deg, #005c37 0%, #00a86b 44%, #22c55e 72%, #d4af37 100%));
    border-color: rgba(212, 175, 55, .46);
    color: var(--edara-status-on-vivid, #ffffff);
    -webkit-text-fill-color: var(--edara-status-on-vivid, #ffffff);
    font-weight: 950;
    box-shadow: 0 16px 38px rgba(22, 199, 132, .25), inset 0 0 0 1px rgba(255,255,255,.16);
    text-shadow: 0 1px 1px rgba(0,0,0,.16);
}

html body :where(
    .edara-solde-crediteur,
    .edara-balance-positive,
    .edara-money-positive,
    .edara-balance-badge.is-credit,
    .edara-status-credit
) :where(span, strong, small, em, b, i) {
    color: var(--edara-status-on-vivid, #ffffff);
    -webkit-text-fill-color: var(--edara-status-on-vivid, #ffffff);
    font-weight: 950;
}

/* Espace locataire : carte globale, KPIs, badges et tableaux. */
html body .edara-locataire-hero-badge.is-danger {
    background: var(--edara-danger-gradient-strong, linear-gradient(135deg, #6f000c 0%, #b91c1c 38%, #ef233c 72%, #ff4d4d 100%));
    border-color: rgba(255,255,255,.26);
    box-shadow: 0 24px 58px rgba(239,35,60,.34);
}

html body .edara-locataire-hero-badge.is-success {
    background: var(--edara-success-gradient-strong, linear-gradient(135deg, #005c37 0%, #059669 38%, #16c784 72%, #4ade80 100%));
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 24px 58px rgba(22,199,132,.28);
}

html body .edara-locataire-hero-badge.is-credit {
    background: var(--edara-success-gradient-credit, linear-gradient(135deg, #005c37 0%, #00a86b 44%, #22c55e 72%, #d4af37 100%));
    border-color: rgba(212,175,55,.62);
    box-shadow: 0 26px 62px rgba(22,199,132,.31), inset 0 0 0 1px rgba(255,255,255,.16);
}

html body .edara-locataire-hero-badge :where(span, strong, small) {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
    text-shadow: 0 1px 1px rgba(0,0,0,.16);
}

html body .edara-locataire-kpi.is-danger {
    background: var(--edara-danger-gradient-alert, linear-gradient(135deg, #7f0011 0%, #c1121f 48%, #ef233c 100%));
    border-color: rgba(239,35,60,.42);
    box-shadow: var(--edara-danger-shadow, 0 14px 34px rgba(239,35,60,.28));
}

html body .edara-locataire-kpi.is-success {
    background: var(--edara-success-gradient, linear-gradient(135deg, #006b3c 0%, #00a86b 48%, #22c55e 100%));
    border-color: rgba(22,199,132,.42);
    box-shadow: var(--edara-success-shadow, 0 14px 34px rgba(22,199,132,.26));
}

html body .edara-locataire-kpi.is-credit {
    background: var(--edara-success-gradient-credit, linear-gradient(135deg, #005c37 0%, #00a86b 44%, #22c55e 72%, #d4af37 100%));
    border-color: rgba(212,175,55,.48);
    box-shadow: 0 16px 38px rgba(22,199,132,.24);
}

html body .edara-locataire-kpi:is(.is-danger, .is-success, .is-credit) :where(span, small, strong) {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
    text-shadow: 0 1px 1px rgba(0,0,0,.14);
}

html body .edara-locataire-balance-badge.is-danger,
html body .edara-locataire-status-badge.is-danger {
    background: var(--edara-danger-gradient-strong, linear-gradient(135deg, #6f000c 0%, #b91c1c 38%, #ef233c 72%, #ff4d4d 100%));
    border-color: rgba(255,255,255,.24);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: var(--edara-danger-shadow, 0 14px 34px rgba(239,35,60,.28));
}

html body .edara-locataire-balance-badge.is-success,
html body .edara-locataire-status-badge.is-success {
    background: var(--edara-success-gradient, linear-gradient(135deg, #006b3c 0%, #00a86b 48%, #22c55e 100%));
    border-color: rgba(255,255,255,.24);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: var(--edara-success-shadow, 0 14px 34px rgba(22,199,132,.26));
}

html body .edara-locataire-balance-badge.is-credit,
html body .edara-locataire-status-badge.is-credit {
    background: var(--edara-success-gradient-credit, linear-gradient(135deg, #005c37 0%, #00a86b 44%, #22c55e 72%, #d4af37 100%));
    border-color: rgba(212,175,55,.56);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 16px 38px rgba(22,199,132,.25), inset 0 0 0 1px rgba(255,255,255,.16);
}

html body .edara-locataire-balance-badge:is(.is-danger, .is-success, .is-credit) :where(small, strong),
html body .edara-locataire-status-badge:is(.is-danger, .is-success, .is-credit) {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
}

html body .edara-locataire-table-row.is-danger td:first-child::before {
    background: var(--edara-danger-gradient-strong, linear-gradient(180deg, #6f000c, #ef233c));
}

html body .edara-locataire-table-row.is-success td:first-child::before {
    background: var(--edara-success-gradient-strong, linear-gradient(180deg, #005c37, #16c784));
}

html body .edara-locataire-table-row.is-credit td:first-child::before {
    background: var(--edara-success-gradient-credit, linear-gradient(180deg, #005c37, #22c55e, #d4af37));
}

/* Espaces bailleur/client : mêmes codes de couleur pour les montants. */
html body .edara-bailleur-dashboard .edara-money-negative,
html body .edara-client-home .edara-money-negative,
html body .edara-bailleur-dashboard .edara-balance-negative,
html body .edara-client-home .edara-balance-negative {
    background: var(--edara-danger-gradient-strong, linear-gradient(135deg, #6f000c 0%, #b91c1c 38%, #ef233c 72%, #ff4d4d 100%));
    border-color: rgba(255,255,255,.24);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
}

html body .edara-bailleur-dashboard .edara-money-neutral,
html body .edara-client-home .edara-money-neutral,
html body .edara-bailleur-dashboard .edara-balance-zero,
html body .edara-client-home .edara-balance-zero {
    background: var(--edara-success-gradient, linear-gradient(135deg, #006b3c 0%, #00a86b 48%, #22c55e 100%));
    border-color: rgba(255,255,255,.24);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
}

html body .edara-bailleur-dashboard .edara-money-positive,
html body .edara-client-home .edara-money-positive,
html body .edara-bailleur-dashboard .edara-balance-positive,
html body .edara-client-home .edara-balance-positive {
    background: var(--edara-success-gradient-credit, linear-gradient(135deg, #005c37 0%, #00a86b 44%, #22c55e 72%, #d4af37 100%));
    border-color: rgba(212,175,55,.52);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
}


/* ==========================================================
   EDARA v3.1.110 — Mission 17I : contraste réel des états
   Objectif : garantir lisibilité fond/texte sur Situation globale,
   badges Validé/Payé/À jour, impayés, relances et soldes.
   Règle : fonds vifs/foncés => texte blanc gras ; fonds clairs => texte foncé.
   ========================================================== */

/* Situation globale locataire : priorité sur le header clair qui remet les textes en noir. */
html body .edara-locataire-hero .edara-locataire-hero-badge:is(.is-danger, .is-success, .is-credit),
html body .edara-page-hero .edara-locataire-hero-badge:is(.is-danger, .is-success, .is-credit),
html body .edara-dashboard-header .edara-locataire-hero-badge:is(.is-danger, .is-success, .is-credit) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .edara-locataire-hero .edara-locataire-hero-badge:is(.is-danger, .is-success, .is-credit) :is(span, strong, small, em, b, i, div),
html body .edara-page-hero .edara-locataire-hero-badge:is(.is-danger, .is-success, .is-credit) :is(span, strong, small, em, b, i, div),
html body .edara-dashboard-header .edara-locataire-hero-badge:is(.is-danger, .is-success, .is-credit) :is(span, strong, small, em, b, i, div) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.24) !important;
}

/* Rouge lisible : on évite les rouges trop clairs qui rendent le blanc fragile. */
html body :is(
    .edara-alert-error,
    .edara-badge-danger,
    .edara-badge-rejected,
    .edara-patrimoine-badge-danger,
    .edara-status-danger,
    .edara-solde-debiteur,
    .edara-balance-negative,
    .edara-money-negative,
    .edara-balance-badge.is-danger,
    .edara-locataire-hero-badge.is-danger,
    .edara-locataire-kpi.is-danger,
    .edara-locataire-balance-badge.is-danger,
    .edara-locataire-status-badge.is-danger,
    .edara-relance-button
) {
    background: linear-gradient(135deg, #6f000c 0%, #991b1b 38%, #b91c1c 72%, #dc2626 100%) !important;
    border-color: rgba(255,255,255,.26) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.24) !important;
}

html body :is(
    .edara-alert-error,
    .edara-badge-danger,
    .edara-badge-rejected,
    .edara-patrimoine-badge-danger,
    .edara-status-danger,
    .edara-solde-debiteur,
    .edara-balance-negative,
    .edara-money-negative,
    .edara-balance-badge.is-danger,
    .edara-locataire-hero-badge.is-danger,
    .edara-locataire-kpi.is-danger,
    .edara-locataire-balance-badge.is-danger,
    .edara-locataire-status-badge.is-danger,
    .edara-relance-button
) :is(span, strong, small, em, b, i, div) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
}

/* Vert validé/payé/à jour : vert profond et lisible avec texte blanc. */
html body :is(
    .edara-alert-success,
    .edara-badge-success,
    .edara-badge-approved,
    .edara-patrimoine-badge-success,
    .edara-status-success,
    .edara-solde-neutre,
    .edara-balance-zero,
    .edara-money-neutral,
    .edara-balance-badge.is-success,
    .edara-dashboard .status-success,
    .edara-admin-page-shell .status-success,
    .edara-bailleur-page-shell .status-success,
    .edara-locataire-page-shell .status-success,
    .edara-dashboard .status-paid,
    .edara-admin-page-shell .status-paid,
    .edara-bailleur-page-shell .status-paid,
    .edara-locataire-page-shell .status-paid,
    .edara-locataire-hero-badge.is-success,
    .edara-locataire-kpi.is-success,
    .edara-locataire-balance-badge.is-success,
    .edara-locataire-status-badge.is-success
) {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%) !important;
    border-color: rgba(255,255,255,.28) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}

html body :is(
    .edara-alert-success,
    .edara-badge-success,
    .edara-badge-approved,
    .edara-patrimoine-badge-success,
    .edara-status-success,
    .edara-solde-neutre,
    .edara-balance-zero,
    .edara-money-neutral,
    .edara-balance-badge.is-success,
    .edara-dashboard .status-success,
    .edara-admin-page-shell .status-success,
    .edara-bailleur-page-shell .status-success,
    .edara-locataire-page-shell .status-success,
    .edara-dashboard .status-paid,
    .edara-admin-page-shell .status-paid,
    .edara-bailleur-page-shell .status-paid,
    .edara-locataire-page-shell .status-paid,
    .edara-locataire-hero-badge.is-success,
    .edara-locataire-kpi.is-success,
    .edara-locataire-balance-badge.is-success,
    .edara-locataire-status-badge.is-success
) :is(span, strong, small, em, b, i, div) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
}

/* Trop-perçu / créditeur : vert profond avec accent doré, blanc lisible. */
html body :is(
    .edara-solde-crediteur,
    .edara-balance-positive,
    .edara-money-positive,
    .edara-balance-badge.is-credit,
    .edara-status-credit,
    .edara-locataire-hero-badge.is-credit,
    .edara-locataire-kpi.is-credit,
    .edara-locataire-balance-badge.is-credit,
    .edara-locataire-status-badge.is-credit
) {
    background: linear-gradient(135deg, #043927 0%, #065f46 40%, #047857 74%, #9a7119 100%) !important;
    border-color: rgba(212,175,55,.54) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.24) !important;
}

html body :is(
    .edara-solde-crediteur,
    .edara-balance-positive,
    .edara-money-positive,
    .edara-balance-badge.is-credit,
    .edara-status-credit,
    .edara-locataire-hero-badge.is-credit,
    .edara-locataire-kpi.is-credit,
    .edara-locataire-balance-badge.is-credit,
    .edara-locataire-status-badge.is-credit
) :is(span, strong, small, em, b, i, div) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
}

/* Exception volontaire : les fonds verts très clairs encore utilisés ailleurs gardent un texte foncé. */
html body :is(.edara-success-soft, .edara-status-soft-success, .edara-kpi-soft-success) {
    color: #064e3b !important;
    -webkit-text-fill-color: #064e3b !important;
    font-weight: 950 !important;
}

/* ==========================================================
   EDARA v3.1.111 — Mission 17J : tableaux client premium
   Objectif : rendre les historiques locataire/bailleur plus lisibles,
   notamment la colonne "Derniers mouvements".
   ========================================================== */

html body .edara-locataire-finance-table td[data-label="Derniers mouvements"] {
    min-width: 330px;
    vertical-align: top;
}

html body .edara-locataire-mini-history-table {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,242,232,.72));
    border: 1px solid rgba(234,223,202,.92);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

html body .edara-locataire-movement-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(234,223,202,.82);
    box-shadow: 0 8px 22px rgba(17,17,17,.045);
}

html body .edara-locataire-movement-item + .edara-locataire-movement-item {
    margin-top: 8px;
}

html body .edara-locataire-movement-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 950;
    background: var(--edara-neutral-soft);
    color: var(--edara-ink);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

html body .edara-locataire-movement-item.is-debit .edara-locataire-movement-icon {
    background: linear-gradient(135deg, #7f0011, #dc2626);
    color: #ffffff;
}

html body .edara-locataire-movement-item.is-credit .edara-locataire-movement-icon {
    background: linear-gradient(135deg, #064e3b, #047857);
    color: #ffffff;
}

html body .edara-locataire-movement-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

html body .edara-locataire-movement-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

html body .edara-locataire-movement-top strong {
    color: var(--edara-ink);
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 950;
    overflow-wrap: anywhere;
}

html body .edara-locataire-movement-top em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--edara-cream);
    color: var(--edara-muted);
    border: 1px solid var(--edara-border);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

html body .edara-locataire-movement-body small {
    color: var(--edara-muted);
    font-weight: 800;
    line-height: 1.25;
}

html body .edara-locataire-movement-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(17,17,17,.08);
}

html body .edara-locataire-movement-amount.is-debit {
    background: linear-gradient(135deg, #7f0011 0%, #b91c1c 60%, #dc2626 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html body .edara-locataire-movement-amount.is-credit {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html body .edara-locataire-movement-amount.is-neutral {
    background: var(--edara-neutral-soft);
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
}

html body .edara-locataire-finance-table .edara-muted-value {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--edara-cream);
    border: 1px solid var(--edara-border);
    color: var(--edara-muted);
    font-weight: 900;
}

html body .edara-locataire-logement-table td,
html body .edara-locataire-finance-table td,
html body .edara-bailleur-accounts-table td {
    vertical-align: middle;
}

html body .edara-locataire-main-cell,
html body .edara-bailleur-bien-cell,
html body .edara-bailleur-locataire-cell {
    min-width: 220px;
}

html body .edara-locataire-main-cell strong,
html body .edara-bailleur-bien-cell strong,
html body .edara-bailleur-locataire-cell strong {
    display: block;
    color: var(--edara-ink);
    font-size: 14.5px;
    line-height: 1.25;
    font-weight: 950;
}

html body .edara-locataire-main-cell small,
html body .edara-bailleur-bien-cell small,
html body .edara-bailleur-locataire-cell small,
html body .edara-bailleur-loyer-cell small {
    display: block;
    margin-top: 5px;
    color: var(--edara-muted);
    font-weight: 800;
    line-height: 1.35;
}

html body .edara-bailleur-structure-cell span {
    display: inline-flex;
    max-width: 240px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--edara-cream);
    border: 1px solid var(--edara-border);
    color: var(--edara-ink);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
}

html body .edara-bailleur-loyer-cell > strong {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111111 0%, #2a2418 62%, #c9972e 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(17,17,17,.12);
}

html body .edara-bailleur-solde-cell .edara-balance-badge,
html body .edara-locataire-balance-cell .edara-locataire-balance-badge {
    min-width: 128px;
}

html body .edara-bailleur-accounts-table .edara-bailleur-actions,
html body .edara-locataire-finance-table .edara-actions-cell,
html body .edara-locataire-logement-table .edara-actions-cell {
    min-width: 150px;
}

html body .edara-bailleur-account-detail-content .edara-livre-compte-table-wrap {
    margin-top: 16px;
    border-radius: 24px;
    border: 1px solid var(--edara-border);
    box-shadow: var(--edara-shadow-soft);
    background: #ffffff;
}

html body .edara-bailleur-account-detail-content .edara-livre-compte-table td,
html body .edara-bailleur-account-detail-content .edara-livre-compte-table th {
    padding: 14px 16px;
}

html body .edara-bailleur-account-detail-content .edara-livre-compte-table td:nth-child(2) {
    font-weight: 950;
    color: var(--edara-ink);
}

html body .edara-bailleur-account-card {
    overflow: hidden;
}

html body .edara-bailleur-account-card small {
    line-height: 1.35;
}

@media (max-width: 900px) {
    html body .edara-locataire-finance-table td[data-label="Derniers mouvements"] {
        min-width: 0;
    }

    html body .edara-locataire-movement-item {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    html body .edara-locataire-movement-amount {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    html body .edara-locataire-movement-top {
        grid-template-columns: minmax(0, 1fr);
    }

    html body .edara-locataire-movement-top em {
        justify-self: start;
    }
}


/* ==========================================================
   EDARA v3.1.116 — Mission 17O : audit global des interfaces
   Admin / Bailleur / Locataire
   Objectif : uniformiser les tableaux, les actions et les états
   financiers après contrôle transversal des pages et sous-pages.
   ========================================================== */

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) :where(.edara-responsive-table-wrap, .edara-table-responsive, .edara-sorties-scroll) {
    border-radius: 24px;
    border: 1px solid rgba(234, 223, 202, .92);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,250,240,.82) 100%);
    box-shadow: var(--edara-shadow-soft);
    padding: 8px;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 0;
    width: 100%;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table thead th {
    padding: 14px 16px;
    background: linear-gradient(135deg, #111111 0%, #211b11 68%, #3b2b0c 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .045em;
    text-transform: uppercase;
    line-height: 1.2;
    border: 0;
    white-space: nowrap;
    vertical-align: middle;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table thead th:first-child {
    border-radius: 16px 0 0 16px;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table thead th:last-child {
    border-radius: 0 16px 16px 0;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table tbody td {
    padding: 15px 16px;
    background: #ffffff;
    color: var(--edara-ink);
    -webkit-text-fill-color: var(--edara-ink);
    border-top: 1px solid rgba(234,223,202,.78);
    border-bottom: 1px solid rgba(234,223,202,.78);
    line-height: 1.42;
    vertical-align: middle;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table tbody tr:nth-child(even) td {
    background: #fffaf0;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table tbody tr:hover td {
    background: #fff1cf;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table tbody td:first-child {
    border-left: 1px solid rgba(234,223,202,.78);
    border-radius: 18px 0 0 18px;
}

html body :where(
    .edara-admin-page-shell,
    .edara-bailleur-page-shell,
    .edara-locataire-page-shell,
    .edara-client-page-shell,
    .edara-admin-space,
    .edara-bailleur-space,
    .edara-locataire-space,
    .edara-client-home,
    .edara-dashboard,
    .edara-responsive-scope
) table.edara-table tbody td:last-child {
    border-right: 1px solid rgba(234,223,202,.78);
    border-radius: 0 18px 18px 0;
}

html body :where(.edara-actions-cell, .edara-bailleur-actions, .edara-patrimoine-actions, .edara-nowrap-actions, .edara-sorties-actions, .edara-locataire-table-actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

html body :where(.edara-actions-cell, .edara-bailleur-actions, .edara-patrimoine-actions, .edara-nowrap-actions, .edara-sorties-actions, .edara-locataire-table-actions) :where(.edara-button, a.edara-button, button.edara-button, input[type="submit"].edara-button) {
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 14px;
    font-weight: 950;
    line-height: 1.15;
    white-space: nowrap;
}

html body :where(.edara-money-cell, .edara-finance-col-solde, .edara-bailleur-solde-cell, .edara-locataire-balance-cell, .edara-sorties-total, .edara-balance-cell) {
    text-align: right;
    white-space: nowrap;
}

/* Contrastes forts : négatif/positif/crédit, avec héritage interne contrôlé. */
html body :where(
    .is-negative,
    .edara-money-negative,
    .edara-balance-negative,
    .edara-balance-badge.is-danger,
    .edara-status-danger,
    .edara-badge-danger,
    .edara-badge-rejected,
    .edara-patrimoine-badge-danger,
    .edara-solde-debiteur,
    .edara-sorties-amount.is-negative,
    .edara-locataire-table-row.is-danger .edara-locataire-balance-badge,
    .edara-bailleur-account-card-danger .edara-bailleur-account-amount,
    .edara-pointage-status-badge.edara-badge-danger
) {
    background: var(--edara-negative-bg, linear-gradient(135deg, #6f000c 0%, #991b1b 36%, #b91c1c 70%, #dc2626 100%));
    border-color: rgba(255,255,255,.26);
    color: var(--edara-on-dark, #ffffff);
    -webkit-text-fill-color: var(--edara-on-dark, #ffffff);
    font-weight: 950;
    text-shadow: 0 1px 2px rgba(0,0,0,.24);
}

html body :where(
    .is-positive,
    .edara-money-neutral,
    .edara-balance-zero,
    .edara-balance-badge.is-success,
    .edara-status-success,
    .edara-badge-success,
    .edara-badge-approved,
    .edara-patrimoine-badge-success,
    .edara-solde-neutre,
    .edara-sorties-amount.is-positive,
    .edara-locataire-table-row.is-success .edara-locataire-balance-badge,
    .edara-bailleur-account-card-success .edara-bailleur-account-amount,
    .edara-pointage-status-badge.edara-badge-success
) {
    background: var(--edara-positive-bg, linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%));
    border-color: rgba(255,255,255,.26);
    color: var(--edara-on-dark, #ffffff);
    -webkit-text-fill-color: var(--edara-on-dark, #ffffff);
    font-weight: 950;
    text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

html body :where(
    .edara-money-positive,
    .edara-balance-positive,
    .edara-balance-badge.is-credit,
    .edara-status-credit,
    .edara-solde-crediteur,
    .edara-locataire-table-row.is-credit .edara-locataire-balance-badge
) {
    background: var(--edara-credit-bg, linear-gradient(135deg, #043927 0%, #065f46 40%, #047857 74%, #9a7119 100%));
    border-color: rgba(212,175,55,.54);
    color: var(--edara-on-dark, #ffffff);
    -webkit-text-fill-color: var(--edara-on-dark, #ffffff);
    font-weight: 950;
    text-shadow: 0 1px 2px rgba(0,0,0,.24);
}

html body :where(
    .is-negative,
    .is-positive,
    .edara-money-negative,
    .edara-money-neutral,
    .edara-money-positive,
    .edara-balance-negative,
    .edara-balance-zero,
    .edara-balance-positive,
    .edara-balance-badge.is-danger,
    .edara-balance-badge.is-success,
    .edara-balance-badge.is-credit,
    .edara-status-danger,
    .edara-status-success,
    .edara-status-credit,
    .edara-badge-danger,
    .edara-badge-success,
    .edara-badge-approved,
    .edara-badge-rejected,
    .edara-sorties-amount.is-negative,
    .edara-sorties-amount.is-positive
) :where(span, strong, small, em, b, i, div) {
    color: var(--edara-on-dark, #ffffff);
    -webkit-text-fill-color: var(--edara-on-dark, #ffffff);
    font-weight: 950;
}

/* États clairs volontairement neutres : texte foncé pour éviter blanc sur fond clair. */
html body :where(
    .is-zero,
    .edara-money-neutral-light,
    .edara-balance-badge.is-neutral,
    .edara-status-neutral,
    .edara-badge-neutral,
    .edara-badge-pending,
    .edara-patrimoine-badge-warning,
    .edara-patrimoine-badge-neutral,
    .edara-muted-value,
    .edara-sorties-amount.is-zero
) {
    background: linear-gradient(180deg, #ffffff 0%, #f7f2e8 100%);
    border-color: var(--edara-border);
    color: var(--edara-on-light, #171717);
    -webkit-text-fill-color: var(--edara-on-light, #171717);
    font-weight: 900;
    text-shadow: none;
}

@media (max-width: 1180px) {
    html body :where(.edara-responsive-table-wrap, .edara-table-responsive, .edara-sorties-scroll) {
        padding: 6px;
        border-radius: 20px;
    }

    html body table.edara-responsive-table tbody td {
        text-align: left;
    }

    html body table.edara-responsive-table tbody td[data-label]::before {
        color: var(--edara-muted);
        -webkit-text-fill-color: var(--edara-muted);
        font-weight: 950;
    }

    html body :where(.edara-actions-cell, .edara-bailleur-actions, .edara-patrimoine-actions, .edara-nowrap-actions, .edara-sorties-actions, .edara-locataire-table-actions) {
        justify-content: flex-start;
    }

    html body :where(.edara-money-cell, .edara-finance-col-solde, .edara-bailleur-solde-cell, .edara-locataire-balance-cell, .edara-sorties-total, .edara-balance-cell) {
        text-align: left;
    }
}


/* ==========================================================
   EDARA v3.1.118 — Mission 17Q : colonnes client desktop stables
   Objectif : supprimer l'effet saccadé dans la colonne
   "Derniers mouvements" côté locataire et "Loyer mensuel"
   côté bailleur, sans modifier le rendu mobile validé.
   ========================================================== */

@media (min-width: 901px) {
    html body .edara-locataire-table-wrap,
    html body .edara-bailleur-space .edara-table-responsive {
        overflow-x: auto;
    }

    html body .edara-locataire-finance-table {
        min-width: 1320px;
        table-layout: auto;
    }

    html body .edara-locataire-finance-table th:nth-child(7),
    html body .edara-locataire-finance-table td[data-label="Derniers mouvements"] {
        width: 440px;
        min-width: 440px;
        max-width: 520px;
    }

    html body .edara-locataire-mini-history-table {
        display: grid;
        gap: 8px;
        min-width: 400px;
        padding: 10px;
    }

    html body .edara-locataire-movement-item {
        grid-template-columns: 34px minmax(210px, 1fr) minmax(118px, auto);
        gap: 12px;
        padding: 10px 12px;
    }

    html body .edara-locataire-movement-top {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    html body .edara-locataire-movement-top strong {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    html body .edara-locataire-movement-body small {
        display: block;
        overflow-wrap: normal;
        word-break: normal;
    }

    html body .edara-locataire-movement-amount {
        min-width: 112px;
        justify-self: end;
        text-align: center;
    }

    html body .edara-bailleur-accounts-table {
        min-width: 1080px;
        table-layout: auto;
    }

    html body .edara-bailleur-accounts-table th:nth-child(4),
    html body .edara-bailleur-accounts-table td[data-label="Loyer mensuel"] {
        width: 210px;
        min-width: 210px;
    }

    html body .edara-bailleur-loyer-cell {
        white-space: normal;
    }

    html body .edara-bailleur-loyer-box {
        display: grid;
        gap: 8px;
        align-items: start;
        max-width: 100%;
    }

    html body .edara-bailleur-loyer-total {
        display: inline-flex;
        width: max-content;
        min-width: 132px;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 999px;
        background: linear-gradient(135deg, #111111 0%, #2a2418 62%, #c9972e 100%);
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        font-weight: 950;
        white-space: nowrap;
        box-shadow: 0 10px 22px rgba(17,17,17,.12);
    }

    html body .edara-bailleur-loyer-detail {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        color: var(--edara-muted);
        font-size: 11.5px;
        font-weight: 900;
        line-height: 1.2;
    }

    html body .edara-bailleur-loyer-detail span {
        display: inline-flex;
        width: max-content;
        max-width: 100%;
        padding: 5px 8px;
        border-radius: 999px;
        background: var(--edara-cream);
        border: 1px solid var(--edara-border);
        color: var(--edara-muted);
        -webkit-text-fill-color: var(--edara-muted);
        white-space: nowrap;
    }

    html body .edara-bailleur-loyer-cell > strong,
    html body .edara-bailleur-loyer-cell > small {
        display: none;
    }
}

@media (max-width: 900px) {
    html body .edara-locataire-finance-table,
    html body .edara-bailleur-accounts-table {
        min-width: 0;
    }

    html body .edara-locataire-mini-history-table {
        min-width: 0;
    }

    html body .edara-bailleur-loyer-box {
        display: grid;
        gap: 8px;
    }

    html body .edara-bailleur-loyer-total {
        display: inline-flex;
        width: max-content;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 999px;
        background: linear-gradient(135deg, #111111 0%, #2a2418 62%, #c9972e 100%);
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        font-weight: 950;
        white-space: nowrap;
    }

    html body .edara-bailleur-loyer-detail {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    html body .edara-bailleur-loyer-detail span {
        display: inline-flex;
        padding: 5px 8px;
        border-radius: 999px;
        background: var(--edara-cream);
        border: 1px solid var(--edara-border);
        color: var(--edara-muted);
        -webkit-text-fill-color: var(--edara-muted);
        font-size: 11.5px;
        font-weight: 900;
        white-space: nowrap;
    }
}

/* ==========================================================
   EDARA v3.1.119 — Mission 17R : contraste du loyer mensuel bailleur
   Objectif : garantir une écriture blanche, grasse et lisible sur le
   bouton total mensuel or/noir dans l'espace bailleur.
   ========================================================== */
html body .edara-bailleur-space .edara-bailleur-loyer-total,
html body .edara-bailleur-page-shell .edara-bailleur-loyer-total,
html body .edara-bailleur-accounts-table td[data-label="Loyer mensuel"] .edara-bailleur-loyer-total {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.34) !important;
}

html body .edara-bailleur-space .edara-bailleur-loyer-total :is(span, strong, small, em, b, i, div),
html body .edara-bailleur-page-shell .edara-bailleur-loyer-total :is(span, strong, small, em, b, i, div),
html body .edara-bailleur-accounts-table td[data-label="Loyer mensuel"] .edara-bailleur-loyer-total :is(span, strong, small, em, b, i, div) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 950 !important;
}

/* Version 3.1.120 - zones de suppression propre dans Création & affiliation EDARA */
html body .edara-entities-dashboard .edara-delete-zone,
html body .edara-dashboard .edara-delete-zone {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(179, 45, 46, .26);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(254, 242, 242, .95), rgba(255, 247, 237, .82));
    box-shadow: 0 12px 30px rgba(127, 29, 29, .08);
}

html body .edara-entities-dashboard .edara-delete-zone h4,
html body .edara-dashboard .edara-delete-zone h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #7f1d1d !important;
    -webkit-text-fill-color: #7f1d1d !important;
}

html body .edara-entities-dashboard .edara-delete-warning,
html body .edara-dashboard .edara-delete-warning {
    margin: 0 0 12px;
    color: #7f1d1d !important;
    -webkit-text-fill-color: #7f1d1d !important;
    font-weight: 600;
    line-height: 1.45;
}

html body .edara-entities-dashboard .edara-delete-confirm-line,
html body .edara-dashboard .edara-delete-confirm-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 10px 0 14px;
    color: #7f1d1d !important;
    -webkit-text-fill-color: #7f1d1d !important;
    font-weight: 700;
    line-height: 1.4;
}

html body .edara-entities-dashboard .edara-delete-confirm-line input,
html body .edara-dashboard .edara-delete-confirm-line input {
    flex: 0 0 auto;
    margin-top: 3px;
}

/* Version 3.1.121 - correction esthétique confirmation suppression + réglage relances */
html body .edara-entities-dashboard .edara-delete-confirm-line,
html body .edara-dashboard .edara-delete-confirm-line {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 12px 0 14px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(185, 28, 28, .22) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.78) !important;
    color: #7f1d1d !important;
    -webkit-text-fill-color: #7f1d1d !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-align: left !important;
    white-space: normal !important;
}

html body .edara-entities-dashboard .edara-delete-confirm-line input[type="checkbox"],
html body .edara-dashboard .edara-delete-confirm-line input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 1px 0 0 !important;
    accent-color: #991b1b !important;
}

html body .edara-entities-dashboard .edara-delete-confirm-line span,
html body .edara-dashboard .edara-delete-confirm-line span {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #7f1d1d !important;
    -webkit-text-fill-color: #7f1d1d !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
    text-shadow: none !important;
    background: transparent !important;
}

html body .edara-relance-settings-card {
    display: flex !important;
    justify-content: space-between !important;
    gap: 18px !important;
    align-items: center !important;
    margin: 16px 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(183, 137, 50, .26) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,235,.92)) !important;
    box-shadow: 0 12px 28px rgba(17,24,39,.08) !important;
}

html body .edara-relance-settings-copy h3 {
    margin: 0 0 6px !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

html body .edara-relance-settings-copy p {
    margin: 0 !important;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    line-height: 1.45 !important;
}

html body .edara-relance-settings-form {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 0 !important;
}

html body .edara-relance-toggle-line {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    cursor: pointer !important;
}

html body .edara-relance-toggle-line input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    margin: 0 !important;
    accent-color: #d6b46d !important;
}

html body .edara-relance-toggle-line span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: normal !important;
}

@media (max-width: 760px) {
    html body .edara-relance-settings-card {
        display: block !important;
    }
    html body .edara-relance-settings-form {
        justify-content: flex-start !important;
        margin-top: 14px !important;
    }
    html body .edara-relance-toggle-line {
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* EDARA v3.1.129 — guide clair de création / affiliation */
.edara-affiliation-guide-card {
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,246,236,0.94));
}
.edara-affiliation-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
    align-items: center;
}
.edara-affiliation-flow span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    position: relative;
}
.edara-affiliation-flow span:not(:last-child)::after {
    content: '→';
    color: #c99a2e;
    font-weight: 900;
    margin-left: 12px;
}
@media (max-width: 720px) {
    .edara-affiliation-flow {
        display: grid;
        grid-template-columns: 1fr;
    }
    .edara-affiliation-flow span {
        justify-content: center;
        border-radius: 18px;
        text-align: center;
    }
    .edara-affiliation-flow span:not(:last-child)::after {
        content: '↓';
        margin-left: 10px;
    }
}

/* EDARA v3.1.130 — lisibilité guide affiliation + création/ conversion gestionnaire */
html body .edara-affiliation-guide-card .edara-affiliation-flow > span {
    background: linear-gradient(135deg, #0f172a 0%, #172033 64%, #2a210b 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    text-shadow: none !important;
}
html body .edara-affiliation-guide-card .edara-affiliation-flow > span * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body .edara-affiliation-guide-card .edara-affiliation-flow > span::after {
    color: #d4af37 !important;
    -webkit-text-fill-color: #d4af37 !important;
}
html body .edara-gestionnaire-create-card .edara-manager-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}
html body .edara-gestionnaire-create-card .edara-manager-mode-card {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(185, 135, 34, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,246,236,0.86));
    box-shadow: 0 14px 34px rgba(40, 30, 12, 0.06);
}
html body .edara-gestionnaire-create-card .edara-manager-convert-card {
    border-color: rgba(212, 175, 55, 0.42);
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}
html body .edara-gestionnaire-create-card .edara-manager-mode-card h3 {
    margin-top: 0;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}
html body .edara-gestionnaire-create-card .edara-manager-mode-card .edara-button,
html body .edara-gestionnaire-create-card .edara-manager-mode-card button[type="submit"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 900 !important;
}
html body .edara-gestionnaire-create-card .edara-manager-mode-card .edara-button:hover,
html body .edara-gestionnaire-create-card .edara-manager-mode-card button[type="submit"]:hover {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}
@media (max-width: 720px) {
    html body .edara-gestionnaire-create-card .edara-manager-mode-grid {
        grid-template-columns: 1fr;
    }
}
