﻿/*
   ------------------------------------
    Project:    GMV_Project
    Author:     Mauriizo Carbonaro
    Update:     2025/03/24
    Version:    1.0.1 
   ------------------------------------
*/
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


/* Header su più righe SOLO per AvvisiApertiGrid */
#AvvisiApertiGrid .e-headercell .e-headertext,
#AvvisiApertiGrid .e-headercell .e-headercelldiv,
#AvvisiApertiGrid .e-gridheader th.e-headercell > div,
#AvvisiApertiGrid .e-gridheader th.e-headercell span {
    white-space: normal !important;
    height: auto !important;
    line-height: 1.15 !important;
}

#AvvisiApertiGrid .e-gridheader thead tr {
    height: auto !important;
}

/* Badge SOLO per la colonna Totali */
#AvvisiApertiGrid .avv-tot {
    display: inline-block;
    min-width: 2.6rem;
    text-align: right;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

/* verde: tutto eseguito */
#AvvisiApertiGrid .avv-tot-ok {
    color: #198754;
    background: rgba(25,135,84,.12);
}

/* arancio: c'è lavorazione */
#AvvisiApertiGrid .avv-tot-wip {
    color: #fd7e14;
    background: rgba(253,126,20,.14);
}

/* rosso: ci sono aperti */
#AvvisiApertiGrid .avv-tot-open {
    color: #dc3545;
    background: rgba(220,53,69,.14);
}

/* ================== BASE ================== */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;

}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ================== ERROR UI ================== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ================== LOADER ================== */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}


/* ==== Fix centraggio testo cerchio di caricamento Blazor ==== */
/*.loading-progress {
    position: relative;
    display: inline-block;
    width: 8rem;
    height: 8rem;
}*/

/* centra perfettamente il testo dentro il cerchio */
/*.loading-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}*/


/* ================== SYNCFUSION TWEAKS ================== */
.e-grid .e-rowcell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spinner */
/*.custom-spinner.e-spinner-pane .e-spinner-inner {
    width: 80px !important;
    height: 80px !important;
}

    .custom-spinner.e-spinner-pane .e-spinner-inner svg {
        width: 100% !important;
        height: 100% !important;
    }

.custom-spinner.e-spinner-pane .e-path-circle {
    stroke-width: 4px !important;
}
*/
.custom-spinner .e-spinner-label {
    font-size: 1.1rem !important;
    margin-top: 10px;
    text-align: center;
}

/* Toast centrato */
.e-toast-container.custom-toast-center {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
}

.custom-toast-center .e-toast {
    font-size: 1.2rem;
    text-align: center;
    padding: 1.2rem;
    min-width: 250px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 8px;
}

/* SfDialog stile MsgBox */
.msgbox-style .e-dlg-content {
    font-size: 1.1rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.msgbox-style .e-footer-content {
    text-align: center;
}

.msgbox-style .e-dlg-header {
    font-weight: bold;
    text-align: center;
}

/* Loader overlay iniziale */
.loader-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
}

/* ================== MENU NAV (SIDEBAR) ================== */
/* NB: rimosse le REGOLE GLOBALI .nav-link — ora scopo SOLO la sidebar */

/* Layout compatto e allineato */
#mainNav .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: .38rem .75rem !important;
    line-height: 1.15 !important;
    font-size: 0.95rem !important;
    color: rgba(255,255,255,.92);
    font-weight: 500;
    border-radius: .5rem;
    transition: background .15s ease, color .15s ease;
}

    #mainNav .nav-link:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
    }

    #mainNav .nav-link.active {
        background: rgba(255,255,255,.18);
        color: #fff;
        font-weight: 700;
    }

    #mainNav .nav-link i {
        width: 1.25rem !important;
        text-align: center !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        transform: translateY(1px);
    }

    #mainNav .nav-link span {
        line-height: 1.15 !important;
        display: inline-block;
        font-size: 1rem !important;
    }

/* Sezioni (es. SECE) */
#mainNav .menu-section {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: .5rem;
    padding: .38rem .75rem;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .9;
    background: transparent;
    border: none;
    width: 100%;
    color: #fff;
    cursor: pointer;
    text-align: left !important;
}

    #mainNav .menu-section i {
        width: 1.25rem;
        text-align: center;
        font-size: 1.05rem;
        line-height: 1;
        transform: translateY(1px);
    }

    #mainNav .menu-section::after {
        content: '▸';
        margin-left: auto;
        transition: transform .2s ease;
        opacity: .7;
    }

    #mainNav .menu-section.open::after {
        transform: rotate(90deg);
    }

