body{
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f1f2f7;
  height: 100%;
  width: 100%;
}a{
  color: #777;
  text-decoration: none;
}.padding-top{
  padding-top: 20px;
}
.login-page{
  width: 350px;
  margin: 5% 40% 6% auto;
  padding: 0 20px;
  background-color: #f9f9f9;
  border: 1px solid #f2f2f2;

}.login-page .text-center{
  margin-bottom: 10px;
}.box{
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #f2f2f2;
}.page{
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}
.page.collapsed {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
  transform: translateX(-100px); /* Moves 100px to the left */
  
}

.page-lgn{
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}

.bg-green{
  background-color: #A3C86D;
}
.bg-blue{
  background-color: #7ACBEE;
}
.bg-yellow{
  background-color: #FDD761;
}
.bg-red{
  background-color: #FF7857;
}

.bg-secondary1{
	background-color: #b17897;
}

.bg-blue2{
	background-color: #7a83ee;
}
.panel-default >.panel-heading{
  background-color: #f5f5f5;
  border-bottom: 2px solid #3498DB;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 15px;
}.panel-box{
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
}.panel-value{
  width: 60%;
}.panel-icon{
  padding: 30px;
  width: 40%;
  border-radius: 0;
}.panel-icon{
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}.panel-value{
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
}.panel-value h2{
  margin-top: 30px;
}
.panel-icon i{
  line-height:65px;
  font-size: 40px;
  color: #fff;
}
/*#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 65px;
  line-height: 65px;
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
   box-shadow: 0 1px 2px rgba(0,0,0,0.1);
} */

#header {
position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 1000;
  height: 65px;
  background-color: #db3434;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
  transition: none !important;
}



.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* ✅ Bloque tout à droite */
  white-space: nowrap;
}




.header-date {
  color: #f9f2f2;
  font-weight: 500;
  font-size: 14px;
}

.flag-icon {
  font-size: 20px;
}

.profile img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover; /* ✅ Remplit le cercle sans déformation */
  background-color: transparent !important;
}





header > .logo {
    color: #fff;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    width: 250px;
    background-color: #db3434;
}
.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    margin-left: 20px;
    display: inline-block;
    cursor: default;
  }

  .logo-text:hover {
    color: #2c3e50; /* Pas de changement de couleur */
    text-decoration: none;
    cursor: default; /* Pas la main, comme un logo normal */
  }



.header-date{
  color: #f9f2f2;
  margin-left: 20px;
}
.info-menu{
  height: 60px;
  margin: 0;
  line-height: 60px;
  padding: 0 15px;
}.info-menu li.profile {
  position: relative;
}.profile a.toggle{
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  color: rgba(150, 150, 158, 1.0);
  position: relative;
  padding: 10px 10px 10px 0;
  margin: 0;
  background: #f9f9f9;
  border-radius: 30px;
}.info-menu li.profile a img{
  width: 30px;
  height: 30px;
}.dropdown-menu{
  margin-top: 4px;
  border-color: #fefefe;
  border-radius: 0;
   box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  -moz-box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  -webkit-box-shadow: 0px 0px 5px rgba(86, 96, 117, 0.15);
  }.dropdown-menu li{
    margin: 0;
    padding: 0;
    display: block;
    line-height: 35px;
 }.dropdown-menu li a{
  text-decoration: none;
  display: block;
  font-size: 14px;
  position: relative;
  line-height: 30px;
  width: 100%;
  border-bottom: 1px solid #f4faf9;
}.dropdown-menu li a i{
  margin-right: 5px;
}.dropdown-menu li.last a{
  border-bottom: 0;
}.datepicker{
  text-align: center;
}

/*.sidebar {
  position: fixed;
  top: 65px;  hauteur du header 
  left: 0;
  height: calc(100vh - 65px);  plein écran moins le header 
  width: 250px;
  overflow-y: auto;
  background-color: #222;  ou ta couleur actuelle 
  padding-bottom: 30px;  pour éviter qu’un item touche le bas de l’écran 
  z-index: 1000;
}*/


