html,
body {
      font-size: 0.9rem;
      font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (max-width: 978px) {
      .container {
            padding: 0;
            margin: 0;
      }

      body,
      .col,
      .col-sm-auto {
            padding: 0;
      }

      .navbar-fixed-top,
      .navbar-fixed-bottom,
      .navbar-static-top {
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 0;
      }
}

main {
      min-height: 80vh;
      z-index: 1;

}

.navbar-light .navbar-brand {
      color: #f49538;
      font-weight: bold;
      /* text-shadow: 1px 1px 1px black; */
      /* text-shadow: 0.5px 0.5px 0.5px gray; */
}
/* .main-header .navbar-nav */
.nav-item {
      margin: 0;
}

.btn.icon-rounded {
      padding: 0;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 1.25rem;
      margin: .5rem;
      font-size: 1.3rem
}

.card-ambiente {
      border: 1px solid gray;
      border-radius: .5rem;
      margin-bottom: 1rem;
}

.card-ambiente .card-ambiente-header {
      border-radius: .5rem .5rem 0 0;
      color: white;
      justify-content: space-around !important;
      font-size: 1.5rem;
}

.card-ambiente .card-ambiente-header .icon,
.card-ambiente .card-ambiente-header h3 {
      display: inline-block;
}

.card-ambiente .card-ambiente-body {
      padding: .5rem;
      color: black;
      /* text-align: justify; */
}

.border-2 {
      border: 2px solid #bcbfc1;
}

.is-invalid {
      background-color: rgba(248, 248, 64, 0.486);
}

.select2-container--default .select2-selection--single {
      display: block;
      width: 100%;
      height: calc(1.5em + .75rem + 2px);
      padding: .375rem;
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.5;
      color: #495057;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid #ced4da;
      border-radius: .25rem;
      transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container {
      max-width: 100%;
}

input[type=range][orient=vertical] {
      writing-mode: bt-lr;
      /* IE */
      -webkit-appearance: slider-vertical;
      /* WebKit */
      height: 175px;
      /* width: 8px;
    padding: 0 5px; */
}

nav {
      /* min-height: 3rem; */
      z-index: 1;
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
      border-color: var(--ColorAmbiente);
      border-image: none;
      border-style: solid;
      background-color: var(--ColorAmbiente);
      text-align: left;
      border-width: 1px 0 1px 1px;
      color: #fff;
}

.nav-pills .nav-link {
      border-radius: .25rem 0 0 .25rem;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active,
.nav-pills .nav-link:focus,
.nav-tabs .nav-link:focus,
.nav-pills .nav-link:hover,
.nav-tabs .nav-link:hover {
      border-color: var(--ColorHoverAmbiente);
      border-image: none;
      border-style: solid;
      background-color: var(--ColorHoverAmbiente);
      text-align: left;
      color: #fff;
}

.bg-Ambiente {
      background-color: var(--ColorBgAmbiente);
}
.bg-Ambiente-light {
      color: var(--ColorHoverAmbiente);
}

.bg-Ambiente-empty{
      background-color: rgba(219, 219, 219, 0.801);
}
.btn-outline-ambiente {
      color: var(--ColorHoverAmbiente);
      border-color: var(--ColorHoverAmbiente);
    }
    
.btn-outline-ambiente:hover {
      color: #fff;
      background-color: var(--ColorHoverAmbiente);
      border-color: var(--ColorHoverAmbiente);
}

.btn-outline-ambiente:focus, .btn-outline-ambiente.focus {
      box-shadow: 0 0 0 0.2rem var(--ColorBgAmbiente);
}

.btn-outline-ambiente.disabled, .btn-outline-ambiente:disabled {
      color: var(--ColorHoverAmbiente);
      background-color: transparent;
}

.btn-outline-ambiente:not(:disabled):not(.disabled):active, .btn-outline-ambiente:not(:disabled):not(.disabled).active,
.show > .btn-outline-ambiente.dropdown-toggle {
      color: #fff;
      background-color: var(--ColorHoverAmbiente);
      border-color: var(--ColorHoverAmbiente);
}

.btn-outline-ambiente:not(:disabled):not(.disabled):active:focus, .btn-outline-ambiente:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-ambiente.dropdown-toggle:focus {
      box-shadow: 0 0 0 0.2rem var(--ColorAmbiente);
}

/* .table-bordered thead th {
      background-color: var(--ColorAmbiente);
      color: #fff;
    }
.table-bordered tbody td {
      background-color: var(--ColorBgAmbiente);
      color: #000;
    }*/

.table-ambiente,
.table-ambiente > th,
.table-ambiente thead th {
  background-color: var(--ColorAmbiente);
  color: #fff;
} 

.table-ambiente th,
.table-ambiente thead th {
  border-color:  var(--ColorAmbiente);
}
.table-ambiente,
.table-ambiente > td {
  background-color: var(--ColorBgAmbiente);
  color: #000;
}
.table-ambiente td,
.table-ambiente tbody + tbody {
  border-color: var(--ColorBgAmbiente);
}
.row.tab-pane.fade.active {
      display: flex !important;
}
.loader {
      position: fixed;
      left: 0px;
      top: 0px;
      width: 100%;
      height: 100%;
      z-index: 9999;
      background: url(../img/page-loader.gif) no-repeat center center;
      text-align: center;
      color: #000;
      }
/* #error-container {
      width: 100vw;
      height: 100vh;
      background: rgb(0 0 0 / 0.8);
      margin: 0;
      padding: 0;
      display: none;
      position:absolute;
      z-index:10;
} */
#messages-container {
      display: none;
}
/* .modal-dialog {
    max-width: fit-content!important;
} */
.modal-message {
      max-width: fit-content!important;
}
.modal-content .error {
      border-color: red;
      border-style: solid;
      border-width: 2px;
}

.modal-fullscreen {
      width: 100%;
      /* max-width: none; */
      height: 100%;
      /* margin: 0; */
  }

.img-tmb {
      background-size: contain;
      background-repeat: no-repeat;
      background-position: 50% 0%;
      border: #495057 2px solid;
      border-radius: 0.3rem;
      padding: 1px;
      margin: 2px;
      min-width: 100px;
      min-height: 100px;
}

.select2-container {
      width: 100% !important;
}

.rotate {
      animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
      to {
            transform: rotate(360deg);
      }
}

.ellipsis {
      overflow: hidden;
      /* make sure it hides the content that overflows */
      white-space: nowrap;
      /* don't break the line */
      text-overflow: ellipsis;
      /* give the beautiful '...' effect */
}

@media (max-width: 1200px) {
      .col-sm-2 {
            -ms-flex: 0 0 25%;
            flex: 0 0 25%;
            max-width: 25%;
      }
}
@media (max-width: 768px) {
      .col-sm-2 {
            -ms-flex: 0 0 33.333333%;
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
      }
      .col-sm-3 {
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;
      }
}
@media (max-width: 576px) {
      .col-sm-2 {
            -ms-flex: 0 0 50%;
            flex: 0 0 50%;
            max-width: 50%;
      }
}
/* disabilita le checkbox se sono readonly */
input[type="checkbox"][readonly]{
      pointer-events: none;
      
    }
input[type="checkbox"][readonly]  + label{
      pointer-events: none;
      color: rgb(141, 141, 141);
    }
    /* input[type=checkbox][disabled] + label {
      color: #ccc;
  } */
/* asterisco per i campi obbligatori */
.form-group.required .control-label:after {
      content:" *";
      color:red;
}

/* navbar treeview */
ul .treeview-menu,
li .nav-item {
      list-style-type: none;
}

.caret {
      cursor: pointer;
      user-select: none; /* Prevent text selection */
    }
    
    /* Create the caret/arrow with a unicode, and style it */
/* .caret::after {
      content: "\25B6";
      color: black;
      display: inline-block;
      margin-left: 6px;
} */
.caret-down::before {
      transform: rotate(90deg);
    }

/* Hide the nested list */
.nested {
      display: none;
    }
    
/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active {
      display: block;
}
.table-wrapper {
      /* max-height: 150px;*/
      overflow: auto;
      /* display:inline-block;  */
      /* width: 100%; */
} 

/*
.table-wrapper td {
  border-bottom: none;
  border-left: none;
} */

.clippy {
      margin-top: -10px;
      position: relative;
      top: 3px;
  }

.page-link {
      color: black;
  }
.page-link:hover{
      color: black;
  }

.flowchart-container {
      width: 100%;
      height: 500px;
      overflow: auto;
      background: white;
      border: 1px solid #000;
      margin-bottom: 10px;
  }

  .flowchart-container-auto {
      width: 2000px;
      height: 1000px;
      background: white;
      border: 0px solid #000;
      margin-bottom: 10px;
      position: absolute;
  }

.flowchart-operator.step-done {
      background-color: #09f809 !important;
      color: rgb(0, 0, 0);
  }
.flowchart-operator.step-wait {
      background-color: #ffd901 !important;
      color: rgb(0, 0, 0);
  }
.flowchart-operator.step-normal {
      background-color: #b5b8b5;
      color: rgb(0, 0, 0);
  }
  .flowchart-operator.step-template {
      background-color: #f8c8a9;
      color: rgb(0, 0, 0);
  }
.flowchart-operator.step-inizio-pratica {
      border: 3px solid green;
  }
  
.flowchart-operator.step-fine-pratica {
      border: 3px solid red;
  }
  
.flowchart-operator.step-messaggio {
      border: 3px solid blue;
  }
  
.flowchart-operator.step-calendario {
      border: 3px solid orange;
  }
  
.flowchart-operator.step-email {
      border: 3px solid lime;
  }
  
.flowchart-operator.step-fine-ramo {
      border: 3px solid brown;
  }
  
  
.step-done {
      background-color: #09f809;
      color: rgb(0, 0, 0);
  }
.step-wait {
      /* background-color: #ffd901; */
      background-color: #fff3cd;
      color: rgb(0, 0, 0);
  }
.step-normal {
      background-color: #b5b8b5;
      color: rgb(0, 0, 0);
  }
  .step-template {
      background-color: #f8c8a9;
      color: rgb(0, 0, 0);
  }
.step-inizio-pratica {
      border: 2px solid green;
  }
  
.step-fine-pratica {
      border: 2px solid red;
  }
  
.step-messaggio {
      border: 2px solid blue;
  }
  
.step-calendario {
      border: 2px solid orange;
  }
  
.step-email {
      border: 2px solid lime;
  }
  
.step-fine-ramo {
      border: 2px solid brown;
  }

  /* layout per popup calendar */
.calendar-layout {
      box-sizing: border-box;
}
.calendar-popup {
      position: absolute;
      font-weight: 2.5;
      box-shadow: 0 2px 6px 0 rgb(0 0 0 / 10%);
      clear: both;
}

.calendar-popup-container {
      min-width: 474px;
      box-shadow: 0 2px 6px 0 rgb(0 0 0 / 10%);
      background-color: #fff;
      border: 1px solid #d5d5d5;
      padding: 17px;
      border-radius: 2px;
  }
.calendar-popup-section {
      font-size: 0;
      min-height: 40px;
    }
.calendar-popup-detail
.calendar-popup-container
{
      width: 301px;
      min-width: 301px;
      padding-bottom: 0;
}
.calendar-popup-top-line {
      position: absolute;
      border-radius: 2px 2px 0 0;
      width: 100%;
      height: 4px;
      border: none;
      top: 0;
    }


.ui-datepicker { 
      z-index: 3000 !important;
 }

.calendar-popup-bg {
      background-color: rgba(0,0,0,0.1);
      transition: opacity 0.15s linear;
    } 