/* ==================================== */
/* =============== COLORS ============= */
/* ==================================== */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    --white-color: #FFFFFF;
    --light-gray-color: #EEEEEE;
    --dark-gray-color: #2D2D2D;
    --black-color: #000000;


    --main-color: #D1D612;
    --main-color-hover: #9b9f15;

    --second-color: #674E3F;
    --second-color-hover: #4f3f35;

    /* 
      --main-color-2: #CCFF26;
      --second-color-2: #472829;
    */

    --alt-color: #EEEEEE;
    --alt-color-hover: #ECECEC;

    --magasin-color: #ED1748;
    --fournisseur-color: #FBB03F;
    --adherent-color: #4FBDEC;
    --marque-color: #05B085;
    --produit-color: #AEBC21;
    --rapport-color: #BE854B;
    --document-color: #D291BF;
    --module-color: #EF4E91;

    /* pour les icones ou messages */
    --green-color: #1a9c0e;
    --red-color: #FF0000;
}

.main-color {
    background-color: var(--main-color);
}

.second-color {
    background-color: var(--second-color);
}

.magasin-color {
    background-color: var(--magasin-color);
    border-color: var(--magasin-color) !important;
}

.fournisseur-color {
    background-color: var(--fournisseur-color);
}

.adherent-color {
    background-color: var(--adherent-color);
}

.marque-color {
    background-color: var(--marque-color);
}

.produit-color {
    background-color: var(--produit-color);
}

.rapport-color {
    background-color: var(--rapport-color);
}

.magasin-color {
    background-color: var(--magasin-color);
}

.document-color {
    background-color: var(--document-color);
}

.module-color {
    background-color: var(--module-color);
}

.white-color {
    color: black;
    background-color: var(--white-color);
}
.green {
    color:var(--green-color);
}

.red-color {
    background-color: var(--red-color);
    border-color: var(--red-color) !important;
}

.red {
    color:var(--red-color);
}

.white {
    color:var(--white-color) !important;
}

.black {
    color:var(--black-color) !important;
}

/* ============================================== */
/* =================== GENERAL ================== */
/* ============================================== */

* {
    /*font-family: 'Lexend', sans-serif;*/
    font-family: 'Montserrat', sans-serif;
}

/*
.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-color: var(--main-color) var(--light-gray-color);
    background-color: var(--light-gray-color);
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-size: 90%;
    /* font-size: 62.5%; */
}

.body-general {
    display: flex;
    justify-content: center;
    width: 100vw;
    height: auto;
}

body {
    padding: 0;
    margin: 0 !important;
    max-width: 100vw;
    background-color: var(--light-gray-color) !important;
}

.section-general {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: auto;
    padding: 10px 0;
    max-width: 1920px;
    box-sizing: border-box;
}

.none {
    display: none !important;
}

/* ==================================== */
/* =========== FONT STYLE ============= */
/* ==================================== */

h1 {
    color: var(--black-color);
    font-size: 1.8rem;
    margin-bottom: 0;
}

@media (max-width: 940px) {
    h1 {
        font-size: 1.6rem !important;
    }
}

h2 {
    margin: 0;
    font-weight: 600;
    color: var(--black-color);
    font-size: 1.6rem;
}

