﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 89%;
    background-color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

#menutitle {
    text-align: center;
    font-size: 2.2em;
    color: black;
    width: 100%;
    
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
.user-circle {
    width: 28px;
    height: 28px;
    background-color: #545454;
    border-radius: 50%;
    display: flex;
    align-items: center;
    margin-left: -5px; /* sposta a sinistra */
    justify-content: center;
    flex-shrink: 0; /* 🔥 QUESTA RISOLVE */
}

    .user-circle i {
        color: white;
        font-size: 14px;
    }

.user-name {
    font-size: 12px;
    font-weight: 400;
}

.user-action {
    font-size: 12px;
    color: #ccc;
    margin-left: 38px; /* allinea sotto il nome utente */
}

.user-logout {
    font-size: 12px;
    margin-left: 38px; /* stesso allineamento di Gestisci Account */
    padding-left: 0;
    display: block;
    text-decoration: none;
 
    transition: color 0.2s;
}

    .user-logout:hover {
        color: #ff4d4d; /* rosso più intenso al passaggio del mouse */
        cursor: pointer;
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: none;
    outline: none;
}

/* Rimuove le frecce negli input numerici con la classe no-spinner */
input.no-spinner::-webkit-outer-spin-button,
input.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.no-spinner {
    -moz-appearance: textfield; /* Rimuove le frecce in Firefox */
}
     

/*.btn:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    outline: none;
}*/

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
/* Tab Navigation*/
.login-logout-card .card-header {
    padding: 0px 0px 12px 0px;
}

.login-logout-card ul.nav-tabs {
    margin: 0px 0px -12px 0px;
}

.login-logout-card li.nav-item {
    width: 50%;
}

.login-logout-card a.nav-link {
    font-size: 1rem;
    color: #495057;
    text-align: center;
    padding: 1rem;
}

.login-logout-card .card-body {
    padding: 10px 20px;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #1A1C1E;
    backdrop-filter: blur(6px);
    transition: width 0.3s;
    overflow-x: hidden;
    overflow-y: hidden;
    z-index: 1000;
    border-right: 1px solid rgba(0, 0, 0, 0.1); /* Bordo sottile sulla destra */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Leggera ombra */
}

    #sidebar.collapsed {
        width: 50px;
    }

        #sidebar.collapsed ~ .page-header {
            left: 0px;
            width: calc(100% - 40px);
        }

.menuline {
    color: white;
}


.red {
    color: red  ;
}
.violet {
    color: blueviolet !important;
}


.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background-color: #1A1C1E;
    height: 55px;
    border-right: 1px solid rgba(0, 0, 0, 0.1); /* Bordo sottile sulla destra */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Bordo sottile sulla destra */
    box-shadow: 12px 0 15px rgba(0, 0, 0, 0.1); /* Leggera ombra */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#sidebar.collapsed #pin-icon {
    transform: rotate(90deg);
    position: fixed;
    left: 30px;
}

.pin-toggle {
    cursor: pointer;
    font-size: .85rem;
    margin-right: 4px;
    color:white;
}

.pin-icon {
    margin-right: -12px; /* Distanza dal bordo destro */
    margin-top: -35px; /* Distanza dal bordo superiore */

    color: white;
    transition: transform 0.5s ease;
    font-size: 0.65rem;
    cursor: pointer;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}

.app-name {
    font-weight: bold;
    font-size: 1rem;
    color: white;
    white-space: nowrap;
}
/*
    #sidebar.collapsed:hover {
      width: 250px;
	  
    }*/

#sidebar.collapsed .app-name {
    display: none;
}

.app-logo {
    display: none;
    position: fixed;
    top: 30px;
    width: 20px;
    height: 20px;
}

#sidebar.collapsed .app-logo {
    display: inline-block;
}

.available {
    background: darkgray;
    font-weight: bold;
    font-size: 1rem;
    padding: 4px 8px;
    justify-content: space-between;
    border-radius: 3px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* ombra verso destra e in basso */
}
/*.currentformmodal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

    .currentformmodal .modal-dialog {
        margin: 0;  
        z-index: 20001;  
    }

.modal-backdrop.show {
    z-index: 19999;  lo sfondo deve stare dietro alla modale 
}*/


#modalform {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050; /* default Bootstrap modale */
    pointer-events: auto; /* fondamentale per interazione con i figli */
}



