/* Custom styles goes here */

/* ===================================================================
   DEMO RIBBON (corner banner shown when IsDemo = true)
   =================================================================== */
.demo-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 99999;
    pointer-events: none;
}

.demo-ribbon span {
    position: absolute;
    display: block;
    width: 200px;
    padding: 6px 0;
    background: linear-gradient(135deg, #ff6b35, #f7231b);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    top: 15px;
    left: -65px;
    opacity: 0.8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-container {
    position: relative; /* riferimento per l'assoluto */
}

.company-logo {
    position: absolute;
    right: 16px; /* distanza dal bordo sinistro */
    bottom: 16px; /* distanza dal bordo basso */
    z-index: 10; /* sopra eventuali immagini */
}

    .company-logo img {
        display: block; /* evita spazi “strani” sotto l’immagine */
    }

/* Transizione fluida per l'icona */
.icona-toggle {
    display: inline-block; /* Necessario per il transform */
    transition: transform 0.3s ease;
}

/* header di ogni pagina */
.content-header h4 {
    color: #38243d;
}

/* LOGICA: 
       Bootstrap aggiunge la classe .collapsed al bottone quando il menu č CHIUSO.
       Quindi, quando il bottone NON ha .collapsed (č APERTO), ruotiamo l'icona.
    */
button:not(.collapsed) .icona-toggle {
    transform: rotate(180deg);
}

/* barra ricerca */
input#search-options:focus {
    background: white;
}

/* ===================================================================
   STILE DEVEXTREME SIMILE A BOOTSTRAP FORM-CONTROL
   =================================================================== */

/* TextBox DevExtreme - Stile form-control */
.dx-textbox .dx-texteditor-input,
.dx-textarea .dx-texteditor-input {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    /*border: 1px solid #ced4da;*/
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* SelectBox DevExtreme - Stile form-select */
.dx-selectbox .dx-texteditor-input-container,
.dx-selectbox .dx-dropdowneditor-input-wrapper {
    min-height: calc(1.5em + 0.75rem + 2px);
    /*border: 1px solid #ced4da;*/
    border-radius: 0.375rem;
    background-color: #fff;
}

.dx-selectbox .dx-texteditor-input {
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
}

/* Focus state - Bootstrap style */
.dx-textbox.dx-state-focused .dx-texteditor-input,
.dx-textarea.dx-state-focused .dx-texteditor-input,
.dx-selectbox.dx-state-focused .dx-texteditor-input-container {
    color: #212529;
    background-color: #fff;
    border: 0px solid #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Disabled state */
.dx-textbox.dx-state-disabled .dx-texteditor-input,
.dx-textarea.dx-state-disabled .dx-texteditor-input,
.dx-selectbox.dx-state-disabled .dx-texteditor-input-container {
    background-color: #e9ecef;
    opacity: 1;
}

/* DateBox */
.dx-datebox .dx-texteditor-input-container {
    min-height: calc(1.5em + 0.75rem + 2px);
    /*border: 1px solid #ced4da;*/
    border-radius: 0.375rem;
    background-color: #fff;
}

.dx-datebox .dx-texteditor-input {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* NumberBox */
.dx-numberbox .dx-texteditor-input {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    /*border: 1px solid #ced4da;*/
    border-radius: 0.375rem;
}

/* TextArea */
.dx-textarea {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.dx-textarea .dx-texteditor-input {
    padding: 0.375rem 0.5rem;
}

/* Rimuovi bordi doppi */
.dx-texteditor-container {
    border: none !important;
}

/* Validation error state - Bootstrap style */
/*.dx-invalid .dx-texteditor-input,
.dx-invalid .dx-texteditor-input-container {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.dx-invalid.dx-state-focused .dx-texteditor-input,
.dx-invalid.dx-state-focused .dx-texteditor-input-container {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}*/

.layout-menu{
    /*background: #ededf8;*/
}

.icon-2x {
    font-size: 2em !important; /* Raddoppia la dimensione dell'icona */
}

.icon-4x {
    font-size: 4em !important; /* Raddoppia la dimensione dell'icona */
}

.icon-6x {
    font-size: 6em !important; /* Raddoppia la dimensione dell'icona */
}

/* ===================================================================
   MOBILE RESPONSIVE NAVBAR
   =================================================================== */
@media (max-width: 1199.98px) {
    /* Remove default focus ring from toggler */
    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* When navbar icons are expanded on mobile, lay them out as a flex row */
    #navbar-collapse.show {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        padding: 0.5rem 0.75rem;
        border-top: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.1));
        width: 100%;
    }

    #navbar-collapse.show > .navbar-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    /* Shrink search box on mobile */
    #navbar-collapse.show #search-options {
        width: 180px !important;
    }

    /* Keep search dropdown within the viewport */
    #navbar-collapse.show #search-dropdown {
        width: calc(100vw - 2rem) !important;
        left: auto !important;
        right: 0 !important;
    }
}

/* ===================================================================
   MOBILE RESPONSIVE CONFIG PANEL
   =================================================================== */
/* Ensure the config-panel open button is never clipped on any screen */
#configuration-panel {
    overflow: visible !important;
}