/* Sotto-voci */
#mainNav .nav-section > .nav {
    margin-top: .15rem;
    padding-left: .75rem;
}

    #mainNav .nav-section > .nav .nav-link {
        padding: .32rem .75rem;
    }

/* ================== LAYOUT MODERNO (TOPBAR + SHELL) ================== */
:root {
    --navbar-h: 56px; /* altezza topbar */
    --sidebar-w: 240px; /* larghezza sidebar */
    --content-bg: #ffffff; /* sfondo contenuto */
}

/* Compensa la fixed-top navbar */
/*body {
    padding-top: var(--navbar-h);
}*/

/* Topbar chiara e sottile (usa .navbar.fixed-top nel markup) */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 .125rem .5rem rgba(0,0,0,.06);
}

/* Shell: sidebar + contenuto */
.app-shell {
    display: flex;
    min-height: calc(100vh - var(--navbar-h));
}

/* Sidebar a sinistra */
.app-sidebar {
    width: var(--sidebar-w);
    min-height: calc(100vh - var(--navbar-h));
    position: sticky;
    top: var(--navbar-h);
    overflow: auto;
    /* gradiente */
    background: linear-gradient(180deg, #0c1a3a 0%, #243b6b 100%);
    padding: .5rem .5rem 1rem;
}

/* Contenuto */
.app-content {
    flex: 1;
    background: var(--content-bg);
    padding: 1rem 1.25rem;
}

/* Testo sezione/descrizioni nella sidebar */
#mainNav .nav-section-title,
#mainNav .text-light-50 {
    color: rgba(255,255,255,.65) !important;
}

/* Dropdown utente allineato a destra nella topbar */
.navbar .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --sidebar-w: 220px;
    }
}



/* ==== RESET loader iniziale Blazor ==== */
#app {
    position: static !important;
    min-height: auto !important;
    display: block !important;
}

    /* il cerchio rimane centrato orizzontalmente */
    #app .loading-progress {
        position: static !important;
        display: block !important;
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important; /* centra orizzontalmente */
    }

    /* il testo VA SOTTO al cerchio, centrato */
    #app .loading-progress-text {
        position: static !important;
        display: block !important;
        text-align: center !important;
        margin-top: .5rem !important;
        font-weight: 600;
    }






/* === Loader Blazor: centratura perfetta === */
#app {
    min-height: 100vh; /* assicura un'area piena per il posizionamento */
    position: relative;
}

    #app .loading-progress {
        /* centra lo SVG nello schermo */
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        /* dimensioni consigliate (puoi adattare) */
        width: 120px !important;
        height: 120px !important;
        display: block;
    }

        #app .loading-progress circle {
            fill: none;
            stroke: #e0e0e0;
            stroke-width: 6;
        }

            #app .loading-progress circle:last-child {
                stroke: #4a90e2; /* colore dell’anello “attivo” */
                stroke-linecap: round;
                stroke-dasharray: 80 200;
                animation: blz-spin 1.4s linear infinite;
            }

@keyframes blz-spin {
    to {
        transform: rotate(360deg);
    }
}

#app .loading-progress-text {
    /* centra il numero esattamente sopra lo SVG */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* sopra lo svg */
    z-index: 2;
    /* stile numero */
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .5px;
    pointer-events: none;
    color: #222;
}

/* Se usi Bootstrap/Syncfusion che impongono stili strani sugli svg/div,
   queste righe tengono “pulito” il loader. */
#app .loading-progress,
#app .loading-progress-text {
    margin: 0 !important;
    padding: 0 !important;
}




/* GLOBALI – vanno bene per tutta l’app */

html {
    height: 100%;
}

body {
    margin: 0;
}


/* === Login pulita e compatta === */
/* LOGIN: occupa sempre tutto il viewport, sopra qualsiasi padding/margine del layout */
.login-shell {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: auto; /* se la card diventasse alta su schermi piccoli, scrolla */
    z-index: 1; /* sopra eventuali sfondi del layout */
}

.login-card {
    width: 340px;
    border-radius: 10px;
}

/* icona mostra/nascondi */
.position-relative .toggle-pass {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* niente sfondo */
    border: none; /* elimina bordo */
    padding: 0; /* elimina spazi interni */
    line-height: 1;
    cursor: pointer;
}

    .position-relative .toggle-pass i {
        font-size: 1.1rem;
        color: #6c757d; /* grigio neutro come placeholder */
    }

    .position-relative .toggle-pass:hover i {
        color: #000; /* più scuro al passaggio mouse */
    }

