/*
Template Name: Vixon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/


:root {
    --text-xs: 0.75rem; /* 12px */
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem; /* 14px */
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem; /* 16px */
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem; /* 18px */
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem; /* 20px */
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem; /* 24px */
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem; /* 30px */
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-4xl: 2.25rem; /* 36px */
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-5xl: 3rem; /* 48px */
    --text-5xl--line-height: 1;
    --text-6xl: 3.75rem; /* 60px */
    --text-6xl--line-height: 1;
    --text-7xl: 4.5rem; /* 72px */
    --text-7xl--line-height: 1;
    --text-8xl: 6rem; /* 96px */
    --text-8xl--line-height: 1;
    --text-9xl: 8rem; /* 128px */
    --text-9xl--line-height: 1;
}

/* Override della larghezza sidebar da 250px a 230px */
:root {
    --tb-vertical-menu-width: 230px !important;
}



/* site.css */

html {
    font-size: 14px; /* Diminuisci la dimensione base del font */
    /* Puoi usare anche percentuali (es. 85%) o unità relative (es. 0.875em o 0.875rem) */
}

/*body {
    font-size: 1rem;*/ /* Assicura che il body erediti da html */
/*}*/

/* Potrebbe essere necessario sovrascrivere specifici componenti DevExtreme se non ereditano correttamente */
.dx-datagrid,
.dx-form,
.dx-toolbar,
.dx-menu {
    font-size: 0.875rem; /* Esempio: imposta una dimensione leggermente più piccola per i componenti DX */
}


.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.3;
    }
}