.sidebar {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 65px 0 0;
  height: 100%;
  width: 250px;
  background: #272727;
  border-right: 1px solid #ddd;
  text-align: center;
  overflow-y: auto;
  padding-bottom: 30px;
}.sidebar ul li:hover,.submenu ul li:hover{
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}.sidebar ul{
  list-style: none;
  margin: 0;
  padding: 0;
}.sidebar ul li {
  display: block;
}.sidebar ul li:hover,ul.submenu{
  background-color:#35404d;
}.sidebar ul li a:hover {
  color: white;
}.sidebar ul li a,ul.submenu li a {
  color: #aeb2b7;
  display: block;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
}.sidebar ul li a span,.sidebar ul li i{
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-shadow: 0 1px rgba(0,0,0, 1);
}.sidebar ul li a i{
  color: #aeb2b7;
  padding: 15px 22px;
  text-align: center;
}.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}.sidebar.collapsed {
  width: 60px !important;
  overflow: hidden;
  transition: width 0.3s ease; 
}
.sidebar.collapsed ul li a span,
.sidebar.collapsed .submenu,
.sidebar.collapsed ul li ul {
  display: none !important;
}.sidebar.collapsed ul li a i {
  padding: 15px;
  width: 100%;
  text-align: center;
  
  padding: 12px 0 !important;
  margin: 0 auto;
  font-size: 18px;
}
/*.sidebar.collapsed ul li a i {
  display: block;
  
}*/


ul.submenu{
  display: none;
  position: relative;
}ul.submenu li a:hover{
  background-color:#35404d;
}ul.submenu li a {
  padding-left: 45px;
}ul.submenu li:before{
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 0;
  bottom: 0;
  border: 1px dotted #d7d7d7;
  border-width: 0 0 0 1px;
}ul.submenu li a:before{
  content: "";
  display: inline-block;
  position: absolute;
  width: 7px;
  left: 25px;
  top: 18px;
  border-top: 1px dotted #d7d7d7;
}

.sale_report_header{
  padding: 15px 0;
}
table td h6{
  margin: 0 0 0.2em 0;
}
table tfoot tr td:first-child{
  border: 0;
}table tfoot tr td:last-child{
  border-top: 1px solid #ccc;
}table td h6,table tfoot tr td:last-child{
  color: #000;
  _font-size: 1.2em;
  font-weight: normal;
}
.form-control{
  color: #646464;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -moz-transition: all .15s ease-out;
  -webkit-transition: all .15s ease-out;
  transition: all .15s ease-out;
}.form-control:focus{
  background: #f8f8f8;
  border-color: #3498DB;
  outline: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
.btn{
  border-radius: 3px;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
   transition: all 300ms ease-in-out;
}.btn-primary {
    color: #fff;
    background-color: #51aded;
    border-color: #3d8fd8
}.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active{
    color: #fff;
    background-color: #3175b8;
    border-color: #3d8fd8
}.btn-success{
   background-color:#2ecc71
}.btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active{
  background-color:#27ae60
}.btn-warning{
  background-color: #e7c13e;
  border-color: #dfba3c;
}.btn-warning:hover, .btn-warning:focus, .btn-warning.focus, .btn-warning:active, .btn-warning.active{
  background-color:#d0ac2c;
  border-color: #dfba3c;
}.btn-danger{
  background-color: #ed5153
}.btn-danger:hover, .btn-danger:focus, .btn-danger.focus, .btn-danger:active, .btn-danger.active{
  background-color:#bb282a
}.input-group-addon{
  background-color: #fcfcfc;
  border: 1px solid #dbdbdb;
  border-radius: 0;
  
}
input[type=file]{
  text-indent: -99999px;
}td img.img-thumbnail{
  width: 125px;
  height: 125px;
  vertical-align: top;
}

/* ✅ Responsive pour mobile */
@media (max-width: 768px) {
  td img.img-thumbnail {
    width: 80px;
    max-width: 100%;
    height: auto;
  }
}

.img-avatar{
  width: 50px;
  height: 50px;
}
.jumbotron{
  margin-bottom: 0;
}.list-group-item:first-child,.list-group-item:last-child{
  border-radius: 0;
}.profile .jumbotron{
  border-radius: 3px 3px 0 0;
}.profile .jumbotron h3{
  color: white;
}img.img-size-2{
  width: 125px;
  height: 125px;
}

   

 /* Smooth animation for the cards */
            .panel-box {
                transition: transform 0.3s ease, box-shadow 0.3s ease;
            }

            /* On hover: grow slightly and add a soft shadow */
            .panel-box:hover {
                transform: scale(1.05);
                box-shadow: 0 8px 20px rgba(0,0,0,0.2);
            }

            /* Adjust the white box so it's not super tall */
            .col-md-3 {
                display: flex;
                align-items: center;
                justify-content: center;
                height: auto; /* You can adjust this */
            }

            /* Center the panel inside the col */
            .panel-value {
                text-align: center;
            }

            /* Optional: make the icons a bit bigger */
            .panel-icon i {
                font-size: 32px;
            }
            
            
            .button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.button-row button {
  min-width: 180px;
}

@media (max-width: 768px) {
  .page-lgn {
    padding: 20px !important;
  }
}


/* ✅ Desktop - corrige les décalages */
@media (min-width: 769px) {
  #header {
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* ✅ Mobile - sidebar masquée */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-250px);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .page {
    padding-left: 0 !important;
    transition: margin-left 0.3s ease-in-out;
  }

  .page.shifted {
  /* Désactive le décalage */
  margin-left: 0 !important;
}

  #header {
    margin-left: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .header-date {
    display: none !important;
  }

  .profile span {
    display: none;
  }
}

