﻿:root {
    --kendo-color-app-surface: #ffffff;
    --kendo-color-on-app-surface: #1e293b;
    --kendo-color-subtle: #64748b;
    --kendo-color-surface: #f8fafc;
    --kendo-color-surface-alt: #ffffff;
    --kendo-color-border: rgba(0, 0, 0, 0.08);
    --kendo-color-border-alt: rgba(0, 0, 0, 0.16);
    --kendo-color-base-subtle: #f1f5f9;
    --kendo-color-base-subtle-hover: #e2e8f0;
    --kendo-color-base-subtle-active: #cbd5e1;
    --kendo-color-base: #f8fafc;
    --kendo-color-base-hover: #f1f5f9;
    --kendo-color-base-active: #e2e8f0;
    --kendo-color-base-emphasis: #cbd5e1;
    --kendo-color-base-on-subtle: #1e293b;
    --kendo-color-on-base: #1e293b;
    --kendo-color-base-on-surface: #1e293b;
    --kendo-color-primary: #00457E;
    --kendo-color-primary-subtle: #e6f0f7;
    --kendo-color-primary-subtle-hover: #b7d6ed;
    --kendo-color-primary-subtle-active: #84bbdf;
    --kendo-color-primary-hover: #00599f;
    --kendo-color-primary-active: #003968;
    --kendo-color-primary-emphasis: #4d8dd4;
    --kendo-color-primary-on-subtle: #00457E;
    --kendo-color-on-primary: #ffffff;
    --kendo-color-primary-on-surface: #00457E;
    --kendo-color-primary-rgba: 0, 69, 126;
    --kendo-color-secondary-subtle: #f1f5f9;
    --kendo-color-secondary-subtle-hover: #e2e8f0;
    --kendo-color-secondary-subtle-active: #cbd5e1;
    --kendo-color-secondary: #6b7280;
    --kendo-color-secondary-hover: #4b5563;
    --kendo-color-secondary-active: #374151;
    --kendo-color-secondary-emphasis: #9ca3af;
    --kendo-color-secondary-on-subtle: #0f172a;
    --kendo-color-on-secondary: #ffffff;
    --kendo-color-secondary-on-surface: #1f2937;
    --kendo-color-tertiary-subtle: #e0f2fe;
    --kendo-color-tertiary-subtle-hover: #baedff;
    --kendo-color-tertiary-subtle-active: #7dd3fc;
    --kendo-color-tertiary: #3b82f6;
    --kendo-color-tertiary-hover: #2563eb;
    --kendo-color-tertiary-active: #1d4ed8;
    --kendo-color-tertiary-emphasis: #7bc8ff;
    --kendo-color-tertiary-on-subtle: #1d4ed8;
    --kendo-color-on-tertiary: #ffffff;
    --kendo-color-tertiary-on-surface: #1d4ed8;
    --kendo-color-info-subtle: #dbeafe;
    --kendo-color-info-subtle-hover: #bfdbfe;
    --kendo-color-info-subtle-active: #93c5fd;
    --kendo-color-info: #3b82f6;
    --kendo-color-info-hover: #2563eb;
    --kendo-color-info-active: #1d4ed8;
    --kendo-color-info-emphasis: #60a5fa;
    --kendo-color-info-on-subtle: #1e40af;
    --kendo-color-on-info: #ffffff;
    --kendo-color-info-on-surface: #1d4ed8;
    --kendo-color-success-subtle: #d1fae5;
    --kendo-color-success-subtle-hover: #a7f3d0;
    --kendo-color-success-subtle-active: #6ee7b7;
    --kendo-color-success: #10b981;
    --kendo-color-success-hover: #059669;
    --kendo-color-success-active: #047857;
    --kendo-color-success-emphasis: #34d399;
    --kendo-color-success-on-subtle: #065f46;
    --kendo-color-on-success: #ffffff;
    --kendo-color-success-on-surface: #047857;
    --kendo-color-warning-subtle: #fef3c7;
    --kendo-color-warning-subtle-hover: #fde68a;
    --kendo-color-warning-subtle-active: #fcd34d;
    --kendo-color-warning: #f59e0b;
    --kendo-color-warning-hover: #d97706;
    --kendo-color-warning-active: #b45309;
    --kendo-color-warning-emphasis: #fbbf24;
    --kendo-color-warning-on-subtle: #92400e;
    --kendo-color-on-warning: #1e293b;
    --kendo-color-warning-on-surface: #f59e0b;
    --kendo-color-error-subtle: #fee2e2;
    --kendo-color-error-subtle-hover: #fecaca;
    --kendo-color-error-subtle-active: #fca5a5;
    --kendo-color-error: #ef4444;
    --kendo-color-error-hover: #dc2626;
    --kendo-color-error-active: #b91c1c;
    --kendo-color-error-emphasis: #f87171;
    --kendo-color-error-on-subtle: #991b1b;
    --kendo-color-on-error: #ffffff;
    --kendo-color-error-on-surface: #b91c1c;
    --kendo-color-light-subtle: #f1f5f9;
    --kendo-color-light-subtle-hover: #e2e8f0;
    --kendo-color-light-subtle-active: #cbd5e1;
    --kendo-color-light: #f8fafc;
    --kendo-color-light-hover: #f1f5f9;
    --kendo-color-light-active: #e2e8f0;
    --kendo-color-light-emphasis: #cbd5e1;
    --kendo-color-light-on-subtle: #0f172a;
    --kendo-color-on-light: #0f172a;
    --kendo-color-light-on-surface: #e2e8f0;
    --kendo-color-dark-subtle: #cbd5e1;
    --kendo-color-dark-subtle-hover: #94a3b8;
    --kendo-color-dark-subtle-active: #64748b;
    --kendo-color-dark: #1e293b;
    --kendo-color-dark-hover: #334155;
    --kendo-color-dark-active: #1e293b;
    --kendo-color-dark-emphasis: #64748b;
    --kendo-color-dark-on-subtle: #0f172a;
    --kendo-color-on-dark: #ffffff;
    --kendo-color-dark-on-surface: #0f172a;
    --kendo-color-inverse-subtle: #9ca3af;
    --kendo-color-inverse-subtle-hover: #6b7280;
    --kendo-color-inverse-subtle-active: #4b5563;
    --kendo-color-inverse: #374151;
    --kendo-color-inverse-hover: #1f2937;
    --kendo-color-inverse-active: #111827;
    --kendo-color-inverse-emphasis: #6b7280;
    --kendo-color-inverse-on-subtle: #ffffff;
    --kendo-color-on-inverse: #ffffff;
    --kendo-color-inverse-on-surface: #0f172a;
    --kendo-color-series-a: #3b82f6;
    --kendo-color-series-a-bold: #1d4ed8;
    --kendo-color-series-a-bolder: #1e40af;
    --kendo-color-series-a-subtle: #dbeafe;
    --kendo-color-series-a-subtler: #bfdbfe;
    --kendo-color-series-b: #10b981;
    --kendo-color-series-b-bold: #059669;
    --kendo-color-series-b-bolder: #047857;
    --kendo-color-series-b-subtle: #d1fae5;
    --kendo-color-series-b-subtler: #a7f3d0;
    --kendo-color-series-c: #f59e0b;
    --kendo-color-series-c-bold: #d97706;
    --kendo-color-series-c-bolder: #b45309;
    --kendo-color-series-c-subtle: #fef3c7;
    --kendo-color-series-c-subtler: #fde68a;
    --kendo-color-series-d: #8b5cf6;
    --kendo-color-series-d-bold: #7c3aed;
    --kendo-color-series-d-bolder: #6d28d9;
    --kendo-color-series-d-subtle: #ede9fe;
    --kendo-color-series-d-subtler: #ddd6fe;
    --kendo-color-series-e: #ec4899;
    --kendo-color-series-e-bold: #db2777;
    --kendo-color-series-e-bolder: #be185d;
    --kendo-color-series-e-subtle: #fce7f3;
    --kendo-color-series-e-subtler: #fbcfe8;
    --kendo-color-series-f: #f97316;
    --kendo-color-series-f-bold: #ea580c;
    --kendo-color-series-f-bolder: #c2410c;
    --kendo-color-series-f-subtle: #fed7aa;
    --kendo-color-series-f-subtler: #fdba74;
    --orange: #fa983a !important;
    --brown: #d5884d !important;
    --grey: #4c4c4c !important;
    --purple: #686ec6 !important;
    --teal: #8ec9c7 !important;
    --red: #d15252 !important;
    --green: #379588 !important;
    --light-blue: #60a3bc !important;
    --yellow: #f6b93b !important;
    --not-selected: #d9d9d9 !important;
    --draft: #d5884d !important;
    --to-process: #f6b93b !important;
    --processing: #F0DD60 !important;
    --processed: #60a3bc !important;
    --process-error: #d15252 !important;
    --scheduled: #686ec6 !important;
    --scheduled-to-publish: #EFBF5E !important;
    --to-publish: #8ec9c7 !important;
    --published: #379588 !important;
    --publishing: #6BC9CC !important;
    --publish-error: #E57373 !important;
}