.spin {
    display: inline-block; /* per evitare “salti” di layout */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.rotate-on-hover {
    display: inline-block;
    transition: transform 0.6s linear;
}

    .rotate-on-hover:hover {
        transform: rotate(360deg);
    }


.rotation {
    animation: rotation 2s infinite linear; /* Rotates the icon continuously */
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.zoom-box-20, .zoom-box-50 {
    transition: transform .2s; /* Animation */
}

.zoom-box-20:hover {
    transform: scale(1.2);
}
.zoom-box-50:hover {
    transform: scale(1.5);
}

.icon-2x {
    font-size: 2em; /* Raddoppia la dimensione dell'icona */
}
.icon-4x {
    font-size: 4em; /* Raddoppia la dimensione dell'icona */
}
.icon-6x {
    font-size: 6em; /* Raddoppia la dimensione dell'icona */
}
    .ribbon {
    position: absolute;
    left: -5px;
    top: -5px;
    z-index: 1999999;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
    animation: blinker 1s linear infinite;
}

    .ribbon span {
        font-size: 10px;
        font-weight: bold;
        color: #FFF;
        text-transform: uppercase;
        text-align: center;
        line-height: 20px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        width: 100px;
        display: block;
        background: #79A70A;
        background: linear-gradient(#F79E05 0%, #8F5408 100%);
        box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
        position: absolute;
        top: 19px;
        left: -21px;
    }

        .ribbon span::before {
            content: "";
            position: absolute;
            left: 0px;
            top: 100%;
            z-index: -1;
            border-left: 3px solid #8F5408;
            border-right: 3px solid transparent;
            border-bottom: 3px solid transparent;
            border-top: 3px solid #8F5408;
        }

        .ribbon span::after {
            content: "";
            position: absolute;
            right: 0px;
            top: 100%;
            z-index: -1;
            border-left: 3px solid transparent;
            border-right: 3px solid #8F5408;
            border-bottom: 3px solid transparent;
            border-top: 3px solid #8F5408;
        }

.nav > li.nav-item-separator {
    border-bottom: 1px solid gray;
    margin-left: 0;
}

/*validation*/
.field-validation-error {
    display: block;
    /*    background-image: url('http://findicons.com/files/icons/1014/ivista/128/error.png');
    background-repeat: no-repeat;
    color: Transparent;
    background-size: 16px 16px;*/
}

span.field-validation-error:after {
    font-family: "tabler-icons";
    font-size: 16px;
    margin: 0 4px 0 0;
    padding-left: 3px;
    content: "\f6ee";
}

/* Stile personalizzato per il ValidationSummary */
.validation-summary {
    border: 1px solid #e74c3c;
    background-color: #fce4e4;
    color: #e74c3c;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

    .validation-summary ul {
        list-style-type: none;
        padding-left: 0;
    }

    .validation-summary li {
        margin: 5px 0;
    }

/* Stile per i messaggi di errore individuali */
.text-danger {
    color: #e74c3c;
}


.icon-item-new {
    width: var(--tblr-space-xs);
    height: var(--tblr-space-xs);
    background: #e03131;
    border-radius: 100%;
    display: block;
}

.icon-pulse, .icon-tada {
    display: block;
    transition: all .15s ease 0s;
}

.icon-pulse {
    animation: pulse-keyframes 2s ease infinite;
    animation-fill-mode: both;
}
/*bootstrap*/

.form-control {
    background-color: white !important;
}


.page-title-box h4 small {
    text-transform: lowercase;
    font-size: 0.875em;
    color: #b2a6d6;
}

    .page-title-box h4 small a {
        color: #b2a6d6;
        text-decoration: none;
    }

    .page-title-box h4 small a:hover {
        color: orange;
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #b2a6d6; /* var(--tb-breadcrumb-item-active-color);*/
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}


.text-xs {
    font-size: var(--text-xs); /* 0.75rem (12px) */
    line-height: var(--text-xs--line-height); /* calc(1 / 0.75) */
}

.text-sm {
    font-size: var(--text-sm); /* 0.875rem (14px) */
    line-height: var(--text-sm--line-height); /* calc(1.25 / 0.875) */
}

.text-base {
    font-size: var(--text-base); /* 1rem (16px) */
    line-height: var(--text-base--line-height); /* calc(1.5 / 1) */
}

.text-lg {
    font-size: var(--text-lg); /* 1.125rem (18px) */
    line-height: var(--text-lg--line-height); /* calc(1.75 / 1.125) */
}

.text-xl {
    font-size: var(--text-xl); /* 1.25rem (20px) */
    line-height: var(--text-xl--line-height); /* calc(1.75 / 1.25) */
}

.text-2xl {
    font-size: var(--text-2xl); /* 1.5rem (24px) */
    line-height: var(--text-2xl--line-height); /* calc(2 / 1.5) */
}

.text-3xl {
    font-size: var(--text-3xl); /* 1.875rem (30px) */
    line-height: var(--text-3xl--line-height); /* calc(2.25 / 1.875) */
}

.text-4xl {
    font-size: var(--text-4xl); /* 2.25rem (36px) */
    line-height: var(--text-4xl--line-height); /* calc(2.5 / 2.25) */
}

.text-5xl {
    font-size: var(--text-5xl); /* 3rem (48px) */
    line-height: var(--text-5xl--line-height); /* 1 */
}

.text-6xl {
    font-size: var(--text-6xl); /* 3.75rem (60px) */
    line-height: var(--text-6xl--line-height); /* 1 */
}

.text-7xl {
    font-size: var(--text-7xl); /* 4.5rem (72px) */
    line-height: var(--text-7xl--line-height); /* 1 */
}

.text-8xl {
    font-size: var(--text-8xl); /* 6rem (96px) */
    line-height: var(--text-8xl--line-height); /* 1 */
}

.text-9xl {
    font-size: var(--text-9xl); /* 8rem (128px) */
    line-height: var(--text-9xl--line-height); /* 1 */
}

.text-bold{
    font-weight: bold;
}
.text-italic{
    font-style: italic;
}

.totaleNettoLiquidazione{
    font-weight:bold;
    font-size:1.2em;
}
/*devexpress*/
#small-indicator, #medium-indicator, #large-indicator {
    vertical-align: middle;
    margin-right: 10px;
}

.dx-button {
    font-size: 16px;
    padding: 10px !important;
    min-height: 40px !important;
}

.dx-button .dx-button-content {
/*    padding-block: 0px;
    -webkit-padding-start: 0px;
    padding-inline-start:0px;
    -webkit-padding-end: 0px;
    padding-inline-end: 0px;*/
}

.button-danger {
    background: var(--tb-danger);
    color: white;
    font-weight: bold;
}

    .button-danger:hover {
        background: var(--tb-danger-emphasis);
    }

.button-success {
    background: var(--tb-success);
    color: white;
    font-weight: bold;
}

    .button-success:hover {
        background: var(--tb-success-emphasis);
    }


.button-info {
    background: var(--tb-info);
    color: white;
    font-weight: bold;
}

    .button-info:hover {
        background: var(--tb-info-emphasis);
        color: navy;
    }

.button-warning {
    background: var(--tb-warning);
    font-weight: bold;
}

    .button-warning:hover {
        background: var(--tb-warning-emphasis);
    }

.dx-datagrid .dx-column-lines > td:last-child {
    border-right: none;
}

.dx-datagrid-content .dx-datagrid-table .dx-row > td, .dx-datagrid-content .dx-datagrid-table .dx-row > tr > td {
    vertical-align: top;
}

.dx-datagrid-text-content {
    white-space: normal;
}

.dx-datagrid .dx-row > td {
    padding: 4px 4px;
}

/*.dx-datagrid .dx-row > td {
    padding: 7px;
}*/

.dx-datagrid .dx-column-lines > td {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd !important;
}


.master-detail-caption {
    padding: 0 0 5px 10px;
    font-size: 14px;
    font-weight: bold;
}

.wrappedColumn {
    white-space: normal;
    word-wrap: break-word;
}

/* gestione layout */

/* Nel file CSS della tua applicazione */
.dropdown-menu .d-flex .dropdown-item {
    border: none !important;
    padding: 0.375rem 0 !important;
}

.dropdown-menu .d-flex .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    padding: 2px 6px;
    font-size: 0.75rem;
}

    .dropdown-menu .d-flex .btn-outline-danger:hover {
        background-color: #dc3545;
        color: white;
    }

#layoutMenuContainer .dropdown-menu {
    min-width: 200px;
}

#layoutMenuContainer .dropdown-item.active {
    background-color: var(--bs-primary);
    color: white;
}

