.inail-mat-panel-tree-container mat-tree-node h3 {
  font-size: 1rem !important;
  color: #002e5f !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  font-family: "Open Sans semibold", sans-serif !important;
  font-weight: normal !important;
  line-height: 1.1 !important;
  word-wrap: break-word !important;
}

.inail-mat-panel-tree-container .inail-mat-panel-tree-content {
  padding: 1rem 0 1rem 1.25rem !important;
  width: calc(100% - 15px) !important;
}

.inail-mat-panel-tree-container mat-tree-node .tree {
  width: 100% !important;
}

/* Titolo accordion all'interno del panel tree */

.inail-mat-panel-tree-container mat-tree-node mat-panel-title {
  text-transform: uppercase !important;
  font-size: 1rem !important;
  color: #002e5f !important;
  font-family: "Open Sans semibold", sans-serif !important;
  font-weight: normal !important;
  line-height: 1.1 !important;
  word-wrap: break-word !important;
}

.inail-mat-panel-tree-container .mat-tree-node .mat-expansion-panel {
  border: 1px solid #afafaf !important;
}

/* Background dell'header */
.inail-mat-panel-tree-container .mat-tree-node .mat-expansion-panel-header.mat-expansion-panel-header {
  padding: 1rem !important;
  background: white !important;
}

/* Body dell'accordion */
.inail-mat-panel-tree-container .mat-tree-node .mat-expansion-panel-body {
  background: white !important;
 
}

.inail-mat-panel-tree-container .mat-tree > .mat-tree-node {
  position: relative;
}


.inail-mat-panel-tree-container .mat-tree > .mat-tree-node::before {
  position: absolute;
  left: 24px;
  top: 0;
  border-left: 1px solid #AFAFAF;
  border-bottom: 1px solid #AFAFAF;
  content: "";
  width: 4em;
  height: 3.125em;
}

.inail-mat-panel-tree-container .mat-tree > .mat-tree-node::after {
  position: absolute;
  left: 24px;
  bottom: 0;
  border-left: 1px solid #AFAFAF;
  content: "";
  height: 100%;

}

.inail-mat-panel-tree-container .mat-tree > .mat-tree-node:first-child::after {
  display: none;
}

.inail-mat-panel-tree-container .mat-tree > .mat-tree-node:first-child::before {
  display: none;
}

.inail-mat-panel-tree-container
  .mat-tree
  > .mat-tree-node[aria-level="1"]::before {
  display: none !important;
}

.inail-mat-panel-tree-container
  .mat-tree
  > .mat-tree-node[aria-level="1"]::after {
  display: none !important;
}
 .inail-mat-panel-tree-container
   .mat-tree
   > .mat-tree-node[aria-level="2"]:nth-last-child(1)::after {
   display: none !important;
 }

.inail-mat-panel-tree-container
  .inail-mat-panel-tree-content
  .mat-expansion-panel-body {
  padding: 0 24px 16px !important;
}

.inail-mat-panel-tree-container
  .inail-mat-panel-tree-content
  mat-panel-title
  > button {
  padding: 0.3rem !important;
}


//this is done when you want to open the expansion panel on one point
//This case this button
.inail-mat-panel-tree-container span.mat-expansion-indicator {
  pointer-events: visiblefill !important;
}

.inail-mat-panel-tree-container .mat-expansion-panel-header {
  pointer-events: none;
}

.inail-mat-panel-tree-container .sub-tree-toggle {
  pointer-events: visible;
}