body {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"
}

.hidden {
    display: none !important
}

.header .separator {
    background-image: linear-gradient(#F6F6F6 60%, #EDEDED);
    display: inline-block;
    height: 100%;
    margin: 0 10px 0;
    width: 1px;
    vertical-align: middle;
}

.edit-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Nero semi-trasparente */
}

/* Userbox */
.userbox {
    display: inline-block;
    /*margin: 3px 17px 0 0;*/
    position: relative;
    vertical-align: middle;
}

    .userbox > a {
        display: inline-block;
        text-decoration: none;
    }

    .userbox a:hover {
        text-decoration: none;
    }

    .userbox .profile-info,
    .userbox .profile-picture {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
    }

        .userbox .profile-picture img {
            width: 35px;
            color: transparent;
        }

    .userbox .profile-info {
        margin: -3px 25px 0 10px;
    }

    .userbox .name,
    .userbox .role {
        display: block;
    }

    .userbox .name {
        /*color: #000011;*/
        font-size: 12.8px;
        font-size: 0.8rem;
        line-height: 17.6px;
        line-height: 1.1rem;
    }

    .userbox .role {
        /*color: #ACACAC;*/
        font-size: 11.2px;
        font-size: 0.7rem;
        line-height: 11.2px;
        line-height: 0.7rem;
    }

    .userbox .custom-caret {
        /*color: #000011;*/
        font-size: 16px;
        font-weight: bold;
    }

        .userbox .custom-caret:before {
            content: "\f107";
        }

