/* CSS DEFAULT */
.main_green {
  color: #47d7ac !important;
}
.white {
  color: #fff !important;
}
.blue {
  color: var(--blue) !important;
}
.light_blue {
  color: var(--blue-light) !important;
}
.light_grey {
  color: #ebedf2 !important;
}
.bordeaux {
  background: #b91e4a !important;
}

.b_main_green {
  background: #47d7ac !important;
}
.b_white {
  background: #fff !important;
}
.b_blue {
  background: #003b5c !important;
}
.b_light_blue {
  background: #07406d !important;
}
.b_light_grey {
  background: #ebedf2 !important;
}
.b_bordeaux {
  background: #b91e4a !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#loader-container{
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #FFF;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-left: 4px solid #47d7ac;
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

input {
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 10px 5px 10px;
  color: #000000;
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  font-family: Geomanist;
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  transition: all 0.2s;
}

select {
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  box-sizing: border-box;
  margin: 0;
  padding: 7px 10px;
  color: #000000;
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  font-family: Geomanist;
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  transition: all 0.2s;
}


/* Footer Esterno */

.footer {
  position: relative;
  background: var(--blue) !important;
  padding: 10px 20px;
}
.box-icon-social {
  display: flex;
  align-items: center;
}

/* Menu Esterno */

.main-menu {
  height: 64px;
  padding: 0 50px;
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 4px;
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 999;
}

/* Login */

.container-auto {
  height: calc(100vh - 59px);
  background-color: #f5f5f5;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ant-layout-content {
  flex: 1 1 0%;
  display: flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 59px);
}

.logo-background-image {
  pointer-events: none;
  position: absolute;
  right: -80px;
  bottom: -280px;
  animation: 50s linear infinite rotate;
  height: 580px;
  width: 580px;
}

.login-box {
  width: 550px !important;
  max-width: 550px !important;
  border-right: medium !important;
  border-bottom: medium !important;
  border-left: medium !important;
  border-image: none !important;
  padding: 8px;
  margin: 100px 0px;
  box-shadow: rgb(200, 208, 217) 0px 1px 2px !important;
  z-index: 1;
  border-radius: 0px 0px 16px 16px;
  border-top: 5px solid var(--green-primary, #47d7ac) !important;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
}

.login-box > div {
  padding: 24px;
  border-radius: 0 0 8px 8px;
}

.title {
  margin-top: 0px;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0px;
  color: rgb(0, 59, 92);
}

.sub-title {
  margin: 0px;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  text-align: left;
  color: rgb(0, 59, 92);
}

.box-btn {
  opacity: 0.85;
  border-radius: 8px;
  background: rgb(255, 255, 255);
  background-color: rgb(255, 255, 255);
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-attachment: scroll;
  background-image: none;
  background-size: auto;
  background-origin: padding-box;
  background-clip: border-box;
  border: 1px solid var(--grey-grey-outlined, #c9cdd6);
  overflow: hidden;
}

.box-btn-active,
.box-btn-disabled {
  display: block;
  flex: 0 0 50%;
  max-width: 50%;
  font-size: 14px;
}

.active_btn {
  width: 100%;
  padding: 8px;
  height: 36px;
  border: medium;
  text-align: center;
  border-radius: 2px;
  color: var(--white) !important;
  font-weight: bold;
  background: var(--blue) !important;
}

.disabled_btn {
  width: 100%;
  padding: 8px;
  height: 36px;
  border: medium;
  text-align: center;
  border-radius: 2px;
  cursor: not-allowed;
  border-color: #d9d9d9;
  color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

.input{
  min-height: 42px;
}

.select, select{
  min-height: 42px;
}


.fake-textarea {
  min-height: 90px;
  max-height: 120px;
  overflow: scroll;
}

.input-login {
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  padding: 7px 11px;
  padding-right: 30px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 8px;
  width: 100%;
}

.input-login::placeholder {
  color: #aaa;
  font-size: 16px;
}

.btn-login {
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 4px;
  border: medium;
  font-size: 16px;
  height: 48px;
  padding: 8px 12px;
  background: rgb(71, 215, 172);
  border-radius: 250px;
  font-weight: 550 !important;
  color: var(--blue);
}

.eye {
  position: absolute;
  right: 40px;
  margin-top: 9px;
  cursor: pointer;
}

/* Menu Interno */
.sidebar {
  width: var(--width-menu);
  background: #fff;
  color: #000;
  padding: 15px 7px;
  transition: width 0.3s;
  overflow: hidden;
  position: fixed;
  z-index: 900;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px 5px;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE e Edge vecchi */
}

.sidebar::-webkit-scrollbar {
  display: none;              /* Chrome, Safari */
}

.toggle-btn {
  position: fixed;
  top: 22px;
  left: 280px;
  margin-left: 2px;
  z-index: 991;
  background: transparent;
  border: none;
  width: 24px;
  height: 30px;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon 3 */

#nav-icon1, #nav-icon2, #nav-icon3, #nav-icon4 {
  width: 24px;
  height: 30px;
  position: relative;
  margin: 0px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon1 span, #nav-icon3 span, #nav-icon4 span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #000;
  border-radius: 10px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}


#nav-icon3 span:nth-child(1) {
  top: 12px;
}

#nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3) {
  top: 19px;
}

#nav-icon3 span:nth-child(4) {
  top: 27px;
}