h3 {
    font-weight: 600;
    color: var(--black-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

td {
    line-height: 1.4 !important;
}

/* ========================================== */
/* =============== BUTTON STYLE ============= */
/* ========================================== */

.main-btn {
    font-size: 1.2rem;
    border: 1px solid transparent;
    color: var(--white-color) !important;
    white-space: nowrap;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    padding: .6rem 1.2rem;
    line-height: 1.5;
    border-radius: 8px;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color 2.15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.main-btn-input {
    font-size: 1.2rem;
    border: 1px solid transparent;
    color: var(--white-color) !important;
    white-space: nowrap;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    line-height: 1.5;
    border-radius: 8px;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color 2.15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.main-btn-alt {
    border: 1px solid black;
    color: var(--black-color) !important;
}

.main-btn:hover {
    filter: brightness(90%);
    color: var(--white-color);
    text-decoration: none;
}

.second-btn {
    background-color: transparent !important;
    color: var(--black-color) !important;
}

.btn-large {
    padding: 12px 20px;
    font-weight: 600;
    width: 24%;
    white-space: nowrap;
    min-width: 250px;
}

.a-btn-desactive {
    background-color: lightgray !important;
    color: grey !important;
    filter: brightness(100%) !important;
    cursor: default;
}

/* anciens boutons */
.btn {
    font-size: 1.2rem;
    border: 1px solid transparent;
    /*color: var(--white-color) !important;*/
    /*background-color:lightgray;*/
    white-space: nowrap;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    padding: .6rem 1.2rem;
    line-height: 1.5;
    border-radius: 8px;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color 2.15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* .btn-primary {
    background-color:#3B71CA !important;
} */
.btn-default:hover {
    filter: brightness(90%);
    color: var(--white-color);
    text-decoration: none;
}
.btn-primary:hover {
    filter: brightness(90%);
    color: var(--white-color);
    text-decoration: none;
}

.nav-link {
    color: var(--main-color) !important;
}
/* ================================================================ */
/* ======================== COMPOSANTS ============================ */
/* ================================================================ */

.top-container {
    width: 100%;
    display: flex;
    height: auto;
    white-space: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.flex-space {
    display: flex;
    gap: 20px;
}

.cotisation-input {
    display: flex;
    gap: 20px;
}

.cotisation-input input {
    min-width: 80px;
}

@media (max-width: 998px) {
    .flex-space {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.top-container-left h1 {
    font-size: 1.2rem;
    font-weight: 500;
}

.top-container-left-edit-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-container-left h2 {
    font-size: 2.4rem;
    font-weight: 700;
}

.top-container-left a {
    color: var(--black-color);
}

table a {
    color: #212529 !important;
}

.container_panel {
    display: flex;
    gap: 20px;
}

@media (max-width: 1024px) {
    .container_panel {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.panel {
    padding: 30px;
    margin-bottom: 2rem;
    border-radius: 15px;
    background-color: #fff;
    width: 100%;
    position: relative;
}

.element_panel {
    padding: 30px;
    border-radius: 15px !important;
    background-color: #fff;
    width: 100%;
    position: relative;
}

.element_panel table {
    width: 100%;
}

.element_panel td {
    border-bottom: 16px solid transparent;
    font-size: 1.2rem;
    font-weight: 600;
    width: 50%;
    vertical-align: top;
    padding: 10px;
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .element_panel td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}

.element_panel td span {
    color: grey;
    font-size: 0.9rem;
    font-weight: 500;
}

.element_panel td .word-break {
    word-break: break-all;
    color: inherit;
    transition: 0.1s ease;
}

.element_panel td .word-break:hover {
    color: var(--main-color) !important;
}

.container_bottom_btn {
    margin-top: 2rem;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1224px) {

    .container_bottom_btn {
        flex-wrap: nowrap;
        gap: 32px;
    }
}

/* ================================================================ */
/* ====================== VIEW FOURNISSEUR ======================== */
/* ================================================================ */

.title_panel_contact_fournisseur {
    margin: 40px 0;
    border-radius: 12px;
    padding: 12px 0;
    text-align: center;
    background-color: var(--black-color);
    width: 100%;
    height: auto;
}

.title_panel_contact_fournisseur h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: var(--white-color);
}

/* =========================================================== */
/* ===================== DATATABLE =========================== */
/* =========================================================== */

.dataTables_wrapper {
    background: white;
    border-radius: 10px;
    padding: 1rem 2rem;
    overflow-x: auto;
    scrollbar-width: thin; 
    scrollbar-color: var(--main-color) #ffffff;
}

/* ==================================== */
/* =============== NAVBAR ============= */
/* ==================================== */

.navbar {
    padding: 20px 40px;
}

nav .container-fluid {
    gap: 40px;
}

nav .navbar-nav {
    gap: 20px;
}

@media (max-width: 994px) {

    nav .navbar-nav {
        gap: 10px;
    }
}

nav .nav-link {
    color: var(--black-color) !important;
}


nav .nav-right, nav .account-bloc, nav .account-bloc a {
    display: flex;
    align-items: center;
}

nav .nav-right {
    gap: 40px;
}

nav .account-bloc {
    gap: 20px; 
}

nav .account-bloc a {
    gap: 10px; 
}

@media screen and (min-width: 994px) and (max-width: 1128px) {

    nav .account-bloc span {
        display: none;
    }
}

.btn-outline-success {
    --bs-btn-color: var(--main-color) !important;
    --bs-btn-border-color: var(--main-color) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--main-color) !important;
    --bs-btn-hover-border-color: var(--main-color) !important;
    --bs-btn-focus-shadow-rgb: 25,135,84;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--main-color) !important;
    --bs-btn-active-border-color: var(--main-color) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--main-color) !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--main-color) !important;
    --bs-gradient: none;
}

/* ============================================================================================================== */
/* ============================================= READY ========================================================== */
/* ============================================================================================================== */



::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--main-color);
}

@media (max-width: 1280px) {

    section {
        padding: 0 80px 0 80px;
        box-sizing: border-box;
    }
}

.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}


.flex {
    display: flex;
}

.flex_align {
    display: flex;
    align-items: center;
}

/* ==================================== */
/* =========== Style : fonts ========== */
/* ==================================== */

h4 {
    font-weight: 500;
    color: var(--black-color);
    font-size: 1.2rem;
}

p {
    font-weight: 400;
    color: var(--black-color);
    font-size: 1rem;
}

/* ==================================== */
/* ========== Style : boutons ========= */
/* ==================================== */



/* ==================================== */
/* ========= Section recherche ======== */
/* ==================================== */

.search-section {
    position: relative;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 2;
}

.search-section .background-image {
    position: absolute;
    top: -5%;
    left: -5%;
    filter: brightness(60%) blur(8px) !important;
    height: 110%;
    width: 110%;
    background-size: cover;
    background-position: center;
}

.search-section .container {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-section .container h1 {
    color: var(--black-color);
    font-weight: 600;
}

.search-section .container form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0;
}

.search-section .container form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px 0 0 5px;
    height: auto;
}

.search-section .container form input:focus,
.search-section .container form #searchBtn:focus {
    outline: none;
}