@media only screen and (max-width: 767px) {
    .userbox .name,
    .userbox .role {
        max-width: 68px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

ul.dt-actions {
    font-size: 0.85rem;
    list-style-type: none !important;
    opacity: 0.9;
    line-height: 11px;
    vertical-align: text-bottom;
}

    ul.dt-actions li {
        font-weight: 500;
        cursor: pointer;
    }

        ul.dt-actions li:hover {
            text-decoration: underline;
        }

tr.k-master-row.k-table-row[role='row']:hover ul.dt-actions.hidden {
    display: flex !important;
}


/*.k-switch-label-on, .k-switch-label-off {
    display: inline !important;
}*/

.k-switch-label-on {
    left: 7px;
    /*color: #333;*/
}

.k-switch-label-off {
    right: 15px;
}


.k-numerictextbox.text-center > input.k-input-inner {
    text-align: center !important;
}

.k-numerictextbox.text-end > input.k-input-inner {
    text-align: right !important;
}

input.k-input-inner,
span.k-textarea,
div.k-editor-content {
    /*color: #fff !important;*/
    /*background-color: #343a40 !important;*/
}

.footerBar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 10;
    /*background-color: #343a40 !important;*/
    font-size: 0.80em;
}

a.text-primary {
    /*color: #b9c428 !important*/
}

.k-pager-md .k-pager-sizes .k-dropdownlist {
    width: auto !important;
}


#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: block;
    }

/*.btn-primary {
    border-color: var(--kendo-color-primary) !important;
    background-color: var(--kendo-color-primary) !important;
    color: var(--kendo-color-on-primary) !important;
}

    .btn-primary:focus {
        box-shadow: 0 0 0px 0.25rem rgba(204,215,59,.5);
    }

    .btn-primary:hover {
        border-color: #afb926 !important;
        background-color: #b9c428 !important;
        color: var(--kendo-color-on-primary) !important;
    }

    .btn-primary:active {
        border-color: #a5af24 !important;
        background-color: #afb926 !important;
    }

.bg-primary {
    color: var(--kendo-color-on-primary) !important;
    background-color: var(--kendo-color-primary) !important;
    border-color: var(--kendo-color-primary) !important;
}*/

