/*#region login page */

/*.loginAs-body {
    background-image: url('../DefaultImmage/loginAsImg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
    filter: blur(15px);
}

.container-loginAs {
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    left: 50%;
    padding: 12px 16px;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.box-loginAs {*/
    /* background-color: rgba(255, 255, 255, 0.3);*/
    /*border-radius: 5px;
    font-family: sans-serif;
    text-align: center;
    line-height: 1;*/
    /*-webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(15px);*/
    /*max-width: 100%;
    max-height: 100%;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    box-sizing: content-box;
}

.loginAs-subsection {
    min-height: 100px;
    height: 100%;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    font-size: large;
    font-family: "Apple Chancery", Regular;
}

.loginAs-subsection-text {
    min-height: 100px;
    height: 100%;
    width: 100%;
    flex-grow: 1;
    font-size: large;
    font-family: "Apple Chancery", Regular;
}

#backToHome, backToHomeProvider {
    font-weight: bold;
}

.avatar-loginAs {
    background-image: url('../DefaultImmage/userLoginAs.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    width: 200px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border: #fff 3px solid;
    box-shadow: rgba(0,0,0,0.4) 0px 2px 4px, inset rgba(0,0,0,0.4) 0px 3px 2px;
    overflow: hidden;
}*/

/*#endregion */

/*#region login page responsive */

