/************************************************************/
/* FONTS                                                    */
/************************************************************/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* FONT AWESOME */
@import url("../js/fontawesome/css/fontawesome.css");
@import url("../js/fontawesome/css/brands.css");
@import url("../js/fontawesome/css/solid.css");

/************************************************************/
/* IMPORTS                                                  */
/************************************************************/
@import url("colors.css");
@import url("forms.css");
@import url("login.css");
@import url("links.css");
@import url("alerts.css");
@import url("datatables.css");
@import url("highcharts.css");
@import url("waiting.css");
@import url("modals.css");

/************************************************************/
/* GENERAL                                                  */
/************************************************************/
*{
    margin: 0;
    padding: 0;
}

ul{padding-left: 0rem !important;}
h1{color: var(--accent-clr) !important;font-size: 18px !important;margin: 10px 0 !important;}
h2{color: var(--Pink) !important;font-size: 16px !important;margin: 10px 0 !important;}
h3{color: var(--White) !important;font-size: 14px !important;margin: 10px 0 !important;}
h4{color: var(--accent-clr) !important;font-size: 13px !important;margin: 10px 0 !important;}
h5{color: var(--accent-clr) !important;font-size: 12px !important;margin: 10px 0 !important;}
h6{color: var(--accent-clr) !important;font-size: 11px !important;margin: 10px 0 !important;}

html{
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1rem;
    font-size: 13px;
    background-color: var(--base-clr) !important;
}
body{
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--base-clr) !important;
    color: var(--text-clr);
    display: grid;
    grid-template-columns: auto 1fr;
    color: var(--White) !important;
}
#sidebar{
    box-sizing: border-box;
    height: 100vh;
    width: 250px;
    padding: 5px 1em;
    background-color: var(--base-clr);
    border-right: 1px solid var(--line-clr);

    position: sticky;
    top: 0;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    text-wrap: nowrap;


}
#sidebar.close{
    padding: 5px;
    width: 60px;

    span{display: none;}


    .avatar{
        transition: 300ms ease;
        display: none !important;
    }

    .version{
        display: none;
    }
}
#sidebar ul{
    list-style: none;
}
#sidebar > ul > li:first-child{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    .logo{
        font-weight: 600;
    }
}

.IconMenu{
    text-align: center;
    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
}

    .IconMenu i{    margin-top: 2px;}

.active{
    color: var(--accent-clr) !important;
    span, i{
        color: var(--accent-clr) ;
    }
    svg{
        fill: var(--accent-clr) !important;
    }
}

.activeSub{
    background-color: var(--hover-clr);
    border-radius: 5px;
}

#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
    border-radius: .5em;
    padding: .85em;
    text-decoration: none;
    color: var(--text-clr);
    display: flex;
    align-items: center;
    gap: 1em;
}
.dropdown-btn{
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}
#sidebar svg{
    flex-shrink: 0;
    fill: var(--text-clr);
}
#sidebar a span{height: 26px; line-height: 26px;}
#sidebar a span, #sidebar .dropdown-btn span{
    flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
    background-color: var(--hover-clr);
}
#sidebar .sub-menu{
    display: grid;
    grid-template-rows: 0fr;
    transition: 300ms ease-in-out;

    > div{
    overflow: hidden;
    }
}
#sidebar .sub-menu.show{
    grid-template-rows: 1fr;
}
.dropdown-btn svg{
    transition: 200ms ease;
}
.rotate svg:last-child{
    rotate: 180deg;
}
#sidebar .sub-menu a{
    padding-left: 2em;
}
#toggle-btn{
    margin-left: auto;
    padding: 1em;
    border: none;
    border-radius: .5em;
    background: none;
    cursor: pointer;

    svg{
    transition: rotate 150ms ease;
    }
}
#toggle-btn:hover{
    background-color: var(--hover-clr);
}

main{
    padding: 20px 20px 0 20px;
    background-color: transparent !important;
}
main p{
    color: var(--secondary-text-clr);
    margin-top: 5px;
    margin-bottom: 15px;
}
.Mycontainer{
    border: 1px solid var(--line-clr);
    border-radius: .5em;
    margin-bottom: 20px;
    padding: 5px;

    h2, p { margin-top: 0.5em;}
}

.row{margin: 0 !important; padding: 0 !important;}


a{color: var(--White);text-decoration: none !important;}
a:hover{color: var(--White);text-decoration: none !important;}
a:active{color: var(--White);text-decoration: none !important;}
a:visited{color: var(--White);text-decoration: none !important;}