.H2Caption {
    background: rgb(65,119,173);
    color: white;
    font-weight: normal !important;
    font-size: 0.8rem !important;
    padding: 4px 8px;
    justify-content: space-between;
    border-radius: 3px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* ombra verso destra e in basso */
    border-top: 4px;
    border-bottom: 4px;
}

/*.H3Caption {
    background:  rgb(136, 101, 183); 
    color: white;
    font-weight: normal !important;
    font-size: 0.8rem !important;
    padding: 4px 8px;
    justify-content: space-between;
    border-radius: 3px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);*/ /* ombra verso destra e in basso */
    /*border-top: 4px;
    border-bottom: 4px;
}*/
.menu-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
    padding: 4px 8px;
    background: darkgray;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 3px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* ombra verso destra e in basso */
}

.nav-link {
    font-size: 0.7rem; /* Riduce la dimensione del font */
    display: flex;
    align-items: center;
    gap: 5px;
    padding: .35rem .8rem;
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: orange;
    }

        .nav-link:hover::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: orange; /* colore barretta laterale sinistra*/
        }

.submenu {
    padding-left: 2rem;
    list-style: none;
    margin: 0;
}

#sidebar.collapsed .submenu {
    display: none !important;
}

#sidebar.collapsed .nav-link span {
    display: none;
}

.nav-link-toggle::after {
    content: '\25BC';
    margin-left: auto;
    transition: transform .3s;
}

.nav-link-toggle.collapsed::after {
    transform: rotate(-90deg);
}

#sidebar.collapsed .nav-link-toggle::after {
    display: none;
}

.custom-tooltip.bs-tooltip-end .tooltip-inner {
    background-color: rgba(0, 123, 255, 0.95);
    color: #fff;
    font-size: .85rem;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    text-align: left;
}

.page-header {
    margin: 0;
    top: 0px;
    position: fixed;
    margin-left: 250px;
    width: calc(100% - 250px);
    height: 55px;
    background: rgba(248, 249, 250);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between; /* Aggiungi questa riga per distribuire gli elementi */
    transition: margin-left 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index:10000;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

#username {
    font-weight: bold;
}

#logout-btn {
    margin-left: 10px;
}

.logout-icon {
    font-size: 1.2rem;
    margin-left: 10px;
    cursor: pointer;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}


.block, show {
    display: block !important;
}

.hide {
    display: none !important;
}
.pinsel-icon {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 4px;
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.2));
}
.pinsel-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* per Safari */
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Stile base con piccola ombra */
.logout-icon, .pin-icon {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}

    /* Effetto vetro al passaggio del mouse */
    .logout-icon:hover, .pin-icon:hover {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px); /* per Safari */
        box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
    }

#sidebar.collapsed ~ .page-header {
    margin-left: 50px;
}

.page-content {
   
    margin-left: 250px;
    margin-top: 55px;
    padding: 20px;
    transition: margin-left 0.3s;
}

#sidebar.collapsed ~ .page-content {
 
    margin-left: 60px !important;
}

.menu-list {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(44, 123, 255, 0.7) rgba(100, 0, 0, 0.1); /* Firefox */
    overflow-y: auto; /* Aggiungi scroll verticale se necessario */
    max-height: calc(100vh - 55px);
    padding: 0;
    margin-top: 10px;
}

    /* Nascondi le frecce della scrollbar in Webkit (Chrome, Safari) */
    .menu-list::-webkit-scrollbar {
        width: 8px;
    }

    .menu-list::-webkit-scrollbar-thumb {
        background-color: rgba(44, 123, 255, 0.7);
        border-radius: 4px;
    }

    .menu-list::-webkit-scrollbar-track {
        background: rgba(100, 0, 0, 0.1);
    }

    .menu-list::-webkit-scrollbar-button {
        display: none; /* Nascondi le frecce */
    }

.nav-link.active {
    /* background-color: #ffcccc !important; */
    color: orange !important;
}
.lds-facebook {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}

    .lds-facebook div {
        display: inline-block;
        position: absolute;
        left: 8px;
        width: 16px;
        background: #888;
        animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
    }

        .lds-facebook div:nth-child(1) {
            left: 8px;
            animation-delay: -0.24s;
        }

        .lds-facebook div:nth-child(2) {
            left: 32px;
            animation-delay: -0.12s;
        }

        .lds-facebook div:nth-child(3) {
            left: 56px;
            animation-delay: 0;
        }

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }

    50%, 100% {
        top: 24px;
        height: 32px;
    }
}