#nav-icon3.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#nav-icon3.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#nav-icon3.open span:nth-child(2), #nav-icon3.open span:nth-child(3) {
  top: 8px;
}


.sidebar.collapsed ~ .toggle-btn {
  left: 100px;
  transform: rotate(180deg);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  /* margin-bottom: 30px; */
  transition: opacity 0.3s;
  color: #60a5fa;
}

.logo i {
  margin-right: 10px;
}

.sidebar.collapsed .logo span {
  display: none;
}

#searchInput{
  font-size: 14px;
}

.search-box > i{
  font-size: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  padding: 0 5px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  margin-bottom: 20px;
  transition:
    opacity 0.3s,
    height 0.3s;
}

.search-box i {
  color: #d9d9d9;
  padding: 8px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: #d9d9d9;
  width: 100%;
}

.sidebar.collapsed .search-box {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.menu {
  list-style: none;
  padding: 0;
}

.menu li {
  border-radius: 6px;
}

.menu > li > a {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  margin: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.menu li a:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.submenu li.active {
  background-color: #a7b5c1 !important;
}

.menu li.active > a {
  background-color: #a7b5c1 !important;
}

.menu img {
  width: 16px;
  text-align: center;
  margin-right: 10px;
}

.menu a {
  transition: opacity 0.3s;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  color: #000;
}

.menu span {
  transition: opacity 0.3s;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
}

.sidebar.collapsed .menu span {
  opacity: 0;
  display: none;
}

.content {
  padding: 20px 35px;
  margin-left: 80px;
  transition: 0.2s ease-in-out;
  position: fixed;
  width: calc(100% - 80px);
  z-index: 890;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px 5px;
}

.has-submenu {
  display: block !important;
}

.has-submenu > div > i {
  font-size: 10px;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.submenu > li {
  border-radius: 6px;
}

.submenu > li > a {
  padding: 8px 15px;
  display: flex;
  align-items: center;
  margin: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #000;
  font-size: 14px;
  white-space: nowrap;
}

.submenu li:first-child {
  margin-top: 5px;
}

.has-submenu.open .submenu {
  overflow-y: auto;
  max-height: 550px;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.has-submenu.open .arrow-icon {
  transform: rotate(180deg);
}

.collapsed > .menu > li > a {
  justify-content: center !important;
}
.collapsed > .menu > li > div{
  justify-content: center !important;
}
.collapsed > .menu > li > a > img{
  margin-right: 0!important;
}
.collapsed > .menu > li > a > div > img{
  margin-right: 0!important;
}
#floatingSubmenu {
  position: fixed;
  background: white;
  color: black;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 200;
  border-radius: 8px;
  min-width: 180px;
  overflow-y: auto;
  overflow-x: hidden;
}
#floatingSubmenu ul {
  padding: 10px 10px 10px 30px;
}
#floatingSubmenu li a {
  display: block;
  padding: 5px;
  color: black;
  text-decoration: none;
}
#floatingSubmenu li a:hover {
  background: #f0f0f0;
}
/* Fine menu */
/* Datatables inizio */

