.modal-open[style] {
    padding-right: 0px !important;
}

.table-wrapper{
  overflow-y: auto;
  height: 55vh;
}

.table-wrapper thead th{
    position: sticky;
    top: 0;
    background-color: #fff;
}

#container {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0; 
  right: 0; 
  top: 100px;
  bottom: 0;
  padding: 0; 
  margin-bottom: 1em;
}

#page-container {
  height: 100%;
  display: flex;
  flex-direction: column;    
}
.tableFixHead{
  overflow-y: auto;
  flex-grow: 1;
}

.tableFixHead thead th{
    position: sticky;
    z-index: 2 !important;
    background-color: #fff;
    top: 0;
}

.table-wrapper,
.table-wrapper td,
.tableFixHead,
.tableFixHead td {
    box-shadow: inset 1px -1px #ccc;
}
.table-wrapper th,
.tableFixHead th {
    box-shadow: inset 1px 0px #aaa, 0 1px #ccc;
}
/*
.tableFixHead          { overflow-y: auto; height: 60vh;}
.tableFixHead thead th { position: sticky; top: 0; background-color: #fff;}
.tableFixHead,
.tableFixHead td {
    box-shadow: inset 1px -1px #ccc;
}
.tableFixHead th {
    box-shadow: inset 1px 0px #aaa, 0 1px #ccc;
}*/
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

body {
  padding-top: 56px;
}

@media (max-width: 991.98px) {
  .main-menu-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
  }
  .main-menu-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple { background-color: #6f42c1; }

.media-body:hover {
    background-color: #eee;
    cursor: pointer;
}

.dropdown-toggle::after {
    float:right;
    margin-top: 10px;
}

.dropdown-toggle {
    text-align: left;
}

.hidden {
    display:none;
}

.list-group{
    max-height: 300px;
    margin-bottom: 10px;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
}

.grid-checkbox-btn {
  color: gray !important;
  background-color: #17a2b8 !important;
  border-color: #17a2b8 !important;
}

.grid-checkbox-btn.active {
  color: white !important;
}

@media (min-width: 768px) {
    #table-search{
        min-width: 40%;
    }
}
@media (max-width: 768px) {
    #table-search{
        width: 100%;
    }
}

.loader {
    /*-webkit-animation: rotation 2s infinite ease-in-out;*/
    animation: rotation 1s infinite linear;

}

@-webkit-keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

.autocomplete {
    position: relative;
    display: inline-block;
    width: 100%;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}
.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Multi tabs form: */
.tab {
    display: none;
}

.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #666;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.3;
}

/* Mark the active step: */
.step.active {
    opacity: 1;
}

input.invalid {
    background-color: #ffdddd;
}

@media (min-width: 1280px) {
  .main-container {
     max-width: 1280px;
   }
}
@media screen and (min-width: 1800px) {
  .main-container {
    max-width: 1800px;
  }
}

.spinner {
   position: absolute;
   left: 50%;
   top: 50%;
   height:60px;
   width:60px;
   margin:0px auto;
   z-index: 9999!important;
   -webkit-animation: rotation .6s infinite linear;
   -moz-animation: rotation .6s infinite linear;
   -o-animation: rotation .6s infinite linear;
   animation: rotation .6s infinite linear;
   border-left:6px solid rgba(0,174,239,.15);
   border-right:6px solid rgba(0,174,239,.15);
   border-bottom:6px solid rgba(0,174,239,.15);
   border-top:6px solid rgba(0,174,239,.8);
   border-radius:100%;
}

@-webkit-keyframes rotation {
   from {-webkit-transform: rotate(0deg);}
   to {-webkit-transform: rotate(359deg);}
}
@-moz-keyframes rotation {
   from {-moz-transform: rotate(0deg);}
   to {-moz-transform: rotate(359deg);}
}
@-o-keyframes rotation {
   from {-o-transform: rotate(0deg);}
   to {-o-transform: rotate(359deg);}
}
@keyframes rotation {
   from {transform: rotate(0deg);}
   to {transform: rotate(359deg);}
}

.file-show-icon {
    cursor: pointer;   
}

.nounderline {
  text-decoration: none !important
}

.tooltip-inner {
	min-width: 100px;
	max-width: 100%;
        text-align: left;
        background-color: #ee2233;
}

@media (max-width: 320px) {
	.tooltip-inner {
		min-width: initial;
		max-width: 320px;
	}
}

.focus {
    background: #eee;
    box-shadow: 0 0 10px rgba(26, 154, 245, .5) !important;
    border: 1px solid #1a9af5 !important; 
    outline: 0px solid transparent;
}

.editable:hover {
    background: #eee;
    border: 1px solid #ddd;
    opacity: 1;
}

.table-remove {
  color: #700;
  cursor: pointer;
  padding-left: 3px;
  padding-right: 3px;
  
  &:hover {
    color: #f00;
  }
}

.table-up, .table-down {
  color: #007;
  cursor: pointer;
  padding-left: 3px;
  padding-right: 3px;
  
  &:hover {
    color: #00f;
  }
}

.table-add {
  color: #070;
  cursor: pointer;
  padding-left: 5px;
  padding-right: 5px;
 
  &:hover {
    color: #0b0;
  }
}

.table-tools {
    /*width: 100px;*/
}

#errori {
    margin-top: 0;
    padding: 2px;
    height: 20px;
}
.input-group-text {
    width: 180px;
}

#table-search .input-group-text {
    width: auto;
}

.form-check {
    padding-left: 1.25rem !important;
}

.row-link {
    text-decoration: none;
}

.bg-inda {
    background-color: #771c17;
}

.custom-file-button input[type=file] {
  margin-left: -2px !important;
}

.custom-file-button input[type=file]::-webkit-file-upload-button {
  display: none;
}

.custom-file-button input[type=file]::file-selector-button {
  display: none;
}

.custom-file-button:hover label {
  background-color: #dde0e3;
  cursor: pointer;
}