.loginAs-body {
    background-image: url('../DefaultImmage/loginAsImg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
    filter: blur(15px);
}

.container-loginAs {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 12px 16px;
    z-index: 10;
}

.box-loginAs {
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    line-height: 1;
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid #3366cc;
}

.card-custom-style {
    width: 100%; /* riempie fino al max-width del container */
    max-width: 400px; /* larghezza massima della card */
    margin: 0 auto; /* centra la card */
}

.loginAs-subsection {
    min-height: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: large;
    font-family: "Apple Chancery", Regular;
}

.loginAs-subsection-text {
    width: 100%;
    font-size: large;
    font-family: "Apple Chancery", Regular;
}

.avatar-loginAs {
    background-image: url('../DefaultImmage/userLoginAs.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: #fff 3px solid;
    box-shadow: rgba(0,0,0,0.4) 0px 2px 4px, inset rgba(0,0,0,0.4) 0px 3px 2px;
    overflow: hidden;
    margin-bottom: 15px;
}



/* Pulsante login pił adattabile */
.dx-button {
    width: 100% !important; /* riempie la card su piccoli schermi */
    max-width: 220px;
}

/* Media Queries per schermi piccoli */
@media (max-width: 768px) {
    .container-loginAs {
        padding: 10px;
    }

    .box-loginAs {
        padding: 15px 20px;
    }

    .avatar-loginAs {
        height: 120px;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .container-loginAs {
        width: 95%;
    }

    .avatar-loginAs {
        height: 100px;
        width: 100px;
    }

    .dx-button {
        max-width: 100%;
    }
}

/*#endregion */


/*#region Menu aziende */

.form {
    display: flex;
}

    .form > div {
        display: inline-block;
        vertical-align: top;
    }

#treeviewDriveC,
#treeviewDriveD {
    margin-top: 10px;
}

.dx-treeview-item {
    box-sizing: border-box;
}

.drive-header {
    min-height: auto;
    padding: 0px;
    cursor: default;
}

.drive-panel {
    padding: 20px 30px;
    font-size: 115%;
    font-weight: bold;
    border-right: 1px solid rgba(165, 165, 165, 0.4);
    height: 100%;
}

    .drive-panel:last-of-type {
        border-right: none;
    }

.left_bar {
    max-width: 320px;
}
/*#endregion */

.shadow_custom {
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -o-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

/*#region navbar */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(51, 102, 204, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.app-navbar__inner {
    gap: 1rem;
}

.app-navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: fit-content;
    margin-right: 1.35rem;
    padding: 0;
    text-decoration: none;
}

#client-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    padding: 6px;
    background: #f7f9fc;
    border: 1px solid rgba(51, 102, 204, 0.12);
    box-shadow: 0 6px 18px rgba(26, 48, 92, 0.08);
}

.app-navbar__brand-text {
    color: #1d2b49;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
}

.app-navbar__collapse {
    gap: 1rem;
}

.app-navbar__links {
    align-items: center;
    gap: 0.25rem;
}

.app-navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 0.85rem !important;
    color: #33415f !important;
    border-radius: 10px;
    font-weight: 650;
    line-height: 1.15;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.app-navbar__link i {
    color: #396ace;
    font-size: 0.92rem;
}

.app-navbar__link:hover,
.app-navbar__link:focus {
    color: #1f55be !important;
    background: #eef4ff;
    transform: translateY(-1px);
}

.app-navbar__toggler {
    border: 1px solid rgba(51, 102, 204, 0.18);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
}

.app-navbar__toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(57, 106, 206, 0.16);
}

.login-partial {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.login-actions {
    align-items: center;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 1rem !important;
    color: #ffffff !important;
    background: #396ace;
    border-radius: 10px;
    font-weight: 750;
    box-shadow: 0 6px 16px rgba(57, 106, 206, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-link:hover,
.login-link:focus {
    background: #2957b7;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(57, 106, 206, 0.28);
}

@media only screen and (max-width: 575.98px) {
    .app-navbar {
        padding: 0.45rem 0;
    }

    .app-navbar__inner {
        gap: 0.75rem;
    }

    .app-navbar__brand-text {
        font-size: 1rem;
    }

    .app-navbar__collapse {
        margin-top: 0.45rem;
        padding-top: 0.55rem;
        padding-bottom: 0.45rem;
        border-top: 1px solid rgba(51, 102, 204, 0.1);
    }

    .app-navbar__collapse.collapsing {
        transition: none;
    }

    .app-navbar__links {
        align-items: stretch;
        gap: 0.35rem;
        margin-bottom: 0.35rem;
    }

    .app-navbar__link,
    .login-link {
        width: 100%;
        justify-content: flex-start;
    }

    .login-partial,
    .login-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
/*#endregion */

/*#region Slider */

.slider {
    position: relative;
    overflow: hidden;
}

.slider__wrapper {
    display: flex;
    width: 70vw;
    /*justify-content: space-between;*/
    transition: transform 0.6s ease;
}

.prev, .next {
    text-align: center;
    background-color: #f5f5f59e;
    border-radius: 50%;
    border: 2px black solid;
    z-index: 1;
    position: absolute;
    top: 30%;
    transition: 0.4s;
}



    .prev:hover, .next:hover {
        background-color: black;
        color: white !important;
    }

.next {
    right: 0;
}


.thumb {
    /*flex: 0 1;*/
    display: flex;
    flex-direction: column;
    width: 270px;
    /*height: 350px;*/
    box-sizing: content-box;
    box-sizing: border-box;
    /*    height: 100%;*/
    padding-bottom: 10px;
    min-width: 270px;
}

.thumb-header {
    margin-bottom: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    box-sizing: border-box;
    display: block;
    margin-bottom: 5px;
    padding: 0 10px;
    width: 100%;
    min-height: 120px;
}

.curved {
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.hover-img {
    z-index: 1;
    display: block;
    position: relative;
    overflow: hidden;
    max-width: 270px;
    max-height: 150px;
    background-color: red;
    min-height: 120px;
}

    .hover-img > img {
        max-width: 100%;
        max-height: 197px;
        height: 144px;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transition: all 0.8s;
        -moz-transition: all 0.8s;
        -o-transition: all 0.8s;
        transition: all 0.8s;
        min-width: 250px;
    }

.thumb:hover .hover-img > img, .thumb:focus .hover-img > img {
    -ms-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
}

.thumb:hover .hover-img:before, .thumb:focus .hover-img:before {
    display: block;
}

.thumb-caption {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-family: 'Open Sans', Tahoma, Arial, helvetica, sans-serif;
    font-size: smaller;
    /*line-height: 1.6em;*/
    font-weight: 400;
    box-sizing: border-box;
    padding: 0 13px;
}

.thumb-desc {
    margin-bottom: 0;
    margin-top: 6px;
    line-height: 1.5em;
}

.thumb-caption p {
    margin: 0 0 2px;
}

.thumb-caption a {
    text-decoration: none;
}

.thumb-caption h4 {
    padding-bottom: 0;
    margin-bottom: 0;
    font-weight: 700;
    color: #333;
    display: block;
    font-size: 18px;
    margin-bottom: 7px;
    line-height: 1.2;
}

.thumb-title {
    margin: 0;
    line-height: 1em;
}

/*#endregion */

/*#region badge notifiche */
/* --- CONTENITORE PRINCIPALE --- */
.user-nav-container {
    position: relative;
    display: inline-block;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- TRIGGER: ICONA + BADGE --- */
.user-trigger {
    position: relative;
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Squircle Style Icon */
.avatar-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #396ace 0%, #5e89e6 100%);
    border-radius: 12px; /* Look moderno 2026 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(57, 106, 206, 0.3);
}

.user-nav-container:hover .user-trigger,
.user-nav-container.is-open .user-trigger {
    transform: translateY(-2px) scale(1.05);
}

/* Badge Notifica in stile iOS */
.notif-pill {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #ff4d4f;
    color: white;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
    z-index: 2;
}

/* Animazione Pulse per il badge */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ff4d4f;
    border-radius: 10px;
    animation: badge-pulse 2s infinite;
    z-index: -1;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* --- DROPDOWN PERSONALIZZATO --- */
.modern-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 310px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Mostra il dropdown all'hover del contenitore */
.user-nav-container:hover .modern-dropdown,
.user-nav-container:focus-within .modern-dropdown,
.user-nav-container.is-open .modern-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Header del Dropdown (Email) */
.dropdown-user-info {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 15px;
    padding-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Righe del Menu */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

    .menu-item:hover {
        transform: translateX(6px);
        filter: brightness(0.97);
    }

/* Varianti colori righe */
.item-blue {
    background: #f0f7ff;
    color: #007bff;
}

.item-amber {
    background: #fff9db;
    color: #856404;
}

.item-cyan {
    background: #e7f5ff;
    color: #0c85d0;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .item-left i {
        font-size: 1.1rem;
        width: 22px;
        text-align: center;
    }

.item-label {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Pillola contatore interna */
.pill-count {
    background: white;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

/* Footer: Logout */
.menu-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f2f2f2;
}

.logout-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #ff4d4f;
    font-weight: 700;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
}

    .logout-action:hover {
        opacity: 0.7;
    }

/* Freccetta in alto al dropdown */
.modern-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
}
@media only screen and (max-width: 575.98px) {
    .user-nav-container {
        width: 100%;
    }

    .user-trigger {
        margin-left: 0.85rem;
        transition: none;
    }

    .user-nav-container:hover .user-trigger,
.user-nav-container.is-open .user-trigger {
        transform: none;
    }

    .modern-dropdown {
        left: 0.85rem;
        right: auto;
        width: min(310px, calc(100vw - 2rem));
    }

    .modern-dropdown::before {
        left: 15px;
        right: auto;
    }
}/*#endregion */


.dx-textarea {
    transition: height 1.0s ease-in-out;
}

.dx-checkbox-icon {    
    border-radius: 2px;
    border: 1px solid #010101!important;
    background-color: whitesmoke!important;
}

.dx-checkbox.dx-state-hover .dx-checkbox-icon {
    border: 1px solid #3366cc !important;
}

.dx-checkbox.dx-state-focused .dx-checkbox-icon {
    border: 1px solid #3366cc !important;
}

#evasa_btn {
    background: lightgreen;
}

#evasa_no_resp_btn {
    background: #81D4FA;
}

#segnalata_btn {
    background: lightcoral;
}

#inLavorazione_btn {
    background: #FFF59D;
}

/* MODAL */
/* BACKDROP */
.modal-backdrop.show {
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.65);
}

.soft-modal {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* BODY */
.modal-body {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* IMAGE */
.preview-image {
    max-height: 80vh;
    border-radius: 20px;
    transition: all .35s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    opacity: 0;
    transform: scale(.96);
}

    .preview-image.show-image {
        opacity: 1;
        transform: scale(1);
    }

/* LOADER */
.loader-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soft-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
