:root {
  --bs-body-bg: white;
}
html,
body {
  height: 100%;
}
.main_access {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  height: calc(100% - 56px);
  text-align: center;
  align-items: center;
}
.main_access a {
  display: flex;
  height: 100%;
  margin: 0;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  line-height: 100%;
  font-size: max(5vw, 35px);
  font-weight: lighter;
  text-decoration: none;
  color: black;
  transition: all 0.3s ease-in-out;
}
.main_access a:hover {
  /*box-shadow: inset 0 0 50vw rgba(0,0,0,0.5);
  color:white;
  text-shadow: 2px 2px 0 black;*/
  filter: sepia(15%);
}

.main_access a:nth-child(1) {
  background-color: #b9d6b9;
  width: 33.33%;
}

.main_access a:nth-child(2) {
  background-color: #cedbec;
  width: 33.33%;
}

.main_access a:nth-child(3) {
  background-color: #e4fdb1;
  width: 33.33%;
}

.main_menu_link {
  min-width: 160px;
}

.main_menu_link span {
  display: block;
}
.main_menu_link i {
  display: block;
  font-size: 50px;
  margin: 10px 0;
}
#navbarDropdown + ul{
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding-right: 20px;
}
.dashboard_bg{
   background-image: url('images/sfondo_dashboard.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left top;
  top: -30px;
  position: relative;
  padding-top: 30px;
  padding-bottom: 101px;
  margin-bottom: 0;
  z-index: 1;
}
.dashboard_bg::after{
  content:'';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top:0;
  background-color: rgba(0,0,0,.5);
}
.dashboard_bg h4{
  color:white!important;
}
.dashboard_bg .btn{
  box-shadow: 0 0 18px rgba(255,255,255,1);
  border:2px solid white;
}


.dashboard {
  font-size: 4vw;
  color: rgb(255, 255, 255);
  text-shadow: 1px 0 7px rgb(189, 189, 189);
  padding-top: 37vh;
  text-align: center;
}
.scrollingpanel {
  height: calc(100vh - 56px);
  position: relative;
  overflow-y: auto;
  position: fixed;
  width: 23%;
}




.thumb-product {
  background-color: white;
  padding: 5px;
}
.thumb-product img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: contain;
}

.thumb-product-square {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: contain;
}

.item_product {
  /*border: 1px solid gray;*/
  border-radius: 5px;
  /*margin-bottom: 5px;*/
  padding: 4px;
  height: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  background-color: white;
}
/*.ckbox_product{
  position: relative;
  z-index: 1;
  cursor: pointer;
}*/

.ckbox_product {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 5px;
  padding: 3px 10px;
  cursor: pointer;
  /*background-color: whitesmoke;*/
  /*border-radius: 10px;*/
}
.ckbox_product input[type="checkbox"] {
  cursor: pointer;
}

.boxdeletesel {
  position: fixed;
  z-index: 3;
  width: 100%;
  right: 0;
  bottom: 0;
  text-align: right;
  padding: 12px;
  max-width: 400px;
  background-color: black;
}
.floated_icon {
  position: absolute;
  left: 8px;
  top: 5px;
  z-index: 3;
}

.box_autocomplete_brands {
  position: relative;
  z-index: 4;
}

.box_autocomplete_brands:after{
  content:"\f002";
  font-family: "Fontawesome";
  position: absolute;
  right:10px;
  top:6px;
  z-index: 5;
}

#output_autocomplete_brands {
  position: absolute;
  left: 0;
  top: 38px;
  background-color: white;
  width: 100%;
}
#output_autocomplete_brands p {
  padding: 4px 16px;
  margin-bottom: 0;
  border-bottom: 1px solid lightgrey;
}
#output_autocomplete_brands p a {
  color: black;
  display: block;
  text-decoration: none;
}
#output_autocomplete_brands p a::before {
  content: "- ";
}

#output_autocomplete_brands_edit,
#output_autocomplete_brands_it {
  position: absolute;
  left: 0;
  top: 38px;
  background-color: white;
  width: 100%;
}
#output_autocomplete_brands_edit p,
#output_autocomplete_brands_it p {
  padding: 4px 16px;
  margin-bottom: 0;
  border-bottom: 1px solid lightgrey;
}
#output_autocomplete_brands_edit p a,
#output_autocomplete_brands_it p a {
  color: black;
  display: block;
  text-decoration: none;
}
#output_autocomplete_brands_edit p a::before,
#output_autocomplete_brands_it p a::before {
  content: "- ";
}



.barcode {
  width: 100%;
  aspect-ratio: 4/2.5;
  object-fit: contain;
}
.shrinkToFit {
  position: relative;
  display: block;
  margin: 0 auto;
}
.col_product a.link_open_prod {
  text-decoration: unset;
  color: black;
}

.scrollingpanel_assoc {
  position: relative;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid lightgray;
  padding: 10px;
  height: calc(100vh - 231px);
}

.item_product_assoc {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  margin-bottom: 2px;
  border: 1px solid lightgray;
  text-align: left;
  align-content: center;
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.item_product_assoc:hover {
  background-color: #f2f8fd;
}
.item_product_assoc a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin-right: 10px;
}
.item_product_assoc img {
  max-width: 60px;
  display: block;
  margin: 10px;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.item_product_assoc input[type="radio"],
.item_product_assoc input[type="checkbox"] {
  position: absolute;
  right: 30px;
}
span.hilite {
  background-color: yellow;
}
#backdrop_lightbox_fwd {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1021;
  top: 0;
  left: 0;
  padding: 15px 50px;
}
.body-lightbox {
  background-color: white;
  width: 100%;
  max-width: 1200px;
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 auto;
  padding: 25px;
  border-radius: 8px;
  height: 96vh;
}

.container-lightbox {
  height: calc(100vh - 174px);
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.body-lightbox.autoheight {
  height: auto !important;
  overflow: unset !important;
  max-width: 800px !important;
}

.select2-container .select2-selection--single {
  height: 32px;
}
.bootbox-body .select2-container {
  width: 100% !important;
  z-index: 999999;
}
.select2-container--open {
  z-index: 999999;
}
.badge_cert_img {
  width: 20px;
  height: 20px;
  position: relative;
}
.div_badge_cert {
  margin-bottom: 5px;
}
#articles_row {
  background-color: #e0e0e0;
}
.item_bo{
  width:220px;
  cursor: pointer;
}
.item_bo span{
  display: block;
  padding: 6px;
  border-radius:10px;
  border: 2px solid #f1f1f1;
  color:black;
  text-decoration: none;
  font-weight: bold;
}
.item_bo img{
  display: block;
  max-width: 100%;
}
.item_bo input{
  display: none;
}
.item_bo input:checked + span{
  border-color:green;
}

.loading-overlay{
  position: fixed;
  width: 100%;
  left:0;
  top:0;
  height: 100%;
  background-color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}