/* wrapper solo intorno all'input */
.input-with-toggle {
    position: relative;
}

    .input-with-toggle .toggle-pass {
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 2rem;
        cursor: pointer;
    }

        .input-with-toggle .toggle-pass i {
            font-size: 1.1rem;
            color: #6c757d;
            transition: color 0.15s ease;
        }

        .input-with-toggle .toggle-pass:hover i {
            color: #000;
        }


/* su schermi piccoli, mantiene tutto centrato e leggibile */
@media (max-width: 480px) {
    .login-card {
        max-width: 92vw;
    }
}

/* Applica lo spazio solo ai layout con topbar */
.app-content-with-topbar { /* padding-top: var(--navbar-h); */}


/* stop al padding globale del body */
body {
    padding-top: 0 !important;
}

/* La topbar è fixed, quindi al contenuto serve spazio sopra */
.app-shell {
    padding-top: var(--navbar-h);
    min-height: calc(100vh - var(--navbar-h)); /* mantiene il pieno viewport */
}

/* (già ok) la sidebar parte sotto la topbar */
.app-sidebar {
    position: sticky;
    top: var(--navbar-h);
}



/* === Sidebar collapsible === */

/* stato ridotto */
.app-shell.collapsed .app-sidebar {
    width: 70px;
    transition: width 0.25s ease;
}

/* nasconde i testi lasciando solo le icone */
.app-shell.collapsed #mainNav .nav-link span {
    display: none;
}

.app-shell.collapsed #mainNav .menu-section::after {
    display: none;
}

/* aggiusta l’allineamento delle icone quando ridotto */
.app-shell.collapsed #mainNav .nav-link i {
    margin: 0 auto;
    font-size: 1.2rem;
}

/* lo spazio del contenuto si riduce di conseguenza */
.app-shell.collapsed .app-content {
    transition: margin-left 0.25s ease;
}

/* Disabilita l'icona nativa del browser nel campo password (Edge/Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-password-toggle-button {
    display: none !important;
    visibility: hidden !important;
    -webkit-appearance: none !important;
}


/* gestiamo lo scroll orizzontale dentro il content, non sul body */
.blazor-content {
    overflow-x: auto;
}
/* facoltativo: rimuovi qualsiasi forzatura di overflow globale */
html, body {
    overflow-x: visible;
}

/* consenti scroll orizzontale solo alla griglia */
.grid-wrap {
    overflow-x: auto;
    width: 100%;
}

/* il contenitore centrale della pagina: usa il selettore che hai tu */
.blazor-content, .page-content, main.content, .main-content {
    min-width: 0 !important; /* <-- chiave per impedire che il content “spinga” la sidebar */
    overflow-x: auto; /* opzionale: scroll solo dentro al content se serve */
}

/* CONTENUTO: può restringersi e gestisce lo scroll orizzontale interno */
.app-content {
    min-width: 0 !important;
    overflow-x: auto; /* se la griglia è larga, scrolla solo il content */
}

/* --- Scrollbar elegante solo nel contenuto centrale --- */
.app-content {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #b9b9b9 transparent; /* colore barra / sfondo */
}

    /* Chrome / Edge / Safari */
    .app-content::-webkit-scrollbar {
        height: 8px; /* altezza barra orizzontale */
    }

    .app-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .app-content::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,.25);
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

        .app-content::-webkit-scrollbar-thumb:hover {
            background-color: rgba(0,0,0,.45);
        }

/* barra visibile solo quando serve */
.app-content {
    overflow-x: auto;
    overflow-y: auto;
}

/* Limita la crescita della griglia nei tab e delega lo scroll al wrapper */
/*.tab-grid-wrap {
    max-height: 70vh;*/ /* regola a piacere: 65–80vh tipico */
    /*overflow: auto;*/ /* scrolla solo se davvero necessario */
/*}*/


.sede-tt .e-tip-content,
.sede-tt .e-tooltip-content {
    white-space: pre-line;
}

