body,
html,
.row-offcanvas {
  height: 100%;
}

body {
  overflow: hidden;
  padding-top: 50px;
}

body.dev{
  padding-top: 70px;
}

body.dev .navbar.navbar-default.navbar-fixed-top {
    top: 20px;
}

#sidebar {
  width: inherit;
  min-width: 220px;
  max-width: 220px;
  /*background-color:#f5f5f5;*/
  float: left;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

#main {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}


/*
 * off Canvas sidebar
 * --------------------------------------------------
 */
/* max-width era di default 768, modificato per far funzionare la sidebar scorrevole anche con schermi grandi */
@media screen and (max-width: 1280px) {

  .row-offcanvas {
    position: relative;
    -webkit-transition: all 0.25s ease-out;
    -moz-transition: all 0.25s ease-out;
    transition: all 0.25s ease-out;
    width: calc(100% + 220px);
  }

  .row-offcanvas-left {
    left: -220px;
  }

  .row-offcanvas-left.active {
    left: 0;
  }

  .sidebar-offcanvas {
    position: absolute;
    top: 0;
  }
}

@media (min-width: 1280px) {
  .modal-lg {
    width: 1200px;
  }
}

@media (min-width: 1281px) {
  .scompari {
    display: none !important;
  }
}

[ng\:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
  display: none !important;
}

/* Per integrare ui-bootstrap e non avere problemi sui link*/
.nav,
.pagination,
.carousel,
.panel-title a {
  cursor: pointer;
}

#loader {
  left: 50%;
  top: 50%;
  position: relative;
  z-index: 1050;
  overflow: hidden;

}

#loading-bar .bar {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 1049;
}

#loading-bar-spinner {
  max-width: 20px;
  top: 0px;
  left: 0px;
}

.mask {
  z-index: 1049;
  background: #000000;
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0.5;


}

.form-signin {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
  margin-bottom: 10px;
}

.form-signin .checkbox {
  font-weight: normal;
}

.form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}

.form-signin .form-control:focus {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}


#alert {
  position: fixed;
  z-index: 10000000;
  bottom: 10px;
  right: 20px;
  max-width: 50%;
  min-width: 15%;
}

/* Serve per andare a capo negli alert tramite "/n" */
.alert>div>span {
  white-space: pre-wrap;
}



#greeting {
  background-color: #F8F8F8;
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  margin: 15px;
}

.myGrid {
  width: 500px;
  height: 550px;
}

.alert.ng-enter,
.alert.ng-leave {
  -webkit-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -moz-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -o-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

.alert.ng-enter {
  opacity: 0;

}

.alert.ng-enter-active {

  opacity: 1;
}

.alert.ng-leave {

  opacity: 1;
}

.alert.ng-leave-active {

  opacity: 0;
}

/*****************************************************/
.container-fluid {
  z-index: 999999;
  opacity: 1;
}

.container-fluid.ng-enter {
  -webkit-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -moz-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -o-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

/*.container-fluid.ng-leave {
    -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  -o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
  transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}*/
.container-fluid.ng-enter {
  z-index: 10000000;
  opacity: 0;
}

.container-fluid.ng-enter-active {
  z-index: 10000000;
  opacity: 1;
}

.container-fluid.ng-leave {
  z-index: 999999;
  opacity: 1;
}

.container-fluid.ng-leave-active {
  z-index: 999999;
  opacity: 0;
}

/* Regole CSS per smartTable, in particolare per avere l'header fisso */

table.table.table-striped {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 200px;
  /* this can vary */
}

table.table.table-striped * {
  box-sizing: inherit;
  -moz-box-sizing: inherit;
}

.table.table-striped thead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.table.table-striped tbody {
  overflow-y: scroll;
  display: inline-block;
}

.table.table-striped thead>tr,
.table.table-striped tbody>tr,
.table.table-striped tfoot>tr {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.table.table-striped thead,
.table.table-striped tfoot {
  flex-shrink: 0;
}

.table.table-striped th,
.table.table-striped tbody td {
  width: 20%;
  /* this can vary */
  overflow-x: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.table.table-striped tfoot {
  display: inline-block;
}

.table.table-striped tfoot td {
  width: 100%;
  display: inline-block;
}

.st-sort-ascent:before {
  content: '\25B2';
}

.st-sort-descent:before {
  content: '\25BC';
}

/* definisco le altezze delle singole tabelle */

#dettaglioFattura {
  height: 300px;
}

/*login section*/
.login-inputs {
  background: white;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.form-signin {

  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
  margin-bottom: 10px;
}

.form-signin .checkbox {
  font-weight: normal;
}

.form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}

.form-signin .form-control:focus {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/*upload button*/

.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
  display: block;
}

.nav-develop{
  height: 20px;
  width: 100%;
  background-color: red;
  position: fixed;
  top: 0;
  z-index: 1200;
  text-align: center;
  color:#fff;
}