.dataTables_wrapper .dataTables_scroll {
    overflow-x: scroll;
}

/* custom-datatables.css */

/* Stile generale della tabella */
.table {
    width: 100% !important; /* Assicura che la tabella occupi tutta la larghezza disponibile */
    border-collapse: collapse; /* Rimuove lo spazio tra i bordi delle celle */
    margin-top: 20px; /* Spazio sopra la tabella */
    margin-bottom: 20px; /* Spazio sotto la tabella */
}

/* Stile per l'intestazione della tabella (thead) */
.table thead {
    color: white; /* Colore del testo dell'intestazione */
}

.table thead th {
    padding: 12px 15px; /* Spaziatura interna delle celle di intestazione */
    text-align: left; /* Allineamento del testo a sinistra */
    border-bottom: 2px solid #dee2e6; /* Bordo inferiore per le intestazioni */
    font-weight: bold; /* Testo in grassetto */
    white-space: nowrap; /* Previene il wrapping del testo nelle intestazioni */
    font-size: 14px;
    background-color: #fafafa;
}

th, thead > tr > td{
    background-color: #fafafa!important;
}

table.dataTable th.dt-type-numeric div.dt-column-header, table.dataTable th.dt-type-numeric div.dt-column-footer, table.dataTable th.dt-type-date div.dt-column-header, table.dataTable th.dt-type-date div.dt-column-footer, table.dataTable td.dt-type-numeric div.dt-column-header, table.dataTable td.dt-type-numeric div.dt-column-footer, table.dataTable td.dt-type-date div.dt-column-header, table.dataTable td.dt-type-date div.dt-column-footer {
  flex-direction: unset;
}

/* Stile per il corpo della tabella (tbody) */
.table tbody tr {
    border-bottom: 1px solid #f0f0f0; /* Bordo inferiore per ogni riga */
}

.table tbody tr td,
.table thead tr th{
    border-bottom: 1px solid #f0f0f0!important; /* Bordo inferiore per ogni riga */
}

table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0!important;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Colore di sfondo alternato per le righe pari */
}

.table tbody tr:hover {
    background-color: #e2e6ea; /* Colore di sfondo al passaggio del mouse sulla riga */
    cursor: pointer; /* Cambia il cursore a "mano" al passaggio sulla riga */
}

.table tbody td {
    padding: 10px 15px; /* Spaziatura interna delle celle del corpo */
    vertical-align: middle; /* Allineamento verticale del contenuto della cella */
    font-size: 14px;
}

/* Stile per la barra di ricerca e la selezione delle voci per pagina */
.dataTables_filter label,
.dataTables_length label {
    font-weight: 600; /* Testo in grassetto per le etichette */
    color: #343a40; /* Colore scuro per il testo */
    margin-bottom: 10px; /* Spazio sotto le etichette */
}

.dataTables_filter input[type="search"],
.dataTables_length select {
    border: 1px solid #ced4da; /* Bordo per input e select */
    border-radius: .25rem; /* Bordi arrotondati */
    padding: .375rem .75rem; /* Spaziatura interna */
    line-height: 1.5; /* Altezza della linea */
    color: #495057; /* Colore del testo */
    background-color: #fff; /* Sfondo bianco */
}

/* Stile per le informazioni sulla paginazione (es. "Mostrando X di Y voci") */
.dataTables_info {
    font-size: 0.9em; /* Dimensione del font */
    color: #6c757d; /* Colore del testo */
    margin-top: 10px; /* Spazio sopra */
    margin-bottom: 10px; /* Spazio sotto */
}

/* Stile per i pulsanti di paginazione */
.dataTables_paginate .pagination .page-item .page-link {
    color: #007bff; /* Colore del testo dei link di paginazione */
    border: 1px solid #dee2e6; /* Bordo dei pulsanti */
    margin-left: -1px; /* Rimuove lo spazio extra tra i pulsanti */
    box-shadow: none;
}

.dataTables_paginate .pagination .page-item.active .page-link {
    background-color: #007bff; /* Sfondo del pulsante attivo */
    border-color: #007bff; /* Bordo del pulsante attivo */
    color: white; /* Testo bianco per il pulsante attivo */
}