/****************************/
/** Basic **/
/****************************/
.pa-0 {
    padding: 0px !important;
}

.pa-5 {
    padding: 5px !important;
}

.pa-10 {
    padding: 10px !important;
}

.pa-15 {
    padding: 15px !important;
}

.pa-20 {
    padding: 20px !important;
}

.pa-25 {
    padding: 25px !important;
}

.pa-30 {
    padding: 30px !important;
}

.pt-0 {
    padding-top: 0px !important;
}

.pt-5 {
    padding-top: 5px !important;
}

.pt-10 {
    padding-top: 10px !important;
}

.pt-15 {
    padding-top: 15px !important;
}

.pt-20 {
    padding-top: 20px !important;
}

.pt-25 {
    padding-top: 25px !important;
}

.pt-30 {
    padding-top: 30px !important;
}

.pt-35 {
    padding-top: 35px !important;
}

.pt-40 {
    padding-top: 40px !important;
}

.pt-45 {
    padding-top: 45px !important;
}

.pt-50 {
    padding-top: 50px !important;
}

.pb-0 {
    padding-bottom: 0px !important;
}

.pb-5 {
    padding-bottom: 5px !important;
}

.pb-10 {
    padding-bottom: 10px !important;
}

.pb-15 {
    padding-bottom: 15px !important;
}

.pb-20 {
    padding-bottom: 20px !important;
}

.pb-25 {
    padding-bottom: 25px !important;
}

.pb-30 {
    padding-bottom: 30px !important;
}

.pb-35 {
    padding-bottom: 35px !important;
}

.pb-40 {
    padding-bottom: 40px !important;
}

.pb-45 {
    padding-bottom: 45px !important;
}

.pb-50 {
    padding-bottom: 50px !important;
}

.pl-0 {
    padding-left: 0px !important;
}

.pl-5 {
    padding-left: 5px !important;
}

.pl-10 {
    padding-left: 10px !important;
}

.pl-15 {
    padding-left: 15px !important;
}

.pl-20 {
    padding-left: 20px !important;
}

.pl-25 {
    padding-left: 25px !important;
}

.pl-30 {
    padding-left: 30px !important;
}

.pl-35 {
    padding-left: 35px !important;
}

.pl-40 {
    padding-left: 40px !important;
}

.pl-45 {
    padding-left: 45px !important;
}

.pl-50 {
    padding-left: 50px !important;
}

.pr-0 {
    padding-right: 0px !important;
}

.pr-5 {
    padding-right: 5px !important;
}

.pr-10 {
    padding-right: 10px !important;
}

.pr-15 {
    padding-right: 15px !important;
}

.pr-20 {
    padding-right: 20px !important;
}

.pr-25 {
    padding-right: 25px !important;
}

.pr-30 {
    padding-right: 30px !important;
}

.pr-35 {
    padding-right: 35px !important;
}

.pr-40 {
    padding-right: 40px !important;
}

.pr-45 {
    padding-right: 45px !important;
}

.pr-50 {
    padding-right: 50px !important;
}

.ma-0 {
    margin: 0px !important;
}

.ma-5 {
    margin: 5px !important;
}

.ma-10 {
    margin: 10px !important;
}

.ma-15 {
    margin: 15px !important;
}

.ma-20 {
    margin: 20px !important;
}

.ma-25 {
    margin: 25px !important;
}

.ma-30 {
    margin: 30px !important;
}

