html {height:100%}
body {min-height:100%;}
#ajax_loader {z-index:9999;background:rgba(0, 0, 0, 0.9);display:flex}
#ajax_loader i {font-size:100px}
#content {overflow:hidden}
.main_container {min-width:350px;margin-top: 15px;}
.card-body {padding:15px}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


/* Pagine normali con navbar + sidebar */
.app-page {
    margin-left: 250px;
    margin-top: 80px;
}
.content-expanded {
    margin-left: 0 !important;
}

.sidebar-toggle-btn {
    border-radius: 15px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar {
    width: 250px;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px; /* sotto la navbar */
    background: #faffff;
    border-right: 1px solid #e5e5e5;
    padding: 20px 0px;
    overflow-y: auto;
    z-index: 2000;
    transition: transform 0.3s ease-in-out;
}

.sidebar-hidden {
    transform: translateX(-260px);
}

/* Stile base per tutti i link */
.sidebar .nav-link {
    color: #333;
    padding: 12px 15px;
}

/* Solo i dropdown hanno layout "testo + icona" */
.sidebar .nav-link.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .nav-link:hover {
    background: #f1f1f1;
}

.sidebar .nav-link.active {
    background: #e9f4f5;
    font-weight: 700;
    color: #025d7d !important;
}

/* Child indentati + bordino sinistro */
.dropdown-menu-static {
    display: none;
    background: #f8f9fa;
    border-left: 2px solid #198754;
    padding-left: 15px;
    margin-left: 20px!important;
}

.dropdown-menu-static.show {
    display: block;
}

/* Link dei child */
.dropdown-menu-static .dropdown-item {
    padding: 10px 10px 10px 20px;
    color: #555;
}

.dropdown-menu-static .dropdown-item:hover {
    background: #e9f5e9;
    color: #198754;
}

.dropdown-menu-static .dropdown-item.active {
    background: #e9f5e9;
    color: #198754;
}

/* Rimuove i pallini */
.sidebar ul,
.sidebar li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}


.btn-circle {border-radius:100%;padding-left:0;padding-right:0;width:38px;height:38px}
.btn-circle.btn-lg {width:48px;height:48px}
.btn-circle.btn-sm {width:31px;height:31px}


.custom_card {transition: transform .15s ease, box-shadow .15s ease;}
.custom_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.active_badge {
    position:absolute;
    top: 20px;
    right: 15px;
}

@media (max-width: 768px) {
  #mainContent {margin-left: 0 !important;}
}

@media (min-width: 1500px) {
  .container {max-width: 1200px;}
}

@media (min-width: 1700px) {
  .container {max-width: 1360px;}
}

@media (min-width: 1200px){
  .modal-xl {max-width: 1040px!important;}
}
@media (min-width: 992px){
  .modal-xl {max-width: 800px;}
}