.dataTables_paginate .pagination .page-item.disabled .page-link {
    color: #d2d2d2!important;
    background-color: transparent !important;
    border: none !important;
    cursor: not-allowed!important;
}

.dataTables_paginate .pagination .page-item .page-link:hover {
    background-color: #0056b3; /* Sfondo al passaggio del mouse sui pulsanti */
    border-color: #0056b3; /* Bordo al passaggio del mouse sui pulsanti */
    color: white; /* Colore del testo al passaggio del mouse */
}

/* Stile per il messaggio "Nessun dato disponibile" */
.table .dataTables_empty {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Stile per i dropdown delle azioni */
.dropdown-menu {
    border-radius: .25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    font-size: 14px;
}

.dropdown-item {
    color: #212529;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

table.dataTable.no-footer {
  border-bottom: none;
}

div.dataTables_wrapper .top {
  margin-bottom: 15px;
  margin-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  box-sizing: border-box;
  display: inline-block;
  min-width: 1.5em;
  padding: 0;
  margin: 0px 5px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  color: inherit !important;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}

.dataTables_wrapper .dataTables_length {
  display: flex;
  align-items: center;
}

.dataTables_wrapper .dataTables_length label{
  margin-bottom: 15px;
  margin-top: 10px;
}

.form-select {
  background-position: right .4rem center;
}

div.dataTables_wrapper div.dataTables_length select {
  width: 110px;
  background-color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: normal;
  color: #000;
  box-shadow: none;
  margin-top: 6px;
}

div.dataTables_wrapper div.dataTables_paginate {
padding-top: 0;
}

table.dataTable tbody tr:last-child > td {
  border-bottom: 0;
}

.page-link {
  position: relative;
  display: block;
  padding: 6px 12px;
  font-size: var(--bs-pagination-font-size);
  color: var(--bs-pagination-color);
  text-decoration: none;
  background-color: var(--bs-pagination-bg);
  border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  line-height: 1;
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #fff!important;
  border-radius: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: #000;
  border: 1px solid transparent;
  background: unset;

}

table.dataTable tbody th, table.dataTable tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.page-item.active > .page-link{
  border: 1px solid #000!important;
}

.badge-dt {
  border: 1px solid #000;
  color: #000;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  width: fit-content;
  margin-inline-end: 8px;
  padding-inline: 7px;
  white-space: nowrap;
  line-height: 20px;
}
.badge-dt-attivo{
  color: #389e0d;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  width: fit-content;
  margin-inline-end: 8px;
  padding:0px 7px;
  white-space: nowrap;
  line-height: 20px;
}
.badge-dt-attivo > .dotted {
  height: 10px;
  width: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 3px;
  background-color: rgb(23, 94, 73);
}
.badge-dt-disattivo{
  color: #cf1322;
  background: #fff1f0;
  border: 1px solid #ffa39e;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  width: fit-content;
  margin-inline-end: 8px;
  padding:0px 7px;
  white-space: nowrap;
  line-height: 20px;
}
.badge-dt-disattivo > .dotted {
  height: 10px;
  width: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 3px;
  background-color: #cf1322;
}
.dropdown-dt{
  font-size: 14px;
  line-height: 1.5714285714285714;
  height: 32px;
  padding: 4px 15px;
  border-radius: 6px;
  outline: none;
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  cursor: pointer;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0em;
}

.input-src-dt {
  background: #ffffff;
  border-width: 1px;
  border-style: solid;
  border-color: #d9d9d9;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 10px 5px 35px;
  color: #000000;
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  font-family: Geomanist;
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  transition: all 0.2s;
}

.lente-icon-src {
  position: absolute;
  margin-top: 5px;
  margin-left: 10px;
}

.lente-icon-src > i{
  color: #d9d9d9;
}

.btn-dt{
  border-radius: 5px;
  padding: 5px 15px;
  white-space: nowrap;
  background-color: #003b5c!important;
  border: none;
  color: #fff;
  font-size: 14px;
}

.fake-textarea {
  scrollbar-width: none; /* per Firefox */
  -ms-overflow-style: none; /* per IE e Edge */
}

.fake-textarea::-webkit-scrollbar {
  display: none; /* per Chrome, Safari e Opera */
}


.btn-dt-white{
  border-radius: 5px;
  padding: 5px 15px;
  white-space: nowrap;
  background-color: #fff!important;
  border: none;
  color: #003b5c;
  font-size: 14px;
  border: 1px solid #003b5c;
}

.scroll-x-only {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-height: 100%; /* oppure un valore specifico */
}

/* Datatables fine */
/* Modali inizio */

.modal-content {
  position: relative;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  padding: 20px 24px;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0;
  border-bottom: unset;
  margin-bottom: 20px;
}

.modal-body {
  border-top: unset;
  padding: 0;
}

.modal-footer {
  border-top: unset;
  padding: 0;
  margin-top: 20px;
}

.modal-title {
  font-size: 24px!important;
  font-weight: bold;
  color: rgb(0, 59, 92);
}

/* Modali fine */
/* style */

table > thead > tr > th{
  font-size: 15px!important;
  font-weight: 400!important;
}

.main-box {
  margin-left: 80px;
  background-color: #f5f5f5;
  transition: 0.2s ease-in-out;
}

.wrapper {
  padding: calc(64px + 30px) 35px;
  min-height: calc(100vh - 59px);
  transition: 0.2s ease-in-out;
}

.title-page {
  font-size: 24px;
  line-height: 20px;
  font-weight: bold;
  font-style: normal;
  color: rgb(0, 0, 0);
  margin-bottom: 20px;
}

.copy-input {
  cursor: copy;
}

/* Contenitore che contiene l'input */
.copy-input-icon {
  position: relative;
}

/* Aggiungi padding destro all'input per lasciare spazio all'icona */
.copy-input-icon input {
  padding-right: 2.5rem;
}

/* L'icona viene inserita con ::after sul contenitore */
.copy-input-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' fill-rule='evenodd' d='M15 1.25h-4.056c-1.838 0-3.294 0-4.433.153c-1.172.158-2.121.49-2.87 1.238c-.748.749-1.08 1.698-1.238 2.87c-.153 1.14-.153 2.595-.153 4.433V16a3.75 3.75 0 0 0 3.166 3.705c.137.764.402 1.416.932 1.947c.602.602 1.36.86 2.26.982c.867.116 1.97.116 3.337.116h3.11c1.367 0 2.47 0 3.337-.116c.9-.122 1.658-.38 2.26-.982s.86-1.36.982-2.26c.116-.867.116-1.97.116-3.337v-5.11c0-1.367 0-2.47-.116-3.337c-.122-.9-.38-1.658-.982-2.26c-.531-.53-1.183-.795-1.947-.932A3.75 3.75 0 0 0 15 1.25m2.13 3.021A2.25 2.25 0 0 0 15 2.75h-4c-1.907 0-3.261.002-4.29.14c-1.005.135-1.585.389-2.008.812S4.025 4.705 3.89 5.71c-.138 1.029-.14 2.383-.14 4.29v6a2.25 2.25 0 0 0 1.521 2.13c-.021-.61-.021-1.3-.021-2.075v-5.11c0-1.367 0-2.47.117-3.337c.12-.9.38-1.658.981-2.26c.602-.602 1.36-.86 2.26-.981c.867-.117 1.97-.117 3.337-.117h3.11c.775 0 1.464 0 2.074.021M7.408 6.41c.277-.277.665-.457 1.4-.556c.754-.101 1.756-.103 3.191-.103h3c1.435 0 2.436.002 3.192.103c.734.099 1.122.28 1.399.556c.277.277.457.665.556 1.4c.101.754.103 1.756.103 3.191v5c0 1.435-.002 2.436-.103 3.192c-.099.734-.28 1.122-.556 1.399c-.277.277-.665.457-1.4.556c-.755.101-1.756.103-3.191.103h-3c-1.435 0-2.437-.002-3.192-.103c-.734-.099-1.122-.28-1.399-.556c-.277-.277-.457-.665-.556-1.4c-.101-.755-.103-1.756-.103-3.191v-5c0-1.435.002-2.437.103-3.192c.099-.734.28-1.122.556-1.399' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.85;
}

/* Contenitore che contiene l'input */
.search-input-icon {
  position: relative;
}

/* Aggiungi padding destro all'input per lasciare spazio all'icona */
.search-input-icon input {
  padding-right: 2.5rem;
}

/* L'icona viene inserita con ::after sul contenitore */
.search-input-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m19.6 21l-6.3-6.3q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l6.3 6.3zM9.5 14q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.85;
}