.search-section .container form #searchBtn {
    background-color: var(--second-color);
    color: var(--white-color);
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 10px 30px;
    height: 100%;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 767px) {


    .search-section .container form #searchBtn {
        font-size: 16px;
    }

    .search-section .container form #searchBtn {
        font-size: 16px;
        padding: 10px;
    }
}

/* ==================================== */
/* ======= Boutons accès rapide ======= */
/* ==================================== */

section.direct-access .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px auto;
}

/* ==================================== */
/* == Tableau dernières consultation == */
/* ==================================== */

section.tables-categories .container {
    display: flex;
    justify-content: space-between;
    max-width: none;
    margin: 2rem 0;
}

section.tables-categories .container .category-table {
    width: 32%;
}

.category-table {
    border-radius: 10px;
    border: 2px solid var(--main-color);
    overflow: hidden;
    background-color: var(--white-color);
}

@media (max-width: 990px) {
    section.tables-categories .container  {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    section.tables-categories .container .category-table {
        width: 100%;
    }

}

.category-table.produit {
    border-color: var(--produit-color);
}

.category-table.magasin {
    border-color: var(--magasin-color);
}

.category-table.fournisseur {
    border-color: var(--fournisseur-color);
}

.category-table.adherent {
    border-color: var(--adherent-color);
}

.category-table.module {
    border-color: var(--module-color);
}

.category-table .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    gap: 5px;
    background-color: var(--main-color);
    text-align: center;
}

.category-table.produit .header {
    background-color: var(--produit-color);
}

.category-table.magasin .header {
    background-color: var(--magasin-color);
}

.category-table.fournisseur .header {
    background-color: var(--fournisseur-color);
}

.category-table.adherent .header {
    background-color: var(--adherent-color);
}

.category-table.module .header {
    background-color: var(--module-color);
}

.category-table .header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--white-color);
}

.category-table .header h2 a {
    color: var(--white-color);
    text-decoration: none;
}

.category-table .header h2:hover a {
    text-decoration: underline;
}

.category-table .content {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
}

.category-table .content>a.element {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    text-decoration: none !important;
}

.category-table .content>a.element:not(:last-child) {
    border-bottom: 1px solid var(--dark-gray-color);
}

.category-table .content>a.element>img {
    max-width: 100px;
    height: auto;
}

.category-table .content>a.element .text-infos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-table .content>a.element .text-infos h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.category-table .content>a.element:hover .text-infos h3 {
    text-decoration: underline;
}