/* Contenitore */
.gmv-tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

    /* Tooltip visibile solo su hover */
    .gmv-tooltip .gmv-tooltiptext {
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.15s ease-in-out;
        position: absolute;
        bottom: 100%; /* sopra la cella */
        left: 0;
        z-index: 50;
        background-color: #f9f9f9; /* sfondo chiaro */
        color: #333;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 6px 10px;
        white-space: pre-line;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
        font-size: 0.8rem;
        min-width: 220px;
        text-align: left;
    }

    /* Mostra tooltip al passaggio */
    .gmv-tooltip:hover .gmv-tooltiptext {
        visibility: visible;
        opacity: 1;
    }



/* tooltip Syncfusion: sfondo chiaro, testo scuro, rispetta \n */
.gmv-tt .e-tooltip-content,
.gmv-tt .e-tip-content {
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    white-space: pre-line; /* ← le \n diventano nuove righe */
    font-size: 0.85rem;
    padding: 8px 10px;
}

/* assicurati che stia sopra la griglia */
.e-tooltip-wrap {
    z-index: 2000 !important;
}

/* opzionale: pointer vicino all’elemento */
.gmv-tt .e-arrow-tip-outer,
.gmv-tt .e-arrow-tip-inner {
    border-top-color: #f9f9f9; /* se usi Position.TopLeft */
    /* per altre posizioni, puoi adattare il lato del border */
}

.e-grid .sede-cell {
    font-size: inherit; /* niente testo più piccolo */
    line-height: 1.25; /* compatto ma leggibile */
    max-width: 100%;
}

.tree-fulltext .e-treeview .e-list-text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal; /* va a capo se lungo */
}

/*aggiunto per nascondere filtro*/
.filter-collapse {
    overflow: hidden;
    transition: max-height .25s ease;
}

.filter-open {
    max-height: 2000px;
}
/* abbastanza grande per contenere tutto */
.filter-closed {
    max-height: 0;
}