.modal .modal-dialog.modal-wide {
    max-width: 97%;
}

.modal-wide .modal-body {
    overflow-y: auto;
}

.cursor-default {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

.form-label-sm {
    font-size: 0.875rem;
}

.disabled-stepper {
    pointer-events: none;
}

    .disabled-stepper > * span.k-step-indicator {
        /*background-color: #2f2f2f !important;*/
        /*border-color: #6c757d !important;*/
        /*color: #dee2e6 !important;*/
    }

.stepper-lg > * span.k-step-indicator {
    height: 56px !important;
    width: 56px !important;
}

.stepper-lg > * div.telerik-blazor.k-progressbar.k-progressbar-horizontal {
    top: 30px !important;
}

.k-checkbox-xl {
    width: 1.50rem !important;
    height: 1.50rem !important;
}

div.swal2-container {
    z-index: 99999;
}

    div.swal2-container.swal2-bottom-right {
        bottom: 25px !important;
    }

    div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm {
        border-color: var(--kendo-color-primary, #0D6EFD) !important;
        color: var(--kendo-color-on-primary, white) !important;
        background-color: var(--kendo-color-primary, #0D6EFD) !important;
        background-image: none !important;
    }

        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm:hover,
        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm .k-hover {
            border-color: var(--kendo-color-primary-hover, #0C64E4) !important;
            background-color: var(--kendo-color-primary-hover, #0C64E4) !important;
        }

        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm:focus,
        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm .k-focus {
            box-shadow: 0 0 0px .25rem color-mix(in srgb, var(--kendo-color-primary, #0D6EFD) 50%, transparent) !important
        }

        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm:active,
        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm .k-active {
            border-color: var(--kendo-color-primary-active, #0A58CA) !important;
            background-color: var(--kendo-color-primary-active, #0A58CA) !important
        }

        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm::selection,
        div.swal2-container > * div.swal2-actions button.swal2-styled.swal2-confirm .k-selected {
            border-color: var(--kendo-color-primary-active, #0A58CA) !important;
            background-color: var(--kendo-color-primary-active, #0A58CA) !important
        }

    div.swal2-container > .swal2-popup.swal2-toast {
        padding-bottom: 0.5em !important;
        padding-top: 0.5em !important;
    }

.col-md-2-5 {
    flex: 0 0 auto;
    width: 20.833333335%
}

section.environment {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 40px;
    font-size: large;
    font-weight: 600;
}

    section.environment.environment-staging {
        background-color: var(--bs-warning);
        color: var(--bs-dark);
    }

        section.environment.environment-staging:after {
            content: "Attenzione! Questo è un ambiente di TEST, eventuali mail relative alla documentazione NON verranno inviate ai reali destinatari ma all'utente collegato";
        }

.btn-group-xs > .btn, .btn-xs {
    padding: 1px 1px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    border-radius: 3px !important;
}

.k-event {
    background-color: var(--kendo-color-primary) !important;
    color: var(--kendo-color-on-primary) !important;
}

.text-orange {
    color: var(--orange) !important
}

.bg-orange {
    background: var(--orange) !important
}

.text-brown {
    color: var(--brown) !important
}

.bg-brown {
    background: var(--brown) !important
}

.text-grey {
    color: var(--grey) !important
}

.bg-grey {
    background: var(--grey) !important
}

.text-purple {
    color: var(--purple) !important
}

.bg-purple {
    background: var(--purple) !important
}

.text-teal {
    color: var(--teal) !important
}

.bg-teal {
    background: var(--teal) !important
}

.bg-green {
    background: var(--green) !important;
    color: #fff !important
}

.text-green {
    color: var(--green) !important;
}

.bg-light-blue {
    background: var(--light-blue) !important;
}

.text-light-blue {
    color: var(--light-blue) !important;
}

.bg-yellow {
    background: var(--yellow) !important;
}

.text-yellow {
    color: var(--yellow) !important;
}

.text-primary {
    color: var(--kendo-color-primary) !important
}

.k-background-primary {
    background: var(--kendo-color-primary) !important;
}

.telerik-blazor .k-editor-toolbar {
    display: none !important;
}

    /* Riduci padding e altezza dei bottoni */
    .telerik-blazor .k-editor-toolbar .k-button,
    .telerik-blazor .k-editor-toolbar .k-input-inner {
        padding: 0.25rem 0.20rem;
        font-size: 0.85rem;
        height: auto;
    }

/* Riduci l'altezza complessiva della toolbar */
.telerik-blazor .k-editor-toolbar {
    min-height: auto;
    padding: 0.5rem 0.5rem;
}

.k-upload .k-upload-files .k-file {
    padding: 0.25rem 0.20rem !important;
}

.k-upload .k-upload-files .k-file-info {
    align-content: center;
}

.k-upload .k-upload-files .k-file-icon-wrapper {
    visibility: hidden;
}

.k-upload .k-upload-files .k-upload-status .k-button {
    padding: 0.25rem 0.20rem !important;
}

ul.k-upload-files.k-reset {
    display: none !important;
}

.truncate-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.fs-7 {
    font-size: 0.875rem;
}

.modal .modal-header {
    padding: 0.75rem 0.75rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.hide-toolbar .k-grid-header > * thead.k-table-thead,
.hide-toolbar > * tr.k-grid-norecords {
    display: none !important;
}

.current-slot {
    background-color: var(--kendo-color-primary) !important;
    color: var(--kendo-color-on-primary) !important;
}

.current-day {
    background-color: rgba(var(--kendo-color-primary-rgba), 0.7) !important;
    color: var(--kendo-color-on-primary) !important;
}

.other-month-slot-light {
    background-color: #ddd !important;
    color: #000000 !important;
}

.other-month-slot-dark {
    background-color: #404040 !important;
    color: #fff !important;
}

.k-scheduler-footer {
    display: none !important;
}

.k-toolbar-sm {
    padding-block: .5rem !important;
    padding-inline: .5rem !important;
    gap: .5rem !important;
}

    .k-toolbar-sm::before {
        -webkit-margin-start: -0.5rem !important;
        margin-inline-start: -0.5rem !important
    }

    .k-toolbar-sm > * > label {
        -webkit-margin-end: .5rem !important;
        margin-inline-end: .5rem !important
    }

.offcanvas {
    z-index: 999999 !important;
}

.navbar {
    background-color: var(--kendo-color-primary) !important;
    color: var(--kendo-color-on-primary) !important;
}

    .navbar ul.navbar-nav > li.nav-item > .nav-link {
        color: var(--kendo-color-on-primary) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

.modal > * {
    color: rgb(33, 37, 41) !important;
}

.k-input.k-disabled {
    background-color: lightgrey !important;
}

.bg-not-selected {
    background-color: var(--not-selected) !important;
}
.bg-draft {
    background-color: var(--draft) !important;
}
.bg-to-process {
    background-color: var(--to-process) !important;
}
.bg-processing {
    background-color: var(--processing) !important;
}
.bg-processed {
    background-color: var(--processed) !important;
}
.bg-process-error {
    background-color: var(--process-error) !important;
}
.bg-scheduled {
    background-color: var(--scheduled) !important;
}
.bg-scheduled-to-publish {
    background-color: var(--scheduled-to-publish) !important;
}
.bg-to-publish {
    background-color: var(--to-publish) !important;
}
.bg-published {
    background-color: var(--published) !important;
}
.bg-publishing {
    background-color: var(--publishing) !important;
}
.bg-publish-error {
    background-color: var(--publish-error) !important;
}

.text-not-selected {
    color: var(--not-selected) !important;
}
.text-draft{
    color: var(--draft) !important;
}
.text-to-process {
    color: var(--to-process) !important;
}
.text-processing {
    color: var(--processing) !important;
}
.text-processed {
    color: var(--processed) !important;
}
.text-process-error {
    color: var(--process-error) !important;
}
.text-scheduled {
    color: var(--scheduled) !important;
}
.text-scheduled-to-publish {
    color: var(--scheduled-to-publish) !important;
}
.text-to-publish {
    color: var(--to-publish) !important;
}
.text-published {
    color: var(--published) !important;
}
.text-publishing {
    color: var(--publishing) !important;
}
.text-publish-error {
    color: var(--publish-error) !important;
}