.category-table .content>a.element .text-infos .ref {
    color: #787878;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

/* ==================================== */
/* === Tableau résultats recherche ==== */
/* ==================================== */

.search-results {
    width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: 250ms all;
    gap: 15px;
}

.search-results .text-result {
    color: var(--white-color);
    text-align: center;
    font-weight: 600;
}

.search-results.searching {
    transform: scaleY(1);
}

.search-results .category-table {
    flex-direction: row;
    display: none;
}

.search-results .category-table.check {
    display: flex;
}

.search-results .category-table .header {
    width: 25%;
    padding: 10px 8px;
}

.search-results .category-table .header i {
    font-size: 36px;
    color: white;
}

.search-results .category-table .content {
    width: 75%;
}

.search-results-centered {
    margin: 0 auto;
}

.search-results .content .text-infos span {
    width: 60px;
    padding: 8px 0;
}
/* ==================================== */
/* =============== Footer ============= */
/* ==================================== */


.modal-dialog .modal-content {
    border-radius: 8px !important;
}

.modal-dialog .modal-header {
    justify-content: center;
}

.modal-dialog .modal-header h4, .modal-dialog .modal-body p{
    margin: 0 2rem !important;
}

.modal-footer {
    justify-content: center !important; 
    gap: 20px;
}

.modal-large {
    width: 1000px !important; max-width: 1000px !important;
}



/* ======================================================== */
/* =============== VIEW FOURNISSEUR & MAGASIN ============= */
/* ======================================================== */


@media (max-width: 1440px) {
    .main-btn {
        font-size: 1rem;
        padding: 6px 12px;
        border-radius: 6px;
    }
}

@media (max-width: 1240px) {
    .ma_class_div_header {
        flex-direction: column;
        align-items: center;
    }

    .top-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .top-container-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}


/* ============================================== */
/* =============== VIEW FOURNISSEUR ============= */
/* ============================================== */













.container_panel_contact {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}



.ma_class_div_modif_contact_fournisseur {
    position: absolute;
    bottom: 1%;
    right: 2%;
}

.ma_class_div_modif_contact_fournisseur .compte-actif {
    color: var(--main-color);
}

.ma_class_div_modif_contact_fournisseur .compte-desactive {
    color: var(--magasins-color);
}

@media (min-width: 1025px) and (max-width: 1920px) {

    .container_panel_contact-fournisseur {
        flex-wrap: wrap;
    }

    .element_panel_contact-fournisseur {
        width: calc(100%/2 - 10px);
    }

    .element_panel_contact-fournisseur td {
        padding-left: 40px;
    }
}

@media (min-width: 1920px) {

    .container_panel_contact-fournisseur {
        flex-wrap: wrap;
    }

    .element_panel_contact-fournisseur {
        max-width: calc(100%/3 - 20px);
    }
}

/* ============================================== */
/* =============== VIEW MAGASIN ============= */
/* ============================================== */

.area-view-container-magasin {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    grid-template-rows: 0.8fr 0.8fr 1fr 0.6fr; 
    gap: 20px 20px;
    grid-template-areas: 
      "area1 area2 area5"
      "area1 area2 area6"
      "area3 area3 area7"
      "area3 area3 area8"; 
  }
  .area-view-container-magasin .area3 { grid-area: area3; }
  .area-view-container-magasin .area1 { grid-area: area1; }
  .area-view-container-magasin .area2 { grid-area: area2; }
  .area-view-container-magasin .area5 { grid-area: area5; }
  .area-view-container-magasin .area6 { grid-area: area6; }
  .area-view-container-magasin .area7 { grid-area: area7; }
  .area-view-container-magasin .area8 { grid-area: area8; }

@media (max-width: 1680px) {
    .area-view-container-magasin {
        grid-template-rows: 0.7fr 0.7fr 1fr 0.6fr !important; 
    }
}

@media (max-width: 1280px) {
    .area-view-container-magasin {
        display: flex;
        flex-direction: column;
        grid-template-rows: 0.7fr 0.7fr 1fr 0.6fr !important; 
    }
}

.area-view-container-magasin div {
    height: 100%;
}

.area-view-container-magasin p {
    margin: 10px 0;
}

.area-view-container-magasin span {
    font-weight: bold;
}

h2 span {
    color: grey; 
    font-size: 1.6rem; 
    font-weight: 400;
}


.area-view-container-magasin td {
    width: auto !important;
}

.area6 div {
    display: flex;
    gap: 20px;
}

.area6 a img {
    width: 50px; 
    transition: transform 0.3s ease;
}

.area6 a img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .area6 a img {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .area6 a img {
        width: 30px; 
    }

    .area6 h3 {
        font-size: 1.2rem;
    }
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

#selectRole {
    background: transparent !important;
    border: 1px solid #AAAAAA !important;
    width: 300px !important;
    padding: 4px !important;
    color: black !important;
}

.section-general .formulaire_subtitle {
    margin-bottom: 40px;
}

.add-membre-magasin form, .add-resp-regional form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.add-membre-magasin span .selection span, .add-resp-regional span .selection span{
    width: 300px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    left: 96% !important;
}

/* Style de base pour masquer la case à cocher native */
.modern-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Style de l'élément de remplacement de la checkbox */
.modern-checkbox .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ccc;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

/* Lorsque la case est cochée, applique une couleur différente */
.modern-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--main-color);
}

/* Ajouter un symbole de check (coché) */
.modern-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

/* Style du symbole de check */
.modern-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* =========================================================== */
/* =============== VIEW LIST  ============= */
/* =========================================================== */


.container-vignette {
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.container-vignette img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}




/* =========================================================== */
/* ===================== DATATABLE =========================== */
/* =========================================================== */



.dataTables_wrapper tr {
    background: white !important;
}

@media (min-width: 769px) {
    .dataTables_wrapper .dataTables_filter input {
        width: 500px;
    }

    .nowrap {
        white-space: nowrap;
    }
}

.dataTables_length {
    padding-top: 6.2px;
    padding-left: 20px;
}

/* Ne fonctionne pas - pour que la ligne de ma datatable au survole change de couleur 
  .dataTables_wrapper tbody tr:hover {
    background-color: var(--fournisseur-color);
    transition: background-color 0.3s; 
  } */

/* =========================================================== */
/* ========================== FORMULAIRES ==================== */
/* =========================================================== */