/* Overlay per SfSpinner sopra la card */
.overlay-spinner .e-spinner-pane {
    position: absolute !important;
    inset: 0 !important; /* top/right/bottom/left: 0 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.65) !important;
    z-index: 10 !important;
}


/* Di default: niente wrap nelle celle (opzionale, se già così) */
/*#AttivitaDaEseguireGrid .e-rowcell {
    white-space: nowrap;
}*/

    /* Solo la colonna descrizione può andare su più righe */
    /*#AttivitaDaEseguireGrid .e-rowcell.descrizione-col {
        white-space: normal;
        line-height: 1.2;*/ /* così le righe non si “schiacciano” */
    /*}*/

/* Testo con ellissi + tooltip (la larghezza la decide la colonna della griglia) */
.cell-ellipsis {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Riga di dettaglio SECE sotto la descrizione */
.sece-ref {
    color: gray;
    font-size: smaller;
}

.form-filter {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
}

/* Allinea i checkbox alla textbox della dropdown (che ha la label sopra) */
.freq-row .freq-chk {
    padding-bottom: 6px; /* prova 4..10px finché coincide perfettamente */
    margin: 0;
    white-space: nowrap;
}
/* Allinea la checkbox "Includi mesi precedenti" alla textbox Syncfusion (label Always) */
.mesi-row .mesi-chk {
    padding-bottom: 6px; /* regola 4..10px se serve */
    white-space: nowrap;
}

.oim-invalid .e-input-group,
.oim-invalid .e-control-wrapper,
.oim-invalid input {
    border-color: #dc3545 !important;
}

    .oim-invalid .e-input-group.e-control-wrapper {
        box-shadow: 0 0 0 .2rem rgba(220,53,69,.15);
    }

.oim-editor {
    position: relative;
}

.oim-blocker {
    position: absolute;
    inset: 0;
    z-index: 2500; /* sotto al dialog (3000) */
    background: rgba(255,255,255,0.01); /* praticamente invisibile */
    pointer-events: all; /* intercetta click */
}

.oim-badge {
    font-weight: 600;
    border-radius: 999px;
    padding: .35rem .55rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.oim-badge-final {
    background: #f1f3f5;
    color: #343a40;
    border-color: #dee2e6;
}

.oim-badge-park {
    background: #fff7e6;
    color: #7a4b00;
    border-color: #ffe0b2;
}

.oim-state {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

/*navmenù*/
/* Contenitore sidebar */
.sidebar {
    background: linear-gradient(180deg,#0b1f3a,#0a1630);
    color: #e9eef7 !important;
    padding: .75rem .5rem;
}

/* Link/Buttons del menu */
.side-item, .side-sub {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .60rem .70rem;
    border-radius: .65rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

/* colonna icona: sempre uguale */
.side-ic {
    width: 28px;
    display: inline-flex;
    justify-content: center;
    opacity: .95;
}

/* testo: elastico */
.side-tx {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* chevron: sempre a dx */
.side-ch {
    width: 24px;
    display: inline-flex;
    justify-content: center;
    opacity: .75;
}

/* hover/active */
.side-item:hover, .side-sub:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.06);
}

.side-item.active, .side-sub.active {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.10);
}

/* toggle button reset (così sembra un link) */
.side-toggle {
    background: transparent;
}

    /* ruota chevron quando open */
    .side-toggle.open .side-ch i {
        transform: rotate(90deg);
        transition: transform .15s ease;
    }

/* lista delle sottovoci */
.side-sublist {
    margin: .25rem 0 .25rem 12px;
    padding-left: .25rem;
    border-left: 1px solid rgba(255,255,255,.08);
}

/* sottovoci */
.side-sub {
    font-size: .92rem;
    opacity: .95;
}

/* sottovoci “standalone” (quelle che prima avevi con px-3) */
.side-sub-standalone {
    margin-left: 12px;
}

/* header sezione */
.side-section {
    margin-top: .9rem;
    padding: .6rem .7rem .35rem;
    font-size: .75rem;
    letter-spacing: .10em;
    text-transform: uppercase;
    opacity: .7;
}

.side-item, .side-sub {
    justify-content: flex-start;
    text-align: left;
}

.side-ch {
    margin-left: auto;
}

/* ===== GMV Sidebar: NO link blue (final override) ===== */
#mainNav a,
#mainNav a:visited {
    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
}

    #mainNav a:hover,
    #mainNav a:focus,
    #mainNav a:active {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    /* se bootstrap/applica il colore a span interni */
    #mainNav a * {
        color: inherit !important;
    }


/* sidebar più chiara */
.app-sidebar {
    background: linear-gradient(180deg,#16335f 0%, #355fa0 100%) !important;
}

#mainNav.sidebar {
    background: linear-gradient(180deg,#16335f,#2a4f86) !important;
}



/*per bloccare selezione nei tab*/
.oim-tab-content {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.oim-tab-content input,
.oim-tab-content textarea,
.oim-tab-content .e-input,
.oim-tab-content .e-control,
.oim-tab-content .e-input-group input,
.oim-tab-content .e-input-group textarea,
.oim-tab-content .e-numerictextbox,
.oim-tab-content .e-dropdownlist,
.oim-tab-content .e-datepicker,
.oim-tab-content .e-richtexteditor,
.oim-tab-content [contenteditable="true"] {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.oim-tab-content label,
.oim-tab-content span,
.oim-tab-content th,
.oim-tab-content td,
.oim-tab-content h6,
.oim-tab-content div {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.grid-posizioni-bordered .e-dialog.e-edit-dialog {
    width: 900px !important;
    max-width: 95vw !important;
}

    .grid-posizioni-bordered .e-dialog.e-edit-dialog .e-dlg-content {
        padding: 18px !important;
    }

.e-dialog.e-edit-dialog {
    width: 900px !important;
    max-width: 95vw !important;
}

/*blocco per allargare modale a tutto schermo*/
.avviso-dettaglio-dialog.e-dialog {
    max-width: 95vw !important;
}

.avviso-dettaglio-dialog .e-dlg-header-content {
    padding: .5rem .75rem !important;
}

.avviso-dettaglio-dialog .e-dlg-content {
    padding: 0 !important;
    overflow: auto !important;
}

.avviso-dettaglio-dialog .e-dialog-content {
    padding: 0 !important;
    overflow: auto !important;
}

/*per sistemare campi modale*/
.posizioni-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.posizioni-table {
    table-layout: fixed;
    min-width: 1500px;
    margin-bottom: 0;
}

    .posizioni-table th,
    .posizioni-table td {
        padding: 0.3rem 0.35rem;
        vertical-align: middle;
    }

    .posizioni-table th {
        white-space: nowrap;
    }

.cell-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.small-editor .e-control,
.small-editor .e-input-group,
.small-editor .e-control-wrapper {
    min-height: 28px !important;
}

.small-editor .e-input,
.small-editor input {
    font-size: 0.84rem;
}

.posizioni-table .btn.btn-sm {
    min-height: 28px;
    height: 28px;
    line-height: 1;
}

.posizioni-table .e-date-wrapper,
.posizioni-table .e-multicolumncombobox,
.posizioni-table .e-input-group {
    width: 100%;
}

.gmv-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    border-radius: .5rem;
}