/* File uploader */
.dz-file-preview {
    width: 100% !important;;
}

.dz-file-preview .dz-filename {
    padding: 20px !important;
}

.dz-file-preview .dz-filename span, .dz-file-preview .dz-size span {
    padding: 10px !important;;
}

/* Navigation bar */
.navbar-syndic-name, .navbar-syndic-address, [data-navbar-role="title"] {
    font-family: "Tajawal", "Roboto Slab", Helvetica, "sans-serif";;
}

/* Toasts */
.toast-container {
    z-index: 999 !important;
}

/* Quill editor */
[data-kt-inbox-message="message"] p {
    margin: 0;
    padding: 0;
}

/* Stepper */
.stepper.stepper-pills .stepper-item.current .stepper-label {
    border: 1px dashed var(--bs-primary);
    background-color: var(--bs-primary-light) !important;
    padding: 0.6rem;
    border-radius: 10px;
}
.stepper.stepper-pills .stepper-item.current .stepper-label .stepper-title {
    /*opacity: var(--bs-stepper-label-title-opacity-current);*/
    color: var(--bs-primary);
}
.stepper.stepper-pills .stepper-item.current .stepper-label .stepper-desc {
    color: var(--bs-rating-color-active);
    /*color: var(--bs-text-gray-600);*/
}

/* Form Validation */
.ifv-plugins-icon {
    margin-right: 20px;
}

.invalid-feedback {
    color: var(--bs-danger);
}

[data-kt-sticky-landing-header=on] .landing-header {
    border-bottom-style: dotted !important;
    border-color: var(--bs-gray-300) !important;
}

/* Force numeric values to render LTR inside RTL pages (amounts, balances, refs).  */
html[dir="rtl"] .sp-ltr-number__unused {
    direction: ltr;
    unicode-bidi: isolate-override;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Annexe 2: Plan comptable */
.annexe2-plan-comptable td, .annexe2-plan-comptable th {
    padding: 0.5rem !important;
}

.annexe2-plan-comptable .annexe2-row-main-title {
    background-color: #ee1415;
    color: #ffffff;
    font-weight: 700;
    font-style: normal;
}

.annexe2-plan-comptable .annexe2-row-subtitle {
    background-color: #5c8c3d;
    color: #ffffff;
    font-weight: 400;
    font-style: normal;
}

.annexe2-plan-comptable .annexe2-row-classe td {
    background-color: #cc3399;
    color: #ffffff;
    font-weight: 700;
    font-style: normal;
}

.annexe2-plan-comptable .annexe2-row-poste td {
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    font-style: normal;
}

.annexe2-plan-comptable .annexe2-row-compte td {
    background-color: #ffffff;
    color: #212020;
    font-weight: 400;
    font-style: normal;
}

.annexe2-plan-comptable .sp-annexe2-ar {
    font-family: "Tajawal", "Roboto Slab", Helvetica, sans-serif;
    direction: rtl;
    text-align: start;
}

.sp-annexe-ar {
    font-family: "Tajawal", "Roboto Slab", Helvetica, sans-serif;
    direction: rtl;
    text-align: start;
}

.annexe4-sheet .annexe4-row-group td,
.annexe4-sheet .annexe4-row-total td {
    font-weight: 700;
}

.annexe5-sheet .annexe5-row-group td,
.annexe5-sheet .annexe5-row-total td {
    font-weight: 700;
}

.annexe6-sheet .annexe6-row-group td,
.annexe6-sheet .annexe6-row-total td {
    font-weight: 700;
}

.annexe7-sheet .annexe7-row-group td,
.annexe7-sheet .annexe7-row-total td {
    font-weight: 700;
}

.annexe8-sheet .annexe8-row-group td,
.annexe8-sheet .annexe8-row-total td {
    font-weight: 700;
}

.annexe9-sheet .annexe9-row-total td,
.annexe10-sheet .annexe10-row-total td {
    font-weight: 700;
}

.annexe11-sheet .annexe11-row-group td,
.annexe11-sheet .annexe11-row-total td {
    font-weight: 700;
}

.annexe12-sheet .annexe12-row-group td,
.annexe12-sheet .annexe12-row-total td {
    font-weight: 700;
}

.annexe13-1-sheet .annexe13-1-row-group td,
.annexe13-2-sheet .annexe13-2-row-note td {
    font-weight: 700;
}

#annexe_2_plan_comptable_modal .modal-body,
#annexe_2_plan_comptable_modal .table-responsive,
#annexe_3_bilan_modal .modal-body,
#annexe_3_bilan_modal .table-responsive,
#annexe_4_compte_gestion_modal .modal-body,
#annexe_4_compte_gestion_modal .table-responsive,
#annexe_5_budgets_modal .modal-body,
#annexe_5_budgets_modal .table-responsive,
#annexe_6_travaux_hors_budget_modal .modal-body,
#annexe_6_travaux_hors_budget_modal .table-responsive,
#annexe_7_compte_reserve_modal .modal-body,
#annexe_7_compte_reserve_modal .table-responsive,
#annexe_8_suivi_emprunts_modal .modal-body,
#annexe_8_suivi_emprunts_modal .table-responsive,
#annexe_9_suivi_materiel_modal .modal-body,
#annexe_9_suivi_materiel_modal .table-responsive,
#annexe_10_suivi_cotisations_modal .modal-body,
#annexe_10_suivi_cotisations_modal .table-responsive,
#annexe_11_etats_synthese_simplifie_modal .modal-body,
#annexe_11_etats_synthese_simplifie_modal .table-responsive,
#annexe_12_compte_resultat_budgets_simplifie_modal .modal-body,
#annexe_12_compte_resultat_budgets_simplifie_modal .table-responsive,
#annexe_13_1_situation_financiere_super_simplifie_modal .modal-body,
#annexe_13_1_situation_financiere_super_simplifie_modal .table-responsive,
#annexe_13_2_compte_produits_charges_budget_super_simplifie_modal .modal-body,
#annexe_13_2_compte_produits_charges_budget_super_simplifie_modal .table-responsive {
    padding-bottom: 3rem !important;
}

/* Symfony WDT compatibility (7.4.6): JS toggles state on child #sfwdt*, while CSS expects .sf-toolbar state on parent. */
.sf-toolbar > [id^="sfwdt"].sf-toolbar-closed .sf-toolbar-clearer {
    display: none;
}

.sf-toolbar > [id^="sfwdt"].sf-toolbar-closed .sf-toolbarreset .sf-toolbar-block {
    display: none;
}

.sf-toolbar > [id^="sfwdt"].sf-toolbar-closed .sf-toolbarreset .sf-toolbar-toggle-button {
    top: -37px;
    border-top: 2px solid var(--sf-toolbar-gray-800);
}

.sf-toolbar > [id^="sfwdt"].sf-toolbar-opened .sf-toolbar-toggle-button .sf-toolbar-icon-closed {
    display: none;
}

.sf-toolbar > [id^="sfwdt"].sf-toolbar-opened .sf-toolbar-toggle-button .sf-toolbar-icon-opened {
    display: block;
}

.sf-toolbar > [id^="sfwdt"].sf-toolbar-closed .sf-toolbar-toggle-button .sf-toolbar-icon-closed {
    display: block;
}

.sf-toolbar > [id^="sfwdt"].sf-toolbar-closed .sf-toolbar-toggle-button .sf-toolbar-icon-opened {
    display: none;
}

.sp-filter-scroll {
    max-height: 220px;
    overflow-y: auto;
}