.mon_formulaire input,
select,
textarea {
    background-color: #F5F5F5;
    border: none;
    width: 100%;
    border-radius: 5px;
    padding: 12px 24px;
    line-height: 1.5;
    color: #212529;
    font-size: 1rem;
}

/* Provoque un problème avec les checkbox de type switch (remises)
input[type="checkbox"] {
    width: auto !important;
}*/

.mon_formulaire td {
    padding: 0;
}

.mon_formulaire tr td:first-child {
    padding-right: 40px;
}


.mon_formulaire h3 {
    margin-bottom: 1rem !important;
}

.mon_formulaire .element_panel {
    margin-bottom: 2rem !important;
}

.mon_formulaire label,
.add-container label {
    margin-right: 20px;
    font-size: 1.2rem;
}

.photo-container tbody {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.add-container {
    display: flex;
}

.add-container tr {
    display: flex;
    flex-direction: column;
}





/* =========================================================== */
/* ========================== LOGIN ========================== */
/* =========================================================== */

.login_section {
    height: 100vh;
    padding: 0 40px;
    width: 100%;
    background: #F4F3ED;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login_section .login_logo {
    margin-bottom: 4rem;
}

.login_section img {
    width: 240px
}

.login_section .form {
    max-width: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.login_section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #CBD300;
    margin-bottom: 40px
}

.login_section .login_input {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.login_section label {
    font-weight: 600;
}

.login_section input {
    background: #E8E7E0;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    margin-bottom: 10px;
}

.login_section button {
    margin: 20px 0;
    border-radius: 50px;
    background: #CBD300;
    padding: 12px 24px;
    color: white;
    width: 50%;
}

.login_section button:hover {
    border: solid 1px #CBD300;
    background: transparent;
    color: #CBD300;
}

.login_section div a {
    color: #CBD300;
}

.login_section h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #CBD300;
    margin-bottom: 40px
}

.login_section h5 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #CBD300;
    margin-bottom: 40px
}

.login_section .checkbox {
    margin-top: 10px;
}

.container_mdp {
    width: 100%;
    position: relative
}

.container_mdp span {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}

.container_mdp input {
    margin: 0 10px 0 0 !important;
}

.secuPass {
    display: inline-block;
    text-align: center;
    background: #E8E7E0;
    border: none;
    border-radius: 4px;
    padding: 10px 0;
    margin-bottom: 10px;
    width: 150px;
    font-size: 0.9em;
    position: relative;

}

.secuPass span {
    position: relative;
    z-index: 2;
}

.short {
    font-weight: 600;
    color: #FF0000;
    font-size: medium;
}

.faible:before {
    position: absolute;
    width: 25%;
    height: 100%;
    background-color: #d1c719;
    top: 0;
    left: 0;
    content: "";
}

.moyen:before {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #81d118;
    top: 0;
    left: 0;
    content: "";
}

.bon:before {
    position: absolute;
    width: 75%;
    height: 100%;
    background-color: #43d118;
    top: 0;
    left: 0;
    content: "";
}

.fort:before {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #18d133;
    top: 0;
    left: 0;
    content: "";
}


/* Ne fonctionne pas - pour que la ligne de ma datatable au survole change de couleur 
  .dataTables_wrapper tbody tr:hover {
    background-color: var(--fournisseur-color);
    transition: background-color 0.3s; 
  } */


/* évite les retour à la ligne dans le bloc "Afficher X éléments" des datatables */
.dataTables_length {
    white-space: nowrap;
}

/* Page des responsables régionaux - styles récupérés depuis l'ancienne version */
/*table#classic td.resp_regionaux { background-color:#D4D700; }
table#classic td.none { background-color:#DDDDDD; }
.white { color:white }
table#classic th { text-align:left; }
table#classic th { font-size:0.8em; }
#scroll { width:70%; overflow-x:scroll; float:right; }
#nomresp_regionaux { width:30%; overflow-x:hidden; float:left; }*/


.list-image-size {
    height: 40px;
    width: auto;
}

.text-center {
    text-align: center;
}

#subheader form {
    display: flex;
}

.readonly-input {
    background-color: #dfdfdf !important;
}

.nav-right .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

#Articles_wrapper {
    margin-top: 1rem;
}

.icon-container {
    display:flex; 
    justify-content:center; 
    gap: 20px;
}


@media (max-width: 1280px) {
    .icon-container {
        flex-direction: column;
    }
}

/* Notifications (remises) */
#notification, #notification_erreur { display: none; }
.hidden { display: none !important; }







  /* --- datatable loading --- */
  .loading {
    background: #999;
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    filter: alpha(opacity=80);
    filter: progid: DXImageTransform.Microsoft.Alpha(opacity=80);
    -moz-opacity: 0.80;
    opacity: 0.8;
  }
  .loading .bi-arrow-repeat {
    position: fixed;
    color: white;
    top: 50%;
    left: 50%;
    font-size: 5rem; 
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    100% {
      transform: rotate(360deg);
    }
  }