.input-password-icon {
  position: relative;
}

/* Aggiungi padding destro all'input per lasciare spazio all'icona */
.input-password-icon input {
  padding-right: 2.5rem;
}

.input-password-icon::after{
  content: "";
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-4.5c5 0 9.27 3.11 11 7.5c-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5M3.18 12a9.821 9.821 0 0 0 17.64 0a9.821 9.821 0 0 0-17.64 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.85;
}

.input-password-icon.close::after{
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M10.585 10.587a2 2 0 0 0 2.829 2.828'/%3E%3Cpath d='M16.681 16.673A8.7 8.7 0 0 1 12 18q-5.4 0-9-6q1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6q-1 1.665-2.138 2.87M3 3l18 18'/%3E%3C/g%3E%3C/svg%3E");

}

.input:read-only{
  background: #efefef;
}

.drop-menu {
  color: #003b5c;
  font-size: 14px;
}

.box-messaggio {
  width: 350px;
  min-height: 135px;
  background-color: #ffffff;
  box-shadow: 0px 0px 35px #ccc;
  position: fixed;
  bottom: 85px;
  right: 40px;
  z-index: 890;
  padding: 15px;
  padding-left: 70px;
  border-radius: 5px;
}

.box-messaggio > p{
  max-height: 250px;
  overflow: auto;
}

