
.sticky-offset {
    top: 60px;
    z-index:2
}

.sticky-offset-sidemenu {
    top: 87px;
    z-index:2
}

@media (min-width: 992px) {
  /*
   * Sidemenu + content: no wrap (wide tables / nowrap) and no stretch.
   * Wrap + tall org menu → content “arroccato” sotto il sidemenu (~viewport).
   */
  .container_fluid_col.row:has(.sticky-offset-sidemenu),
  .container_fluid_col > .row:has(.sticky-offset-sidemenu) {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .container_fluid_col.row:has(.sticky-offset-sidemenu) > [class*="col-"]:not(.col-lg-auto):not(.col-12),
  .container_fluid_col > .row:has(.sticky-offset-sidemenu) > [class*="col-"]:not(.col-lg-auto):not(.col-12) {
    min-width: 0;
  }

  .sticky-top.sticky-offset-sidemenu {
    max-height: calc(100vh - 87px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Keep scrolling (mouse/trackpad/keyboard), hide the visual scrollbar. */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/legacy Edge */
  }

  .sticky-top.sticky-offset-sidemenu::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge Chromium */
  }

  /* Vertical header: sticky sotto le pills top-right (--app-content-top) */
  body.header-layout-vertical .sticky-offset-sidemenu {
    top: var(--app-content-top);
  }

  body.header-layout-vertical .sticky-top.sticky-offset-sidemenu {
    max-height: calc(100vh - var(--app-content-top));
  }
}

.sidemenu_item {
  background: #fff;
  color: #61707d;
  width: 100%;
  border-radius: 2em;
  display: block;
  align-items: center;
  justify-content: baseline;
  padding: .75em;
  margin-bottom: .25em;
  transition: 0.2s ease-in-out;
}

.sidemenu_item:hover {
  background: #f8f9fa;
  transition: 0.2s ease-in-out;
    -webkit-box-shadow: 0px 0px 10px 5px rgba(0,0,0, .02);
  -moz-box-shadow: 0px 0px 10px 5px rgba(0,0,0, .02);
  box-shadow: 0px 0px 10px 5px rgba(0,0,0, .02);
}

.sidemenu_item_active {
  position: relative;
}
.sidemenu_item_active::after {
  content: '';
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background-color: #47a8e0;
}

.sidemenu_item_active_red {
  position: relative;
  font-weight: bold;
}
.sidemenu_item_active_red::after {
  content: '';
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #DF547A;
}

/* .sidemenu_group: primo top 100% bottom 50%, ultimo top 50% bottom 100%, altri 50% */
.sidemenu_group .sidemenu_item:first-child {
  border-top-left-radius: 2em;
  border-top-right-radius: 2em;
  border-bottom-left-radius: .5em;
  border-bottom-right-radius: .5em;
}
.sidemenu_group .sidemenu_item:last-child {
  border-top-left-radius: .5em;
  border-top-right-radius: .5em;
  border-bottom-left-radius: 2em;
  border-bottom-right-radius: 2em;
}
.sidemenu_group .sidemenu_item:not(:first-child):not(:last-child) {
  border-radius: .5em;
}
.sidemenu_group .sidemenu_item:first-child:last-child {
  border-radius: 2em;
}

.side_item_active {
  border-right: 3px solid #47a8e0 !important;
  font-weight: bold;
  background-color: #f8f9fa;
}

.side_item_active_red {
  border-right: 3px solid #DF547A !important;
  font-weight: bold;
  background-color: #f8f9fa;
}

.col-fixed {
  -ms-flex: 0 0 200px;
  flex: 0 0 200px;
  background-color: greenyellow;
}

.filter_box{
  z-index: 1000
}

.filter_box + .filter_main {
  padding-left: 210px;
}

.side_bar {
  width: 200px;
  position:fixed;
  border-radius: 0;
  min-height: 100vh;
  background-color: white
}

.navbar-fixed-left .navbar-nav > li {
  float: none;  /* Cancel default li float: left */
  width: 139px;
}

/* On using dropdown menu (To right shift popuped) */
.navbar-fixed-left .navbar-nav > li > .dropdown-menu {
  margin-top: -50px;
  margin-left: 200px;
}

.filter_bar {
  background-color:#fff;
	padding-left: 20px;
  padding-top: 12px;
  min-height:60px;
  font-size: 14px;
  border-bottom:1px solid #dedede
}

.btn_filter {
  background-color:#f0f0f0;
  border-radius:4px;
  height:40px;
  font-size: 14px;
  padding:0.7em;
  margin: 0 5px 0 5px;
  transition: background-color 0.2s ease-in-out;
}


/* SIDE FILTERS */

.side-filter {
	margin:0 0 0 0;
	text-align:left;
	line-height:46px;
	cursor: pointer;
	padding-left:20px;
	padding-right:20px;
	color: #73879C;
	font-weight: bold;
	position: relative;
  style: none;
}

.side-filter:hover {
background: #f5f5f5;
color: #000;

}

li.side-filter:hover .side-popup {
	display: block !important;
  transition: 1s ease-in-out;
}

li.side-filter:hover .side-popup-2 {
	display: block !important;
}

li.side-filter:hover .side-popup-3 {
	display: block !important;
}

li.side-filter:hover .side-popup-4 {
	display: block !important;
}

li.side-filter:hover .side-popup-5 {
	display: block !important;
}


.side-text {
	min-width:200px;
	margin:0 0 0 0;
	text-align:left;
	line-height:37px;
	cursor: pointer;
	padding-left:20px;
	padding-right:20px;
	color: #73879C;
	font-weight: normal;
	position: relative;
}

.side-text-2 {
  	width:400px;
  	margin:0 0 0 0;
  	text-align:left;
  	line-height:37px;
  	cursor: pointer;
  	padding-left:20px;
  	padding-right:20px;
  	color: #73879C;
  	font-weight: normal;
  	position: fixed;
    min-height: 100%;
	-moz-column-count: 2;
	-webkit-column-count: 2;
	column-count: 2;
}

.side-text-3 {
  	width:600px;
  	margin:0 0 0 0;
  	text-align:left;
  	line-height:37px;
  	cursor: pointer;
  	padding-left:20px;
  	padding-right:20px;
  	color: #73879C;
  	font-weight: normal;
  	position: fixed;
    min-height: 100%;
	-moz-column-count: 3;
	-webkit-column-count: 3;
	column-count: 3;
}

.side-text:hover {
width: 100%;
background: #DFF0D8;
color: #000;
}

li.side-text:hover .side-popup {
	display: block !important;
  transition: 1s ease-in-out;
}

li.side-text:hover .side-popup-2 {
	display: block !important;
  transition: 1s ease-in-out;
}

li.side-text:hover .side-popup-3 {
	display: block !important;
  transition: 1s ease-in-out;
}

li.side-text:hover .side-popup-4 {
	display: block !important;
  transition: 1s ease-in-out;
}

ul.side-text:hover .child-side-popup {
	display: block !important;
}

ul.side-text:hover .child-side-popup-2 {
	display: block !important;
}

ul.side-text:hover .child-side-popup-3 {
	display: block !important;
}

.side-popup {
	background: #fff;
  border-radius: 6px;
	display:none;
	height: 100vh;
	top:164px;
	left:195px;
	min-width:200px;
  border: 1px solid #e1e1e1;
	position: fixed;
	margin:0 0 0 0;
	z-index: 9999px;
  color: #73879C;
}

.side-popup-2 {
	background: #fff;
  border-radius: 6px;
	display:none;
	height: 100vh;
	top:164px;
	left:180px;
	width:400px;
	position: fixed;
	margin:0 0 0 0;
	z-index: 9999px;
  color: #73879C;
  -moz-column-count: 2;
  -webkit-column-count: 2;
  column-count: 2;
}

.side-popup-3 {
	background: #fff;
  border-top: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
	display:none;
	height: 100vh;
	top:148px;
	left:180px;
	width:600px;
	position: fixed;
	margin:0 0 0 0;
	z-index: 9999px;
  color: #73879C;
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-count: 3;
}

.side-popup-4 {
	background: #fff;
  border-top: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
	display:none;
	height: 100vh;
	top:148px;
	left:180px;
	width:800px;
	position: fixed;
	margin:0 0 0 0;
	z-index: 9999px;
  color: #73879C;
  -moz-column-count: 4;
  -webkit-column-count: 4;
  column-count: 4;
}

.side-popup-5 {
	background: #fff;
  border-top: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
	display:none;
	height: 100vh;
	top:148px;
	left:180px;
	width:1000px;
	position: fixed;
	margin:0 0 0 0;
	z-index: 9999px;
  color: #73879C;
  -moz-column-count: 5;
  -webkit-column-count: 5;
  column-count: 5;
}

.child-side-popup {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e1e1e1;
	display:none;
	height: 100vh;
	top:164px;
	left:381px;
	width:200px;
	position: fixed;
	z-index: 9999;
	color: #73879C;
}

ul.side-filter:hover .child-side-popup {
	display: block !important;

}

.child-side-popup-2 {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e1e1e1;
	display:none;
	height: 100vh;
	top:164px;
	left:381px;
	width:400px;
	position: fixed;
	z-index: 9999;
	color: #73879C;
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
}

ul.side-filter:hover .child-side-popup-2 {
	display: block !important;
}

.child-side-popup-3 {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e1e1e1;
	display:none;
	height: 100vh;
	top:164px;
	left:381px;
	width:600px;
	position: fixed;
	z-index: 9999;
	color: #73879C;
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-count: 3;
}

ul.side-filter:hover .child-side-popup-3 {
	display: block !important;
}


.child-side-popup ul {
	padding-left:0px;
	padding-right:0px;
  border-right: 1px solid #e1e1e1;
	list-style:none;
	background: #fff !important;
	z-index:99999;
}

.child-side-popup-2 ul {
	padding-left:0px;
	padding-right:0px;
  border-right: 1px solid #e1e1e1;
	list-style:none;
	background: #fff !important;
}

.child-side-popup-3 ul {
	padding-left:0px;
	padding-right:0px;
  border-right: 1px solid #e1e1e1;
	list-style:none;
	background: #fff !important;
}

.check_filter {
	display:none;
}

input[type=checkbox]:checked.check_filter + div {
	background-color : #DFF0D8;
  color:#23527c;
  padding-left: 20px;
}

.child-side-popup li div {
	padding-left: 20px;
}

.child-side-popup li label {
	display: block !important;
}


.filter-container ul {
  padding: 0px;
  left: 208px;
  position: absolute;
  top: 23px;
}

.filter-container ul li {
    display: inline;
    padding: 8px;
    border-radius: 4px;
    left:36px;
	  margin-left:10px;
    margin-top:20px;
    background: #DFF0D8;
    color:#23527c;
    position: relative;
    cursor: pointer;
}
