body {
      margin: 0;
      padding: 0;
      height: 100vh;
      display: flex!important;
      flex-direction: column;
    }
/*
#invoice {
  background: #ffffff; /* facture en blanc */
  border: 1px solid #d0e2f5;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 50, 0.08);
}
*/

    /* Menu horizontal sur mobile */
    .mobile-menu {
      background: #f8f9fa;
      border-bottom: 1px solid #ddd;
    }
    .mobile-menu .nav-link {
      padding: 10px;
      font-size: 14px;
    }
    .footerbar {
      height: 50px;
      background-color: #343a40;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }
    .footerbar a {
      color: #fff;
      margin: 0 10px;
      text-decoration: none;
    }
    .footerbar a:hover {
      text-decoration: underline;
    }
	
/* Styles ajoutés HG (début) */	
.inputedit {
	width:100%;
	display:block;
	border:0;
	border: 1px;
	background: none;
	padding:0;
	color: #222;
	font-family: "Helvetica Neue",arial,sans;
}

.tdedit {
	width:100%;
	display:block;
	border:0;
	background: none;
	padding:0!important;
	color: #222;
	font-family: "Helvetica Neue",arial,sans;
}

.addrow {
	cursor:pointer;
	font-family: "Helvetica Neue",arial,sans;
	font-size:13px;
	color: #FFF;
	padding:2px;
	background-color:#ccc;
	border-color:#ccc!important;
	border-radius:4px;
}
.addrow:hover {
	background-color:#3481c5!important;
	border-color:#3481c5!important;
}

.inputedit:hover,
.inputedit:focus {
  border: 0 !important;
  background: #fafafa !important;
  color: #000;
  text-shadow: #fff 1px 1px;
  -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
  box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
  outline: none !important;
}
.h2-equiv{
	font-size:2rem;	
}
.h4-equiv{
	font-size:1.5rem;	
}

/* Small responsive tweak */
@media (max-width: 420px) {
  .inputedit { font-size: 0.95rem; padding: 9px 10px; }
}
	
/* Styles ajoutés HG (fin) */


/* Homebooks wrapper */

.wrap {
  width: 100%;
 /* overflow: hidden;	*/
  padding: 2rem !important;
  background: #fff;
  border-radius: 5px;
  -webkit-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
  -moz-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
  box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24); 
  }
/* Homebooks wrapper */

/* Homebooks Lists & Buttons */
.list-group-custom {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	padding-left: 0;
	margin-bottom: 0;
	border-radius: .25rem;
}

.btn-custom-home, .btn-backtotop {
	background-color: #3481c5;
	border: none;
	color: white!important;
	padding: 8px 16px 8px 16px;
	font-size: 14px;
	cursor: pointer;
	display: block;
	width: 100%;
	margin-bottom: 0.75rem;
}


@media only screen and (max-width: 900px) {
	.btn-custom-home{
		padding: 16px 8px 16px 8px;
		font-size: 11px;
		font-weight:600;
	}
}


.btn-backtotop {
	width: auto;
}


.btn-custom-home:hover {
	color: white;
}

.btn-block + .btn-block {
	 margin-top: 0rem; 
}


@media only screen and (max-width: 600px) {
  .list-group-custom {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: row;
	flex-direction: row;
	padding-left: 0;
	margin-bottom: 0;
	margin-right: 0.5rem;
	border-radius: .25rem;
	}
	
	.btn-custom-home {
	margin-right: 0.5rem;
	}
}
/* Homebooks Lists & Buttons */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index:1000;
    display: none;	
}


/* Doctable bouton de fin de ligne*/


/* Le conteneur du menu */
.row-menu {
  position: absolute;
  display: none;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  white-space: nowrap; /* ?? empêche les coupures de ligne */
  padding-top: 6px; /* laisse un peu de place pour la flèche */
}

/* Le petit triangle d’ancrage */
.row-menu-arrow {
  position: absolute;
  top: 0;
  left: 15px; /* centré environ sous le bouton */
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid white; /* même couleur que le fond */
  filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
}

/* Les boutons internes */
.row-menu button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 6px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.row-menu button:hover {
  background: #f0f0f0;
}

/* Le bouton ? dans chaque ligne */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight:700;
  text-align: center;

  vertical-align:middle;
  display:inline-block;
}
.menu-btn:hover {
  background: #efefef;
  border-radius:50%;
}

/* Couleur des icones */
.icon-blue {
    color: #BBB;
}

/* Styles CSS de la liste d'affichage des documents (debut) */
.doc-item {
   /* border: 1px solid #ddd; */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: #fff;
	cursor:pointer;
}

.doc-item:hover {
    background: #efefef;
}

.bzlink{
	font-size:0.9rem!important;
}

.doc-title {
    font-size: 1.0rem;
    font-weight: bold;
}

.doc-desc {
    font-size: 0.8rem;
    color: #555;
}

.doc-thumb {
    width: 100%;
    max-width: 120px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: zoom-in;
}

#MODALBODY {
    position: relative;
}

#overlay-image {
    border:1px solid #ccc;
    border-radius:10px;

    position: absolute;         /* <-- basé sur MODALBODY */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-height: 95%;
    max-width: 95%;

    width: auto;
    height: auto;

    z-index: 5000;
    display: none;
}


.doc-overflow{
	height:400px;
	overflow-y:auto;
	overflow-x:hidden;
}


@media only screen and (max-width: 600px) {

.doc-item {
   /* border: 1px solid #ddd; */
    padding: 5px;
}
.bzlink{
	font-size:0.75rem!important;
}
.doc-title {
    font-size: 0.8rem;
}
.doc-desc {
    font-size: 0.7rem;
	margin-bottom:1rem;
}

.doc-thumb {
    max-width: 120px;
}
	
.doc-overflow{
	height:300px;
}
#overlay-image {
	top: 10%;
  	left: 10%;	
 	transform: translate(60%, -10%);
}
}
/* Styles CSS de la liste d'affichage des documents (fin) */