/* ================================================================= */
/* ========================== COTISATION  ========================== */
/* ================================================================= */


  #tableBilan {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
    }

    #tableBilan thead {
        background-color: #dddddd;
        border: 1px solid #ddd;
        color: black;
    }

    #tableBilan th {
        padding: 15px;
        text-align: left;
        font-size: 1.2em;
        vertical-align: middle;
    }

    #tableBilan tbody tr {
        transition: background-color 0.3s;
    }

    #tableBilan tbody tr:hover {
        background-color: #f1f1f1;
    }

    #tableBilan td {
        padding: 10px;
        border: 1px solid #ddd;
        width: auto !important;
    }

    #tableBilan tbody tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    #tableBilan tbody tr:nth-child(odd) {
        background-color: #fff;
    }

    @media screen and (max-width: 600px) {
        #tableBilan {
            font-size: 0.8em;
        }
    }

    #zoneMsg {
        z-index: 100;
        position: fixed;
        top: 100px;
        right: 10px;
        max-width: 400px;
    }

    #caMagasin th.cId,
    #caMagasin th.cDerogation {
        max-width: 55px;
    }

    #caMagasin th.cCa {
        min-width: 100px;
    }

    #caMagasin th,
    .dtfh-floatingparent th {
        padding: 2px;
        font-size: 0.8em;
    }

    #caMagasin td {
        padding: 2px;
    }

    tr.separatorBottom {
        border-bottom: solid 2px #CCC;
    }

    tr.table-subheader {
        font-weight: bold;
        font-size: 1.1em;
        border-bottom: solid 0px white;
    }

    tr.table-line-first,
    tr.table-line,
    tr.table-line-last {
        border-left: solid 2px #000;
        border-right: solid 2px #000;
    }

    tr.table-line-first {
        border-top: solid 2px #000;
    }

    tr.table-line-last {
        border-bottom: solid 2px #000;
    }

    .cout_net_ht {
        background-color: #C3D535;
        padding: 4px;
        border-color: #DDD;
        font-size: 1.2em;
        font-weight: bold;
    }


/* ================================================================= */
/* ========================== PERMISSION  ========================== */
/* ================================================================= */


    .permission .top-container h1 {
        font-size: 2.4rem;
        color: #333;
        border-left: 5px solid var(--main-color);
        padding-left: 1rem;
        margin-bottom: 2rem;
    }

    .permission .element-panel {
        background-color: #f9f9f9;
        padding: 2rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    /* Table des permissions */
    .permission .permissions-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 2rem;
    }

    .permission .permissions-table tr {
        transition: background-color 0.4s ease;
    }

    .permission .permissions-table tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .permission .permissions-table tr:nth-child(even):hover {
        background-color: lightgrey;
    }

    .permission .permissions-table tr:hover {
        background-color: lightgrey;
    }

    .permission .permissions-table td {
        padding: 1rem;
        font-size: 1.1rem;
        color: #555;
    }

    .permission .permissions-table input[type="checkbox"] {
        width: 20px;
        height: 20px;
        border-radius: 4px;
    }



    /* Responsive */
    @media (max-width: 768px) {
        .permission .top-container h1 {
            font-size: 2rem;
        }
    }


/* ================================================================= */
/* ========================== CONFIGURATION ========================== */
/* ================================================================= */


.configuration .top-container h1 {
    font-size: 2rem;
    color: #1a1a1a;
    border-left: 5px solid var(--main-color);
    padding-left: 1rem;
}

/* Liens */
.configuration .element_panel ul {
    list-style-type: none;
    padding: 0;
}

.configuration .element_panel ul li {
    margin-bottom: 1.5rem;
}

.configuration .element_panel ul li > a {
    font-size: 1.1rem;
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.8rem 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.configuration .element_panel ul li > a:hover {
    background-color: var(--main-color);
    color: #fff;
}

/* Description */
.configuration .description {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
    margin-left: 1rem;
    line-height: 1.5;
}

.configuration .description a {
    color: var(--main-color);
}

.configuration .description a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .configuration .mon_formulaire {
        flex-direction: column;
        align-items: center;
    }

    .configuration .element_panel {
        width: 100%;
        padding: 1.5rem;
    }

    .configuration .top-container h1 {
        font-size: 1.75rem;
    }
}


