html{
  overflow-x: hidden;
  overflow-y: scroll;
}
html, body{
  min-height: 100vh;
  margin: 0;
  position: relative;
  background-color: var(--lighter);
  font-size: 16px;
  color: var(--text);
}
.circle.dark-mode{
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, 0);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.circle.dark-mode:hover{
  background: var(--color-hover);
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, .2);
}


#wrapper{
  min-height: calc(100vh - 44px);
}
#content{
  position: relative;
  padding-bottom: 2rem;
}
#content .content-height{
  min-height: 100px;
}
.largura{
  position: relative;
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 80px; /** largura do header **/
}
#footer{
  position: relative;
  width: 100%;
  text-align: center;
}
.logo{
  vertical-align: middle;
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--color);
  color: var(--text-white);
  border-radius: 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 50px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}
.logo.bg-white{
  background: var(--text-white)!important;
  color: var(--color);
}
.logo:hover{
  text-decoration: none;
  opacity: .8;
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
}
body#login{
  background: var(--dark);
}
#login .largura{
  padding-left: 0;
}
#login .bg-image{
  position: fixed;
  right: 0;
  bottom:0;
  width: 40%;
  z-index: 0;
}
#login #footer{
  position: absolute;
  bottom: 0;
}
#login.codigo .bg-image{
  left: initial;
  right:0;
  bottom: 0;
}
#login.cliente .bg-image{
  left: initial;
  right:42%;
  bottom: 0;
  max-width: 70vw;
}
#login #wrapper #content{
  padding-top: 0;
}
#login #wrapper, 
#login #wrapper > #content > .row,
#login #wrapper > #content > .row .bg-white{
  min-height: 100vh;
}

/**HEADER**/
#header{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  border-radius: 0 20px 20px 0;
  background: var(--dark);
  padding: 1rem 0;
  text-align: center;
}
#header .height-menu{
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-height: calc(100vh - 50px - 30px - 90px) ;
}
#header .menu li{
  display: block;
  padding: 1rem 0;
}
#header a:not(.logo){
  display: block;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  position: relative;
  color: var(--text-white);
  text-align: center;
}
#header a i{
  border-radius: 10px;
  width: 50px;
  font-size: 30px;
  text-align: center;
  height: 50px;
  line-height: 50px;
  margin-bottom: .5rem;
}
#header a span{
  font-size: 12px;
  display: block;
  opacity: .6;
}
#header a:not(.logo):hover i{
  background: rgba(255,255,255,.2);
}
#header a:not(.logo):hover span{
  opacity: 1;
}

#header .active a i{
  background: var(--color)!important;
}
#header .active a span{
  opacity: 1;
}
#header a.logout{
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
.abre-menu{
  font-size: 24px;
  padding: .5rem 1rem .5rem 0;
  color: var(--text);
}

#header .menu > ul > li > ul{
  /* display: none; */
  position: absolute;
  top: 100%;
  left: 0;
}

/**LEFT**/
#wrapper.menu-left{
  padding-left: 300px;
}
#left{
  position: fixed;
  width: 300px;
  top: 0;
  bottom: 0;
  z-index: 5;
  background: var(--light);
  border-right: 1px solid var(--border);
  left: 80px;
  padding: 1rem 1rem 1rem 3rem;
  margin-left: -2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

/**search**/
.search{
  position: relative;
}
.search:before{
  display: block;
  content:"\f002";
  font-family:"Font Awesome 5 Pro";
  font-style:normal;
  font-weight:300;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.search > input{
  padding-right: 40px!important;
  padding-left: 40px!important;
}
.search > .button{
  top: 50%;
  transform: translateY(-50%);
  right: 1rem;
  position: absolute;
}
.search > .button:hover{
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);

}
.dropdown-list .search{
  padding:.5rem;
}
.dropdown-list .search:before{
  left: 1.5rem;
}
.dropdown-list .search > .button{
  right: 1.5rem;
}

/**DATAPICKER**/
.calendar{
  position: relative;
}
.calendar:before{
  display: block;
  content:"\f073";
  font-family:"Font Awesome 5 Pro";
  font-style:normal;
  font-weight:300;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}
.calendar > input{
  padding-left: 40px;
}
.calendar > .button{
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
  position: absolute;
}

