/************************************************************/
/* 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");

/************************************************************/
/* 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(--accent-clr) !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;
    }
}
#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;
}

.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;
}
.container{
    border: 1px solid var(--line-clr);
    border-radius: .5em;
    margin-bottom: 20px;
    padding: min(0.5em, 15%);

    h2, p { margin-top: 0.5em;}
}

@media(max-width: 800px){
  body{
    grid-template-columns: 1fr;
  }
  main{
    padding: 2em 1em 60px 1em;
  }
  .container{
    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{font-weight: bold;border-radius: 4px;border: 1px solid #91c991;text-align: center;height: 28px;color: #91c991;background-color: #2e442e;}
.TableTitle2{font-weight: bold;border-radius: 4px;border: 1px solid #d8b5e0;text-align: center;height: 28px;color: #d8b5e0;background-color: #514354;}
.TableTitle3{font-weight: bold;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;font-weight: bold; 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;font-weight: bold; background-color: #524234; text-align: center;border-radius: 4px;border: 1px solid #eeb481;
}
.refreshTable{padding-right: 5px;}