.mt-0 {
    margin-top: 0px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-25 {
    margin-top: 25px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-35 {
    margin-top: 35px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-45 {
    margin-top: 45px !important;
}

.mt-50 {
    margin-top: 50px !important;
}

.mt-55 {
    margin-top: 55px !important;
}

.mt-60 {
    margin-top: 60px !important;
}

.mt-65 {
    margin-top: 65px !important;
}

.mt-70 {
    margin-top: 70px !important;
}

.mt-75 {
    margin-top: 75px !important;
}

.mt-80 {
    margin-top: 80px !important;
}

.mt-85 {
    margin-top: 85px !important;
}

.mt-90 {
    margin-top: 90px !important;
}

.mt-95 {
    margin-top: 95px !important;
}

.mb-0 {
    margin-bottom: 0px !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mb-35 {
    margin-bottom: 35px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mb-45 {
    margin-bottom: 45px !important;
}

.mb-50 {
    margin-bottom: 50px !important;
}

.mb-55 {
    margin-bottom: 55px !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.mb-65 {
    margin-bottom: 65px !important;
}

.mb-70 {
    margin-bottom: 70px !important;
}

.mb-75 {
    margin-bottom: 75px !important;
}

.mb-80 {
    margin-bottom: 80px !important;
}

.mb-85 {
    margin-bottom: 85px !important;
}

.mb-90 {
    margin-bottom: 90px !important;
}

.mb-95 {
    margin-bottom: 95px !important;
}

.ml-0 {
    margin-left: 0px !important;
}

.ml-5 {
    margin-left: 5px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.ml-15 {
    margin-left: 15px !important;
}

.ml-20 {
    margin-left: 20px !important;
}

.ml-25 {
    margin-left: 25px !important;
}

.ml-30 {
    margin-left: 30px !important;
}

.ml-35 {
    margin-left: 35px !important;
}

.ml-40 {
    margin-left: 40px !important;
}

.ml-45 {
    margin-left: 45px !important;
}

.ml-50 {
    margin-left: 50px !important;
}

.ml-55 {
    margin-left: 55px !important;
}

.ml-60 {
    margin-left: 60px !important;
}

.ml-300 {
    margin-left: 300px !important;
}

.mr-0 {
    margin-right: 0px !important;
}

.mr-5 {
    margin-right: 5px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.mr-15 {
    margin-right: 15px !important;
}

.mr-20 {
    margin-right: 20px !important;
}

.mr-25 {
    margin-right: 25px !important;
}

.mr-30 {
    margin-right: 30px !important;
}

.mr-35 {
    margin-right: 35px !important;
}

.mr-40 {
    margin-right: 40px !important;
}

.mr-45 {
    margin-right: 45px !important;
}

.mr-50 {
    margin-right: 50px !important;
}

.mr-55 {
    margin-right: 55px !important;
}

.mr-60 {
    margin-right: 60px !important;
}

.mr-300 {
    margin-right: 500px !important;
}

.ml-auto {
    margin-left: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}










/* login */


.main-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    position: relative;
    width: 45%;
    min-width: 350px;
    background: linear-gradient(180deg, #2f4f4f, #4caf50); /* Verde scuro e verde brillante */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.3); /* Bordo a destra */
    box-shadow: 3px 0 5px rgba(0, 0, 0, 0.2); /* Ombra a destra */
}


    .sidebar .content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 2rem;
    }

    .sidebar img {
        height: 60px;
        margin-bottom: 1rem;
    }

    .sidebar h1 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .sidebar p {
        font-size: 1rem;
        opacity: 0.85;
    }

/* Onde sinusoide e coseno */
.sine-wave, .cosine-wave {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.sine-path, .cosine-path {
    fill: none;
    stroke-width: 6;
    animation: moveSineCosine 6s ease-in-out infinite;
}

.sine-path {
    stroke: #b2dfdb; /* Verde chiaro */
}

.cosine-path {
    stroke: #388e3c; /* Verde intenso */
}

@keyframes moveSineCosine {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f9f9f9;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 420px;
    animation: fadeIn 1s ease-in-out;
}

/*.form-control {
    border-radius: 8px;
    background-color: #eee;
    border: 1px solid #ccc;
}
*/
    ./*form-control:focus {
        border-color: #666;
        box-shadow: 0 0 0 0.2rem rgba(100, 100, 100, 0.1);
    }*/

.btn-primary {
    background-color: #555;
    border-color: #555;
}

    .btn-primary:hover {
        background-color: #444;
    }

.text-center a {
    font-size: 0.9rem;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 250px;
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }

    .sine-wave, .cosine-wave {
        display: none;
    }

    .login-section {
        padding-top: 0;
    }
}










/* DATTABLEJS*/

.dataTables_buttonbar {
    background-color: darkgray;
    border-radius: 3px;
    margin-bottom: 3px;
    height: 30px;
    width: 200px; /* puoi regolare larghezza */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* ombra verso destra e in basso */
}

    .dataTables_buttonbar button:hover {
        color: orange;
    }

.dataTable thead th {
    position: sticky;
    top: 0;
    background-color: rgba(128, 128, 128, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #212529;
    font-weight: 600;
    z-index: 2;
    padding: 0.75rem;
    /* bordo outset classico */
    border: 2px outset rgba(120, 120, 120, 0.7);
    /* opzionale: ombra interna per maggior profondità */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.3), inset -1px -1px 3px rgba(0, 0, 0, 0.15);
}


/* Contenitore filtro posizione relativa per posizionare l'icona */
.dataTables_filter {
    position: relative;
    width: 300px; /* puoi regolare larghezza */
}

    /* Stile input search con padding-left per spazio icona */
    .dataTables_filter input[type="search"] {
        width: 100%;
        padding-left: 7.5rem; /* spazio per icona */
        height: 1.7rem;
        border-radius: 0.25rem;
        border: 1px solid #ced4da;
        font-size: 0.8rem;
    }

    /* Icona lente posizionata */
    .dataTables_filter::before {
        content: "\f002"; /* Unicode FontAwesome lente */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        left: 70px; /* distanza da sinistra */
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        pointer-events: none; /* cursore testo su tutta la input */
        font-size: 1rem;
        user-select: none;
    }

.btn-custom {
    border-radius: 0.25rem;
    border: 1px solid lightgray;
    margin-top: 2px;
    margin-left: 2px;
    width: 25px; /* Riduce la larghezza */
    height: 25px; /* Riduce l'altezza */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-customExport {
    font-weight: normal;
    font-size: 0.7rem;
    margin: 1px;
    padding: 2px; 
}

.custom-input {
    padding-left: 0.5rem !important; /* spazio per lente */
    width: 18% !important; /* larghezza personalizzata più piccola */
    min-width: 200px; /* larghezza minima (opzionale) */
    margin-left: 5.7rem !important
}


.dataTable td,
.dataTable th {
    font-size: 0.75rem;
    padding: 0.2rem 0.3rem;
    line-height: 0.95;
}


div.dataTables_wrapper div.dataTables_info {
    padding-top: 0em;
}

.dataTables_wrapper .dataTables_info {
    clear: both;
    float: left;
    padding-top: 0.755em;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 0.15em;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        box-sizing: border-box;
        display: inline-block;
        min-width: 1em;
        padding: 0.3em 0.3em !important;
        margin-left: 1px;
        text-align: center;
        text-decoration: none !important;
        cursor: pointer;
        *cursor: hand;
        color: #333 !important;
        border: 1px solid transparent;
        border-radius: 2px;
        margin-top: -100px !important;
    }



.filter-icon {
    cursor: pointer;
    margin-right: 5px;
    color: #6c757d;
    position: relative;
    user-select: none;
}

.dt-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}


.filter-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    z-index: 31050;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border-radius: 0.25rem;
    display: none;
    top: 30px;
    left: 0;
}

.docker-body.filter-dropdown {
    overflow: visible;
}

.filter-dropdown.show {
    display: block;
}

.panel-header-keepup {
    background-color: #0d6efd !important;
    color: white !important;
}

    .panel-header-keepup h5 {
        color: white !important;
        margin: 0; /* rimuove margini di default di h5 */
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* ombra nera leggera */
    }


.user-dropdown-menu {
    background-color: #f8f9fa; /* sfondo chiaro */
    border-radius: 0.5rem; /* bordi arrotondati */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* ombra delicata */
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-menu.show.user-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
}




#sidebar {
    display: flex;
    flex-direction: column;
}

/* Il menu occupa tutto lo spazio disponibile */
.menu-list {
    flex: 1;
    overflow-y: auto;
}

/* Footer sempre in fondo */
.sidebar-footer {
    padding: 10px;
    color: white;
}

/* Linea separazione */
.menu-separator {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 8px;
}

/* Box utente */
.user-box {
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.85;
}


/* Laader */

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

    .loader div {
        width: 10px;
        height: 10px;
        background-color: #0d6efd;
        border-radius: 50%;
        animation: loaderAnim 1s infinite ease-in-out;
    }

        .loader div:nth-child(1) {
            animation-delay: 0s;
        }

        .loader div:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loader div:nth-child(3) {
            animation-delay: 0.4s;
        }


@keyframes loaderAnim {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #0d6efd;
    background: #e8f0fe;
    border: 1px solid #c2d4fb;
    border-radius: 10px;
    padding: 1px 6px;
    flex-shrink: 0;
    cursor: default;
}

    .doc-badge i {
        font-size: 10px;
    }