.wrapper {
    display: flex;
    align-items: stretch;
}


#sidebar.active {
    margin-left: -220px;
}


#sidebar {
    min-width: 220px;
    max-width: 220px;
    min-height: 100vh;
}


a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}



@media (max-width: 768px) {
    #sidebar {
        margin-left: -220px;
    }
    #sidebar.active {
        margin-left: 0;
    }
}



/*
    ADDITIONAL DEMO STYLE, NOT IMPORTANT TO MAKE THINGS WORK BUT TO MAKE IT A BIT NICER :)
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";


body {
    /*font-family: 'Poppins', sans-serif;*/
    background: #fafafa;
}

/*p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}*/

#sidebar {
    /* don't forget to add all the previously mentioned styles here too */
    background: #828278;/*#7388A5*/
    color: #fff;
    transition: all 0.3s;
}

#sidebar .sidebar-header {
    padding: 10px 0px 10px 10px;
    background: #828278;/*#6D809E*/
    border-bottom: 5px solid #FFF;
}

#sidebar ul.components {
    padding: 2px 0;
    border-bottom: 1px solid #828278;/*#47748b;*/
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1em;
    display: block;
}
#sidebar ul li a:hover {
    color: #828278;/*#7388A5*/
    background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background:#828278;/*#6D809E*/
}
#sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background:#828278;/*#6D809E*/
}

a.fontsidebar{
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.7em;
    color: rgb(255, 255, 255);
}

/* Affichage du sidebarCollapse uniquement en mode mobile */
@media screen and (min-width: 640px) {
    #sidebarCollapse {
      position: absolute;
      left: -999em;
    }
}






/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}




/* Paginator */
.paginator {
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}


/* bordereau/index.php */
.custom-entete-bord{
    color: #fff;
    border-top: 1px solid #fafafa;
    border-bottom: 1px solid #e0e0e0;    
    background: #828278;/*#7388A5;*/
}

.cont-bordereau{
    height:550px;  
    overflow:scroll;
}
table#table-bordereaux thead tr:nth-child(1) th{
    position: sticky;
    top: 0;
    z-index: 10;
}

.invisibleClient{
    display: none;
}

.invisibleNumInterne{
    display: none;
}

.invisibleNumChantier{
	display: none;	
}



/* bordereau/view.php */
.custom-entete-synthese{
    color: #fff;
    border-top: 1px solid #fafafa;
    border-bottom: 1px solid #e0e0e0;
    background: #828278;/*#7388A5;*/
}



/* piece/index.php */
.custom-entete-piece{
    color: #fff;
    border-top: 1px solid #fafafa;
    border-bottom: 1px solid #e0e0e0;
    background: #828278;/*#7388A5;*/
}

.cont-pieces{
    height:520px;  
    overflow:scroll;
}
table#table-pieces thead tr:nth-child(1) th{
    position: sticky;
    top: 0;
    z-index: 10;
}

a.editable{
    color:#000;
}


/* scinderbord.php */
/* Sélection personnalisée */

table#sortable1 th{
    cursor: pointer;
}

#sortable1 {
    border: 1px solid #eee;
    /*width: 100%;*/
    min-height: 20px;
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
    float: left;
    margin-right: 10px;
    overflow-x: hidden;
}
#sortable2 {
    border: 1px solid #FFAA00;
    /*width: 100%;*/
    min-height: 20px;
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
    float: left;
    margin-right: 10px;
    overflow-x: hidden;
}
#sortable1 li, #sortable2 li {
    margin: 0 5px 5px 5px;
    padding: 5px;
    font-size: 1em;
    /*width: 100%;*/
    overflow-x: hidden;
}
#sortable1 li:first-child, #sortable2 li:first {
    position: fixed;
    top: 0;
}
.custom-scind{
      height: 500px;
      overflow: scroll;
}

/* custom css table en drag&drop */
.mytable a:link,
.mytable a:visited {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.mytable a:active,
.mytable a:hover {
  color: #bd5a35;
  text-decoration: underline;
}
table.mytable {
  width: 90%;
  font-family: Arial, Helvetica, sans-serif;
  color: #666;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  background: #eaebec;
  border: #ccc 1px solid;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
.mytable th {
  color: #fff;
  border-top: 1px solid #fafafa;
  border-bottom: 1px solid #e0e0e0;
  background: #828278;/*#7388A5;*/
}
.mytable th:first-child {
  text-align: center;
}
.mytable tr {
  text-align: center;
}
.mytable tr td:first-child {
  text-align: center;
  border-left: 0;
}
.mytable tr td {
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
  background: #fafafa;
  background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafa fa));
  background: -moz-linear-gradient(top, #fbfbfb, #fafafa);
}
.mytable tr.even td {
  background: #f6f6f6;
  background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6 f6));
  background: -moz-linear-gradient(top, #f8f8f8, #f6f6f6);
}
.mytable tr:last-child td {
  border-bottom: 0;
}
.mytable tr:last-child td:first-child {
  -moz-border-radius-bottom-left: 3px;
  -webkit-border-bottom-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.mytable tr:last-child td:last-child {
  -moz-border-radius-bottom-right: 3px;
  -webkit-border-bottom-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.mytable tr:hover td {
  background: #d6d6d6;
  transform: scale(1.01);
  /*padding-left: 10px;*/
  outline: 1px solid #828278;/*#7388A5;*/  
  cursor: pointer;
}