#layoutMenuContainer .dropdown-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-secondary);
}

.card.bg-light .btn-group .btn {
    border-color: var(--bs-secondary);
    color: var(--bs-secondary);
}

    .card.bg-light .btn-group .btn:hover {
        background-color: var(--bs-secondary);
        border-color: var(--bs-secondary);
        color: white;
    }

/* invio email*/
#emailDialog .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#emailDialog .bg-light {
    border-left: 4px solid var(--bs-primary);
}

/*material*/
.dx-datagrid-content .dx-datagrid-table .dx-row > td, .dx-datagrid-content .dx-datagrid-table .dx-row > tr > td {
    vertical-align: top;
    border-right: 1px solid #ddd !important;
}

    .dx-datagrid-content .dx-datagrid-table .dx-row > tr > td:last-child {
        border-right: none !important;
    }


.dx-datagrid-group-closed, .dx-datagrid-group-opened {
    font: 24px / 24px DXIcons !important;
    padding: 5px !important;
    margin: -5px;
}

.border-info {
    border-color: #0ea5e9 !important;
}

.bg-info {
    background-color: #0ea5e9 !important;
}

#searchResults .dx-list-item {
    padding: 0 !important;
}

#searchResults .dx-list-item:hover {
    background-color: #f8f9fa;
}

/* SweetAlert z-index fix for DevExtreme popups */
.swal-high-z-index.swal2-container {
    z-index: 2000 !important;
}

.swal2-container {
    z-index: 2000 !important;
}

/* Ensure SweetAlert backdrop appears above DevExtreme popups */
.swal2-backdrop-show {
    z-index: 1999 !important;
}

/* Personalizzazioni per la pagina dei dettagli del ticket */
.ticket-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--bs-primary);
}

.ticket-status-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.priority-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.priority-alta { background-color: #dc3545; }
.priority-media { background-color: #ffc107; }
.priority-bassa { background-color: #28a745; }

.ticket-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.ticket-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.4rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.info-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.meta-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.action-buttons {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.response-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.closed-ticket-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 4rem 0 2rem 0;
    text-align: center;
}

/* maintenance manutenzione */
.maintenance-indicator-settings {
    position: relative;
    bottom: 0px;
    left: 0px;
    z-index: 1050;
    background: rgba(255, 193, 7, 0.95);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.maintenance-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    background: rgba(255, 193, 7, 0.95);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

    .maintenance-indicator:hover {
        background: rgba(255, 193, 7, 1);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

.maintenance-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.maintenance-text {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.maintenance-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.maintenance-indicator:hover .maintenance-tooltip {
    opacity: 1;
}

.maintenance-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}