/* EDARA point 75 : CSS métier nettoyé ; les règles responsive globales sont centralisées dans edara-responsive-optimizations.css. */
/*
 * EDARA v3.1.52 - Styles finance/interface externalisés.
 * Source initiale : includes/finance/bailleur-notifications-styles.php.
 */

.edara-notification-row {
    background: linear-gradient(90deg, #fff5f5 0%, #ffffff 100%);
    border-left: 5px solid #b32d2e;
}

.edara-notification-row td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.edara-notification-title {
    color: #9f1d1f;
    font-weight: 800;
}

.edara-notification-badge {
    display: inline-block;
    background: #ffe3e3;
    color: #9f1d1f;
    border: 1px solid #ffc9c9;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.edara-notification-button {
    background: linear-gradient(135deg, #b32d2e, #8f1f20);
    color: #fff;
    box-shadow: 0 8px 18px rgba(179,45,46,0.22);
}

.edara-notification-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(179,45,46,0.28);
}

/* --- Bloc externalisé --- */

/* Point 84 : styles du bouton retour en haut déplacés dans edara-responsive-optimizations.css. */

/* --- Bloc externalisé --- */

/* EDARA point 75 : ancien bloc responsive global supprimé. La largeur des pages, cartes, champs et tableaux est centralisée dans edara-responsive-optimizations.css. */

/* --- Bloc externalisé --- */

/* EDARA point 75 : anciens doublons de sous-menus/onglets supprimés. Les états sont désormais gérés par edara-design-system.css et edara-responsive-optimizations.css. */

.edara-stat-link {
    text-decoration: none;
    color: inherit;
}
.edara-stat-link span {
    display:inline-block;
    margin-top:10px;
    color: #9b7628;
    font-weight:800;
    font-size:13px;
}
.edara-stat-link:hover {
    transform:translateY(-4px);
    border-color: rgba(201,161,74,.55);
}

/* --- Bloc externalisé --- */

.edara-button.edara-relance-button,
button.edara-button.edara-relance-button,
.edara-table .edara-button.edara-relance-button,
.edara-actions-stack .edara-button.edara-relance-button {
    background: linear-gradient(135deg, #b32d2e, #7f1d1d);
    color: #ffffff;
    border: 1px solid #b32d2e;
    box-shadow: 0 10px 22px rgba(179,45,46,0.22);
}

.edara-button.edara-relance-button:hover,
button.edara-button.edara-relance-button:hover,
.edara-table .edara-button.edara-relance-button:hover,
.edara-actions-stack .edara-button.edara-relance-button:hover {
    background: linear-gradient(135deg, #d9363e, #9f2222);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Bloc externalisé --- */

#edara_quittance_bien_search {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    border: 1px solid #dfcfad;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fffaf1);
    color: #111;
    font-weight: 600;
    box-sizing: border-box;
}

#edara_quittance_bien_search:focus {
    outline: none;
    border-color: var(--edara-gold, #c9972e);
    box-shadow: 0 0 0 4px rgba(201,161,74,0.16);
}

:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-sci-cell,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="SCI"],
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-col="sci"] {
    min-width: 140px;
    max-width: 230px;
    white-space: normal;
    line-height: 1.35;
}

:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-sci-cell strong,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="SCI"] strong,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-col="sci"] strong {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f7f2e8;
    border: 1px solid #e5d6b8;
    color: #4a3a16;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
}

/* EDARA v3.1.100 — montants stabilisés sans largeur rigide.
Les anciennes min-width forçaient des chevauchements sur certains tableaux. */
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Solde"],
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-col="solde"],
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Loyer"],
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Montant"],
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-col="montant"] {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-money,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-balance-positive,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-balance-negative,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-balance-zero,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-status-danger,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-status-success,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-balance-cell .edara-status-neutral,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Solde"] .edara-money,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Loyer"] .edara-money,
:where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Montant"] .edara-money {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1181px) {
    :where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Solde"],
    :where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Loyer"],
    :where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-label="Montant"],
    :where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-col="solde"],
    :where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table td[data-col="montant"],
    :where(.edara-financial-dashboard, .edara-livre-compte-dashboard, .edara-livre-compte-premium-dashboard, .edara-quittances-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home, .edara-locataire-compte-page) .edara-table .edara-money {
        white-space: nowrap;
    }
}