/**LIST**/
.circle{
  display: inline-block;
  border-radius: 50%;
  text-align: center;
  color: var(--button-text);
  background: var(--color);
  width: 36px;
  height: 36px;
  line-height: 36px;
  position: relative;
}
.circle > img{
  height: 100%;
  display: block;
  object-fit: cover;
  width: 100%;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
}
.items-height{
  min-height: calc(100vh - 410px);
}
.items-list .item{
  display: block;
}
.items-list .item > .item-content{
  border-radius: 10px;
  padding: 1rem;
  background: var(--white);
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 1px 6px -1px rgba(0, 0, 0, .1);
}
.items-list .item > .item-content.border-left{
  border-left-width: 3px!important;
}
.items-list.list-view > .row > [class*=col-] {
  max-width: 100%;
  flex: 0 0 100%;
}
.items-list.sortable .item:not(.disabled){
  cursor: move;
}
.items-list .item.disabled{
  opacity: .6;
}
.items-list a.item:hover{
  text-decoration: none;
}
.items-list.hover .item:not(.disabled) .item-content:hover,
.items-list a.item:not(.disabled) .item-content:hover{
  z-index: 2;
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  box-shadow: 0px 4px 10px -1px rgba(0, 0, 0, .1);
}
.items-list .item.sortable-ghost{
  border:dashed 1px var(--gray);
  background: none!important;
}
.items-list .item.sortable-ghost > *{
  visibility: hidden;
}


/**CLIENTES**/
.overflow-clientes{
  max-height:250px;
  overflow-x:hidden;
  overflow-y:auto;
}
img.img-cliente{
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
}
#clientes-list .item .img-cliente{
  height: 108px;
  transition: all 0.2s ease-in-out;
}
#clientes-list .item .img-cliente img{
  height: 88px;
  max-width: 100%;
  object-fit: contain;
}
#clientes-list .item .btn-dashboard{
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 108px;
  left: 0;
  width:100%;
  transition: all 0.2s ease-in-out;
}
#clientes-list .item:hover .btn-dashboard{
  visibility: initial;
  opacity: 1;
}



/** MEDIA QUERIES **/    
@media only screen and (max-width: 1600px) {
}
@media only screen and (max-width: 1199px) {
}
@media only screen and (max-width: 991px) {
  /**LEFT**/
  #wrapper.menu-left{
    padding-left: 0;
  }
  #left{
    display:none;
  }
}
@media only screen and (min-width: 992px) {
 
}
@media only screen and (max-width: 960px) {
}
@media only screen and (max-width: 767px) { 
  #header{
    bottom: initial;
    right: 0;
    width: initial;
    border-radius: 0 0 20px 20px;
    text-align: left;
    padding: 1rem;
    display: flex;
    align-items: center;
  }
  #header .logo{
    font-size: 15px;
    width: 42px;
    height: 42px;
    line-height: 42px;
  }
  #header .height-menu{
    max-height: initial;
    position: relative;
    overflow-x: initial;
    overflow-y: initial;
    top: initial;
    transform: initial;
    display: inline-block;
    margin: 0 auto;
    padding: 0;
  }
  #header .menu li{
    display: inline-block;
    padding: 0 .2rem;
  }
  #header a span{
    display: none;
  }
  #header a i{
    margin-bottom: 0;
    font-size: 20px;
    width: 42px;
    height: 42px;
    line-height: 42px;
  }
  #header a.logout {
    position: relative;
    bottom: initial;
    left: initial;
    display: inline-block;
    transform: initial;
  } 
  #wrapper{
    padding-top: 75px;
  }
  .largura{
    padding-left: 0;
  }
  
}
@media only screen and (max-width: 640px) {
}
@media only screen and (max-width: 575px) {
}
@media only screen and (max-width: 480px) {
  #wrapper{
    min-height: calc(100vh - 56px);
  }
  #login #wrapper #content .largura > .row{
    min-height: calc(100vh - 56px);
  }
}
@media only screen and (min-width: 576px) {

}
@media only screen and (max-height: 480px){
}
@media only screen and (max-width: 370px) {

}
@media (min-width: 992px) {

}

@media print {
  html, body {
    width: auto;
    height: auto;
    background: var(--white);
    position: relative;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
}