
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(1,55,109,0.6);

    z-index: 999999;

    display: none;
}

#loader-bar {
    width: 0%;
    height: 4px;

    background: #007bff;

    box-shadow: 0 0 10px #007bff;

    transition: width 0.2s ease;
}

.bg-navy-custom {
  background-color: #002c59 !important;
}

.nav-link.active {
  background-color: #6396c9 !important;
    color: rgb(24, 24, 24) !important;
}

.dark-mode .select2-selection__choice {
  background-color: #002c59 !important;
}

.dark-mode .select2-search__field {
  color: #002c59 !important;
  background-color: #ffffff !important;
}

.small-box .big-number {
  font-size: 6rem; /* dimensione dei contatori dashboard */
  font-weight: 700; 
}

.big-text {
  font-size: 2rem !important; /* dimensione dei contatori dashboard */
  font-weight: 700 !important; 
}

.input-wrapper {
  position: relative;
}

.clear-input {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: #999;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1;
}

.clear-input:hover {
  color: #000;
}

/* Desktop */
@media (min-width: 768px) {
    .box-profile.row {
        height: 500px;
    }

    .box-profile > div[class*="col-"]{
        display: flex;
        justify-content: center;
        height: 100%;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .box-profile.row {
        height: auto;
    }
}


.box-profile ul{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}

.box-profile li{
    flex: 0 0 auto;
}

.box-profile li.scrollable{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* === Scrollbar moderna globale === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6c757d, #495057);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a6268, #343a40);
}

.navbar-icons {
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-icons .nav-item {
    display: flex;
    align-items: center;
}

.navbar-icons .nav-link {
    padding-left: 10px;
    padding-right: 10px;
}

.navbar-icons .navbar-brand {
    padding: 0;
    margin-left: 10px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .navbar-icons {
        margin-left: auto !important;
    }

    .navbar-icons .nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-body .small-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body .small-box .inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