/* Corrige le fond gris autour de l’image dans le header */
.header-right .profile a.toggle {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  box-shadow: none !important;
}


@media (max-width: 768px) {
  #header.shifted {
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
  }
}

@media (min-width: 768px) {
  body.sidebar-collapsed .sidebar {
    width: 60px !important;
  }

  body.sidebar-collapsed .page {
    padding-left: 60px !important;
  }

  body.sidebar-collapsed .sidebar ul li a span,
  body.sidebar-collapsed .submenu,
  body.sidebar-collapsed .sidebar ul li ul {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar ul li a i {
    padding: 12px 0 !important;
    font-size: 18px;
    width: 100%;
    text-align: center;
  }
  .sidebar {
    transition: width 0.3s ease;
  }
  .page {
    transition: padding-left 0.3s ease;
  }
}

@media (max-width: 768px) {
  .info-menu .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .header-right {
    display: flex;
    align-items: center;
  }

  .header-right .profile {
    display: flex;
    align-items: center;
  }

  .header-right .profile img {
    margin-top: 13px !important;     /* léger recentrage */
    margin-bottom: 15px !important;
    align-self: center !important;
    vertical-align: middle !important;
  }

  .info-menu .profile a span {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #272727;
    z-index: 1050; /* Au-dessus du contenu */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.open {
    transform: translateX(0); /* Slide in */
  }

  .page {
    padding-left: 0 !important;
    transition: none !important;
  }

  .page.shifted {
    margin-left: 0 !important; /* Ne pousse plus */
  }
}



.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998; /* sous le menu latéral */
}

.overlay.active {
  display: block;
}

.sidebar {
  z-index: 999 !important; /* sous le header (qui a 1000) */
}


@media (min-width: 992px) {
  .header-right .profile a.toggle {
    background: transparent;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    color: #fff;
    font-weight: 500;
  }

  .header-right .profile a.toggle span {
    color: #fff;
    font-size: 14px;
    margin-left: 5px;
  }

  .header-right .profile a.toggle i {
    margin-left: 5px;
    font-size: 12px;
  }

  .header-right .profile img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    background: #f5f5f5;
  }
}


.sidebar ul li,
.sidebar ul.submenu li {
  transition: transform 0.2s ease-in-out;
  overflow: visible; /* ✅ évite la coupure */
  z-index: 10;
  position: relative; /* pour z-index */
}

.sidebar ul li:hover,
.sidebar ul.submenu li:hover {
  transform: scale(1.15);
  z-index: 11;
}