@media(max-width: 800px){
  body{
    grid-template-columns: 1fr;
  }
  main{
    padding: 2em 1em 60px 1em;
  }
  .version{display: none;}
  .avatar{display: none;}
  .Mycontainer{
    border: none;
    padding: 0;
  }
  #sidebar{
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;

    > ul{
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
    }
    ul li{
      height: 100%;
    }

    ul a, ul .dropdown-btn{
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
      margin-bottom: 2px;
    }

    ul li span, ul li:first-child, .dropdown-btn svg:last-child{
      display: none;
    }

    
    ul li .sub-menu.show{
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;

      > div{
        overflow-x: auto;
      }
      li{
        display: inline-flex;
      }
      a{
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }
  }
}

#sidebar ul{margin-bottom: 0 !important;}
#sidebar a{margin-bottom: 4px !important;}
.TableTitle1{border-radius: 4px;border: 1px solid #91c991;text-align: center;height: 28px;color: #91c991;background-color: #2e442e;}
.TableTitle2{border-radius: 4px;border: 1px solid #d8b5e0;text-align: center;height: 28px;color: #d8b5e0;background-color: #514354;}
.TableTitle3{border-radius: 4px;border: 1px solid #8fc9dd;text-align: center;height: 28px;color: #8fc9dd;background-color: #364c54;}

.accompte {
    border: 1px solid var(--GreyDark2) !important;
    background-color: var(--GreyBG) !important;
}

.naissances {
    border: 1px solid var(--Pink) !important;
}

.grossesses {
    border: 1px solid var(--Gold) !important;
}
.naissances2 {
    border: 1px solid var(--Pink2) !important;
}

.grossesses2 {
    border: 1px solid var(--Gold2) !important;
}


.RowNaissances{
    color: var(--Pink) !important;width: 30px;padding: 0; margin: 0; background-color: var(--PinkDark);text-align: center;border-radius: 4px;border: 1px solid var(--Pink);
}

.RowGrossesses{
    color: #eeb481 !important;width: 30px;padding: 0; margin: 0; background-color: #524234; text-align: center;border-radius: 4px;border: 1px solid #eeb481;
}
.refreshTable{padding-right: 5px;}

/* CALENDAR */
    #calendar {
    }

    .fc-theme-standard .fc-scrollgrid {
        border: 0px solid var(--line-clr) !important;
    }

    .fc-theme-standard td, .fc-theme-standard th {
        border: 1px solid var(--line-clr) !important;
    }

    .fc-daygrid-day-top a{color: var(--White) !important;}
    .fc-scrollgrid-sync-inner a{color: var(--White) !important;font-weight: normal !important;}

    thead, .fc-col-header  {
        background-color: #303030 !important;
        border: 0px solid #303030 !important;
        color: var(--header-color) !important;
    }
    .fc-scroller{
        background-color: transparent !important;
        scrollbar-color: var(--line-clr) transparent;

    }
    .fc-scroller::-webkit-scrollbar {
        background: transparent;
    }
    .fc-scroller::-webkit-scrollbar-thumb {
        background: transparent;
    }
    .fc-v-event {
        background-color: var(--line-clr) !important;
        border: 1px solid var(--line-clr) !important;
        display: block;
    }       
    .fc-timegrid-event-harness-inset .fc-timegrid-event, .fc-timegrid-event.fc-event-mirror, .fc-timegrid-more-link {
        box-shadow: 0 0 0 1px var(--line-clr) !important;
    }         
    #calendar {
        max-width: 100%;
    }

    .fc .fc-daygrid-day.fc-day-today, .fc-day-today  {
        background-color: var(--hover-clr) !important;
    }
    .fc .fc-daygrid-event-harness {
        position: relative;
        height: 30px;
        margin-bottom: 4px;
    }
    .fc .fc-daygrid-event-harness a, .fc-event-main{
        position: relative;
        height: 30px;
        margin-bottom: 4px;
        border: 0 !important;
        background-color: var(--GreyDark2);
    }
    
    /* S'assurer que les couleurs FullCalendar s'appliquent */
    .fc-event {
        border: none !important;
    }

    .fc-event-main, .fc-v-event{
        border: 0px solid var(--GreyDark2) !important;
        border-radius: 4px;
    }

    .fc-event {
    color: white !important;
    }
    .fc-daygrid-event-dot {
        display: none;
    }
    .fc-event-title{
        font-weight: normal !important;
    }
    .fc-event-time{padding-left: 4px;  }
       .fc-timegrid-event .fc-event-main,
        .fc-timegrid-event .fc-event-title,
        .fc-timegrid-event {
            background-color: inherit !important;
            border-color: inherit !important;
        }
        /* Classes de couleurs pour les événements TimeGrid - cibler tous les éléments FullCalendar */
        .fc-event.session-type-1, .session-type-1 { background-color: #dc3545 !important; border-color: #dc3545 !important; color: white !important; }
        .fc-event.session-type-2, .session-type-2 { background-color: #007bff !important; border-color: #007bff !important; color: white !important; }
        .fc-event.session-type-3, .session-type-3 { background-color: #28a745 !important; border-color: #28a745 !important; color: white !important; }
        .fc-event.session-type-4, .session-type-4 { background-color: #ffc107 !important; border-color: #ffc107 !important; color: black !important; }
        .fc-event.session-type-5, .session-type-5 { background-color: #6f42c1 !important; border-color: #6f42c1 !important; color: white !important; }
        .fc-event.session-type-6, .session-type-6 { background-color: #fd7e14 !important; border-color: #fd7e14 !important; color: white !important; }
        .fc-event.session-type-7, .session-type-7 { background-color: #20c997 !important; border-color: #20c997 !important; color: white !important; }
        .fc-event.session-type-8, .session-type-8 { background-color: #e83e8c !important; border-color: #e83e8c !important; color: white !important; }
        .fc-event.session-type-9, .session-type-9 { background-color: #6c757d !important; border-color: #6c757d !important; color: white !important; }
        .fc-event.session-type-10, .session-type-10 { background-color: #17a2b8 !important; border-color: #17a2b8 !important; color: white !important; }
        .fc-event.session-type-11, .session-type-11 { background-color: #795548 !important; border-color: #795548 !important; color: white !important; }
        .fc-event.session-type-12, .session-type-12 { background-color: #ff5722 !important; border-color: #ff5722 !important; color: white !important; }
        .fc-event.session-type-13, .session-type-13 { background-color: #9c27b0 !important; border-color: #9c27b0 !important; color: white !important; }
        .fc-event.session-type-14, .session-type-14 { background-color: #3f51b5 !important; border-color: #3f51b5 !important; color: white !important; }
        .fc-event.session-type-15, .session-type-15 { background-color: #2196f3 !important; border-color: #2196f3 !important; color: white !important; }
        .fc-event.session-type-16, .session-type-16 { background-color: #00bcd4 !important; border-color: #00bcd4 !important; color: white !important; }
        .fc-event.session-type-17, .session-type-17 { background-color: #009688 !important; border-color: #009688 !important; color: white !important; }
        .fc-event.session-type-18, .session-type-18 { background-color: #4caf50 !important; border-color: #4caf50 !important; color: white !important; }
        .fc-event.session-type-19, .session-type-19 { background-color: #8bc34a !important; border-color: #8bc34a !important; color: white !important; }
        .fc-event.session-type-20, .session-type-20 { background-color: #cddc39 !important; border-color: #cddc39 !important; color: black !important; }
        .fc-event.session-type-21, .session-type-21 { background-color: #ffeb3b !important; border-color: #ffeb3b !important; color: black !important; }
        .fc-event.session-type-22, .session-type-22 { background-color: #ffc107 !important; border-color: #ffc107 !important; color: black !important; }
        .fc-event.session-type-23, .session-type-23 { background-color: #ff9800 !important; border-color: #ff9800 !important; color: white !important; }
        .fc-event.session-type-24, .session-type-24 { background-color: #ff5722 !important; border-color: #ff5722 !important; color: white !important; }
        .fc-event.session-type-25, .session-type-25 { background-color: #f44336 !important; border-color: #f44336 !important; color: white !important; }
        .fc-event.session-type-26, .session-type-26 { background-color: #e91e63 !important; border-color: #e91e63 !important; color: white !important; }
        .fc-event.session-type-27, .session-type-27 { background-color: #924f89 !important; border-color: #924f89 !important; color: white !important; }
/* 404 / 500 */
    .error_msg{margin: 0 auto; width: 100%;}
    .error_icon{width: 100%;font-size: 150px;height:172px;line-height:172px;text-align: center;color: var(--Blue2);text-shadow: var(--Blue1) 1px 1px 0;}
    .error_txt{width: 100%;text-align: center;}