.select2-container .select2-selection--single {
  height: 32px;
}

.box-messaggio.success > .box-icon::after{
  content: "";
  cursor: pointer;
  position: absolute;
  top: 10%;
  left: 1rem;
  width: 35px;
  height: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E%3Cpath fill='%23389e0d' fill-rule='evenodd' d='M256 42.667C138.18 42.667 42.667 138.18 42.667 256S138.18 469.334 256 469.334S469.334 373.82 469.334 256S373.821 42.667 256 42.667m80.336 137.114l30.167 30.167l-131.836 132.388l-79.083-79.083l30.166-30.167l48.917 48.917z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
}

.box-messaggio.error > .box-icon::after{
  content: "";
  cursor: pointer;
  position: absolute;
  top: 10%;
  left: 1rem;
  width: 35px;
  height: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E%3Cpath fill='%23cf1322' fill-rule='evenodd' d='M256 42.667c117.803 0 213.334 95.53 213.334 213.333S373.803 469.334 256 469.334S42.667 373.803 42.667 256S138.197 42.667 256 42.667m48.918 134.25L256 225.836l-48.917-48.917l-30.165 30.165L225.835 256l-48.917 48.918l30.165 30.165L256 286.166l48.918 48.917l30.165-30.165L286.166 256l48.917-48.917z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
}

.box-messaggio.info > .box-icon::after{
  content: "";
  cursor: pointer;
  position: absolute;
  top: 10%;
  left: 1rem;
  width: 35px;
  height: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2346b8da' d='M12 17q.425 0 .713-.288T13 16v-4q0-.425-.288-.712T12 11t-.712.288T11 12v4q0 .425.288.713T12 17m0-8q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m0 13q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
}

.toggle-btn > div.open span{
    background: #f7f5f3!important;
}

.footer-box-1{
  white-space: nowrap;
}

.home-titolo{
  margin-bottom: -25px;
}

.nav-link{
  color: #175e49!important;
}

.nav-link.active {
  color: #000!important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.nav-link-custom{
  padding: 0px 15px;
  min-height: 25px;
  height: auto;
  border: none;
  border-radius: 5px;
  font-size: 14px;

}

a{
  color: #212529;
  text-decoration: none;
}

.row-fix-padding{
  padding: 7px 15px;
}

.dtr-details{
  width: 100%;
}

.dtr-details > li {
  display: flex;
  justify-content: space-between;
}

/* Allineamento generale del box */
.select2-container .select2-selection--single {
  height: calc(2.5rem + 2px); /* stessa altezza delle form-select */
  padding: 0.375rem 2.25rem 0.375rem 0.3rem; /* spazio per la freccia */
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 14px 10px; /* <-- dimensioni ridotte della freccia */
}