/* --- Bloc externalisé --- */

/* Tableaux du Dashboard financier : colonnes Bien / Locataire / Email / SCI / Solde */
:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-bien {
    min-width: 210px;
    max-width: 300px;
    white-space: normal;
    line-height: 1.35;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-bien strong {
    display: inline-block;
    color: #111;
    font-weight: 800;
    overflow-wrap: anywhere;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-locataire {
    min-width: 170px;
    max-width: 240px;
    white-space: normal;
    font-weight: 700;
    color: #242424;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-email {
    min-width: 210px;
    max-width: 300px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #5c4b24;
    font-size: 12.5px;
    line-height: 1.35;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-sci {
    min-width: 150px;
    max-width: 230px;
    white-space: normal;
    line-height: 1.35;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-sci-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f7f2e8;
    border: 1px solid #e3d4b8;
    color: #4a3a16;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-solde {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-solde .edara-balance-badge,
:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-solde span,
:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) td .edara-balance-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1181px) {
    :where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-solde,
    :where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-finance-col-solde .edara-balance-badge,
    :where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) td .edara-balance-badge {
        white-space: nowrap;
    }
}

/* Actions du dashboard financier : boutons mieux cadrés */
:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-actions-cell {
    min-width: 145px;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: stretch;
}

:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-actions-stack .edara-button,
:where(.edara-financial-dashboard, .edara-admin-control-dashboard, .edara-bailleur-dashboard, .edara-client-home) .edara-actions-stack button.edara-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Sur tablette : garde un tableau lisible sans colonnes compressées */



/* Sur mobile : évite les mots coupés et garde les colonnes lisibles dans le scroll */





/* EDARA point 81 : finance-interface resserré.
Les anciens sélecteurs .edara-dashboard génériques sont limités aux surfaces
financières / compte / tableau de bord afin de ne plus modifier les actions
des pages Patrimoine, Création & affiliation, Baux ou États des lieux. */

/* --- Bloc externalisé --- */

/* ==========================================================
EDARA point 63 - Nettoyage responsive
Ancien bloc supprimé : il transformait les grands tableaux en
cartes sur ordinateur (min-width:1101px), ce qui entrait en conflit
avec le rendu desktop classique attendu pour Pointage et Patrimoine.
Le format carte est désormais réservé au mobile dans
edara-responsive-optimizations.css.
========================================================== */

/* --- Bloc externalisé --- */

.edara-documents-bulk-table th:first-child,
.edara-documents-bulk-table td:first-child {
    text-align: center;
    vertical-align: middle;
}

.edara-document-checkbox,
#edara_select_all_documents {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    accent-color: #111111;
    cursor: pointer;
}

#edara_bulk_documents_form {
    background: #fbf7ee;
    border: 1px solid #eadfcb;
    border-radius: 18px;
    padding: 16px;
}

#edara_bulk_documents_form select {
    min-height: 44px;
}





/* EDARA v3.1.109 — Mission 17H : boutons relance et montants finance en couleurs vives. */
.edara-button.edara-relance-button,
button.edara-button.edara-relance-button,
.edara-table .edara-button.edara-relance-button,
.edara-actions-stack .edara-button.edara-relance-button {
    background: var(--edara-danger-gradient-strong, linear-gradient(135deg, #6f000c 0%, #b91c1c 38%, #ef233c 72%, #ff4d4d 100%));
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: rgba(255,255,255,.24);
    font-weight: 950;
    box-shadow: var(--edara-danger-shadow, 0 14px 34px rgba(239,35,60,.28));
}

.edara-button.edara-relance-button *,
button.edara-button.edara-relance-button *,
.edara-table .edara-button.edara-relance-button *,
.edara-actions-stack .edara-button.edara-relance-button * {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 950;
}