/* ================================================================= */
/* ========================== PARAMETRES ========================== */
/* ================================================================= */

    /* Catégories de paramètres */
    .parametre .settings-category {
        margin-bottom: 2rem;
    }
    
    .parametre .settings-category h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        color: #1a1a1a;
        border-left: 4px solid var(--main-color);
        padding-left: 1rem;
    }
    
    .parametre .settings-category ul {
        list-style: none;
        padding: 0;
    }
    
    .parametre .settings-category ul li {
        margin: 0.5rem 0;
    }
    
    .parametre .settings-category ul li a {
        font-size: 1.1rem;
        color: #1a1a1a;
        text-decoration: none;
        padding: 0.5rem 1rem;
        background-color: #f9f9f9;
        border-radius: 8px;
        display: inline-block;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .parametre .settings-category ul li a:hover {
        background-color: var(--main-color);
        color: #fff;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .parametre .element-panel {
            padding: 1.5rem;
        }
    
        .parametre h1 {
            font-size: 2rem;
        }
    
        .parametre .settings-category h3 {
            font-size: 1.5rem;
        }
    }


/* ================================================================= */
/* ========================== RAPPORTS ========================== */
/* ================================================================= */


    .rapport a {
        text-decoration: none;
        color: #1a73e8;
        transition: color 0.3s ease;
    }

    .rapport a:hover {
        color: #0056b3;
    }

    /* Container principal */
    .rapport .dashboard-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .rapport .dashboard-section {
        width: 100%;
        margin-bottom: 2rem;
        background-color: #fff;
        padding: 2rem;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .rapport .dashboard-section:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .rapport .dashboard-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
        color: #333;
    }

    /* Grille pour les cartes */
    .rapport .report-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    /* Style des cartes */
    .rapport .icon-card {
        text-align: center;
        background-color: #fdfdfd;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .rapport .icon-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .rapport .icon-card img {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .rapport .icon-card span, 
    .rapport .icon-card a {
        font-size: 1rem;
        color: #1a1a1a;
        display: block;
        margin-top: 0.5rem;
    }

    .rapport .icon-card a {
        font-weight: 600;
        font-size: 1.1rem;
        color: #333;
        margin-top: 1rem;
    }

    /* Texte petit pour les détails */
    .rapport .small {
        font-size: 0.875rem;
        color: #888;
        margin-top: 2rem;
    }

    /* Mobile et responsive */
    @media (max-width: 768px) {
        .rapport .dashboard-container {
            padding: 1rem;
        }

        .rapport .dashboard-section {
            padding: 1rem;
        }

        .rapport .report-cards {
            grid-template-columns: 1fr;
        }
    }


/* ================================================================= */
/* ========================== MEMBRES ========================== */
/* ================================================================= */

.rr { display:inline-block; padding:2px 3px; background-color:#ffb200; color:#FFF; }
.ca { display:inline-block; padding:2px 3px; background-color:#ff004c; color:#FFF; }
.cs { display:inline-block; padding:2px 3px; background-color:#0083ff; color:#FFF; }
.commission { color:#a47fc6; }


/* ================================================================= */
/* ========================== ACHATS ========================== */
/* ================================================================= */

.input-group {
    align-items: center !important; 
    margin-bottom: 2rem; 
    gap: 4px;
}

/* ================================================================= */
/* ========================== COMMUNIQUER ========================== */
/* ================================================================= */

.communiquer .panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.communiquer .panel-heading {
    color: white;
    padding: 15px;
}

.communiquer .panel-body {
    padding: 20px;
}

.communiquer .message {
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
}

.communiquer .message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.communiquer .frs {
    font-weight: bold;
    color: #333;
}

.communiquer .date {
    font-size: 0.9em;
    color: #999;
}

.communiquer .message-content {
    padding-left: 5px;
}

.communiquer .message-link {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.communiquer .message-link:hover {
    color: #0056b3;
}

.communiquer .modal-header {
    color: white;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.communiquer .modal-title {
    font-size: 1.5em;
    margin: 0;
}

.communiquer .modal-body {
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
}

.communiquer .modal-footer {
    padding: 15px;
    border-top: none;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .modal-content img {
        max-width: 400px;
    }
}

.brevo-liste-1 { color:#2851d1; }
.brevo-liste-1 { color:#d128d1; }
.brevo-liste-1 { color:#7dd128; }

.grayscale1 { filter: grayscale(1); }


.caRed {
    color: #d9534f;
    font-weight: bold;
}
.caGreen {
    color: #5cb85c;
    font-weight: bold;
}
.caGrey {
    color: #DDDDDD;
}
.label {
    font-size:0.8em;
    line-height:1em;
    margin:2px;
    padding:1px;
    white-space:nowrap;
    border-radius:.25rem;
}
.label-prospectus, .label-offre_filiere, .label-offre_prix, .label-obligatoire, .label-precommande {
    padding: 2px 4px;
}
.label-prospectus1 {
  background-color:#E90649;
}
.label-prospectus2 {
  background-color:#3364ff;
}
.label-offre_filiere {
  background-color:#fa7300;
}
.label-offre_prix {
  background-color:#99d400;
}
.label-obligatoire {
  background-color:#b10aff;
}
.label-precommande {
  background-color:#fcd71e;
}
.label-selection {
  background-color:#856ab0;
  color:#FFF;
}
.label-tac1 {
  background-color:#62b5e5;
  color:#FFF;
}
.label-tac2 {
  background-color:#6bcaba;
}
  .top_categorie {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 26px;
  background-size: contain;
  background-image: url('/gestion/images/top_categorie.png');
  }
  .top_fournisseur {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 26px;
  background-size: contain;
  background-image: url('/gestion/images/top_fournisseur.png');
  }
/*
  .top {
  display:inline-block;
  vertical-align: middle;
  font-weight: 900;
  font-size:1.4em;
  }
  .noca {
    color: #f55e00;
  }
  .nocontrat {
    color: #67008c;
  }
*/


/* ========================================================================== */
/* ========================== INDEX RESP_REGIONAUX ========================== */
/* ========================================================================== */

.resp_region h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.resp_region .regions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.resp_region .region-responsable {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    flex: 1 1 30%;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.resp_region .region-responsable:hover {
    transform: translateY(-5px);
}

.resp_region .region-responsable h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #343a40;
}

.resp_region .region-options {
    display: flex;
    justify-content: center;
    align-items: center;
}

.resp_region .option-link {
    text-decoration: none;
    color: var(--main-color);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.resp_region .option-link i {
    margin-right: 8px;
}

.resp_region .option-link:hover {
    color: var(--main-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .resp_region .regions-container {
        flex-direction: column;
        align-items: center;
    }

    .resp_region .region-responsable {
        width: 100%;
        margin-bottom: 20px;
    }
}

.resp-regionaux-list-magasins span[title] {
    cursor: help;
}

/* ========================================================================== */
/* ========================== VENTES MAGASINS =============================== */
/* ========================================================================== */

.stat-general td {
  vertical-align: middle;

}

/* Désactivation du backdrop des modales de SummerNote */
.modal-backdrop {
    display: none !important;
}

/* ========================================================================== */
/* ==================== CALENDRIER DES EVENEMENTS =========================== */
/* ========================================================================== */

.eventType {
  color:#FFFFFF;
  padding:5px;
  font-weight:bold;
  border-radius: 5px;
}
.calendar {
  display:flex;
  gap: 20px;
  margin-bottom: 100px;
}
.gridCalendar {
  flex:2;
}
.listCalendar {
  flex:1;
}

/* filtres */
#filters > label {
  line-height: 2.2em;
  cursor: pointer;
}
#filters > label > span {
  margin:5px;
}
#filters > input[type="checkbox"]  {
   display: none;
}

/* Evènements */
#events, #communiques {
    overflow-y: auto;
    height: 380px;
    margin-bottom:20px;
}
.event {
  display: flex;
  gap: 10px;
}
.eventCode {
  padding-top: 6px
}
.eventTxt {
  line-height: 1.2em;
  margin-bottom: 10px;
}
.eventDate, #eventModalDate {
  font-weight: 700;
}

/* Modal */
.eventModalBodyHeader {
  display: flex;
  padding-bottom:10px;
  border-bottom: solid 1px #EEEEEE;
  margin-bottom: 10px;
}
.eventModalBodyHeaderLeft {

}
.eventModalBodyHeaderRight {
  margin-left: auto;
  margin-right: 0;
}

/* Calendrier */
.fc-event {
  font-size:1em;
  padding:3px;
  font-weight:bold;
  border-radius: 5px;
}
.fc-event-title-container {
  cursor: pointer;
}
.attachment {
    padding-top:5px;
}
.gridCalendar h2.pink { 
    font-size: 2em;
}
h2.pink { 
    display:block;
    background-color: #EF4E91;
    color: #FFFFFF;
    width:100%;
    text-transform:uppercase;
    text-align: center;
    padding:8px;
    margin-bottom:10px;
}
.fc-button {
    background-color: #EF4E91;
    color: #FFFFFF;    
}
.fc-toolbar-title {
    color: #EF4E91;
    text-transform: capitalize;
}
.fc-button, .fc-col-header-cell {
    background-color: #EF4E91;
}
.fc-col-header-cell a {
    color: #FFFFFF;    
}
.message-header > .date {
    font-weight: 700;
}
.fc .fc-button-primary {
    background-color: #EF4E91;
    border-color: #EF4E91;  
}
a.fc-col-header-cell-cushion {
    color: #FFFFFF !important;
}
.listCalendar .message {
    margin: 15px 0;
    padding: 15px;
    background-color: #F9F9F9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .message-link, .eventTxt .eventBtn {
    color: #4e94ef;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.message-link:hover, .eventTxt .eventBtn:hover {
    color: #4e86ef;
}