/* Testo allineato correttamente */
.select2-container .select2-selection__rendered {
  color: #212529;
  line-height: 1.5;
  padding: 0;
  margin-right: 1.5rem; /* spazio per la freccia */
}

/* Sposta la freccia a destra */
.select2-container .select2-selection__arrow {
  position: absolute;
  right: 0.75rem; /* distanza dal bordo destro */
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}

/* Optional: simula la freccia del select Bootstrap */
.select2-container .select2-selection__arrow b {
  border-color: #212529 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  display: inline-block;
  margin-left: 0;
}

/* Focus come Bootstrap */
.select2-container--focus .select2-selection {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
  outline: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000;
    line-height: 28px;
    font-size: 16px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

div.dt-container .dt-paging .dt-paging-button {
  padding: 15px 5px;
}

div.dt-container .dt-paging .dt-paging-button:hover {
  color: white !important;
  border-color: transparent;
  background: transparent !important;
}

div.dt-container .dt-paging .dt-paging-button:active {
  outline: none;
  background: transparent !important;
  box-shadow: unset !important;
}

table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order, table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order{
  top: calc(50% - 10px)!important;
}

th .dataTables_columnControl {
    float: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 999 !important;
}

.filter-trigger{
  position: absolute;
  right: 35px;
  top: 11px;
}

.dt-column-title{
  display: flex;
  justify-content: space-between;
}

.filter-trigger > i{
  color: #aaa;
}

.th-flex{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width: 100%;}
.filter-btn{border:0;background:transparent;cursor:pointer;padding:0}
.filter-btn i{color:#aaa}
.filter-btn.is-active i{color:#003b5c}

.custom-table-striped > tbody > tr:nth-of-type(2n+1) > * {
  --bs-table-bg-type: #fafafa;
}

.custom-table-striped tbody tr td, .table thead tr th {
  border-bottom: 1px solid #fafafa !important;
}

@media screen and (min-width: 1399px){

}

@media screen and (max-width: 1199px){

}

@media screen and (max-width: 991px){
  .nav-link-custom-preventivo{  
    min-height: 30px;
    height: auto;
    width: 100%;
  }
  #nav-tab > div.nav-preventivo {
    width: 100%;
  }
}

@media screen and (max-width:767px) {
  .sidebar {
      width: var(--width-menu);
      padding: 10px 5px !important;
  }
  .btn-dt {
    width: 100%;
  }
  .btn-dt-white {
    width: 100%;
  }
  .login-box {
    margin: 85px 0px!important;
  }
  .footer-box-1{
    white-space: normal;
  }
  .home-titolo{
    margin-bottom: 15px;
  }
  .wrapper {
    padding: calc(64px + 25px) 25px;
    min-height: calc(100vh - 59px - 64px);
    transition: 0.2s ease-in-out;
  }
  .nav-link-custom {
    min-height: 30px;
    height: auto;
  }
}

@media screen and (max-width: 575px) {
  #nav-icon3.open span:nth-child(2), #nav-icon3.open span:nth-child(3) {
    top: 12px!important;
  }
  #nav-tab > div{
    width: 100%;
  }
  .wrapper {
    padding: calc(64px + 20px) 20px;
    min-height: calc(100vh - 59px - 64px);
    transition: 0.2s ease-in-out;
  }
  .nav-link-custom {
    width: 100%;
    min-height: 35px;
    height: auto;
  }
  .row-fix-padding{
    padding: 5px 10px;
  }
  .btn-responsive{
    width: 100%;
    background: #003b5c !important;
    padding: 5px 15px;
    border-radius: 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  .btn-responsive > a{
    color: #fff;
  }
  .sidebar.collapsed {
    width: 0px;
  }
  .sidebar {
    padding: 0px !important;
    box-shadow: none;
  }
  .main-box {
    margin-left: 0px;
  }
  .content {
    margin-left: 0px;
    width: 100%;
  }
  .sidebar.collapsed ~ .toggle-btn {
    left: 25px;
  }
  .menu {
    padding: 0 10px;
  }
}


