html {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 13px;
}

body {
    padding: 0 !important;
    margin: 0 !important;
}

p {
    margin: 0 !important;
}

/*
 * Bootstrap overrides
 */

.bg-dark-success{
    background-color:rgb(39, 122, 26) !important;
}

.navbar-toggler-icon {
    background-image: none !important;
}

.form-control:focus,
.form-control>button:focus {
    border-color: var(--bs-secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-secondary-rgb), 0.25) !important;
}


.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

.dropdown-menu{
    border-width: 0;
}

.card,
.card-body,
.card-footer{
    border-width: 0;
}

.card-body{
    padding: 0.8rem 0.8rem;
}

.card-footer{
    min-height: 55px;
}

/*
 * TempusDominus overrides
 */
input.TempusDominus {
    cursor: pointer;
}


/*
 * Selectpicker overrides
 */
.bootstrap-select > div.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-radius: 10px;
}

.mgc-listing-filter-div .dropdown-toggle {
    gap: 0.5rem;
}

/*
 * Suneditor overrides
 */

.sun-editor {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    overflow: hidden;
}

.sun-editor .se-toolbar {
    border-radius: 0.25rem;
    border-bottom: 1px solid #ced4da;
    outline: none !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sun-editor .se-resizing-bar {
    border-radius: 0.25rem;
    background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
}

.sun-editor:focus-within {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-secondary-rgb), 0.25);
}

/* editor div */
.sun-editor {
    font-family: "Roboto", sans-serif;
}

/* contents area of editor */
.sun-editor-editable {
    font-family: "Roboto", sans-serif;
}

/* tooltip */
.sun-editor .se-tooltip .se-tooltip-inner .se-tooltip-text {
    font-family: "Roboto", sans-serif;
}

/* shortcut */
.sun-editor .se-tooltip .se-tooltip-inner .se-tooltip-text .se-shortcut {
    font-family: "Roboto", sans-serif;
}

/* override stile errato quando esco da modalità fullscreen */
.sun-editor .se-toolbar.se-toolbar-sticky {
    position: relative;
}

.sun-editor-editable[contenteditable="false"] {
    background-color: var(--bs-gray-200);
}

/*
 * Fontawesome overrides
 */

/*
 * bootstrap-select overrides
 */
.bootstrap-select>select.mobile-device:focus+.dropdown-toggle,
.bootstrap-select .dropdown-toggle:focus {
    outline: none !important;
    outline-offset: 0;
}

.bootstrap-select>button.dropdown-toggle {
    background-color: transparent !important;
    border-color: var(--bs-gray-400);
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active {
    color: var(--bs-gray-600);
}

.has-error .bootstrap-select .dropdown-toggle,
.error .bootstrap-select .dropdown-toggle,
.bootstrap-select.is-invalid .dropdown-toggle,
.was-validated .bootstrap-select select:invalid+.dropdown-toggle {
    border-color: var(--bs-danger);
}

.bootstrap-select.is-valid .dropdown-toggle,
.was-validated .bootstrap-select select:valid+.dropdown-toggle {
    border-color: var(--bs-success);
}

.bootstrap-select.disabled {
    background-color: var(--bs-gray-200);
    opacity: 1;
}

/*
 * Sidebar
 */

#sidebarDiv{
    z-index: 400;
}

#sidebarDiv,
#mainDiv {
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease;
}

#mainDiv .form-group {
    flex: 0 0 auto;
    width: 50%;
}

#mainDiv .mgc-onload-offcanvas .form-group {
    flex: 0 0 auto;
    width: 100%;
}

.mainDiv_shifted {
    padding-right: 400px;
    /* Larghezza dell'offcanvas */
}

#sidebarDiv.w-0 {
    width: 0 !important;
    padding: 0 !important;
}

.sidebar {
    font-family: "Poppins", "Arial", sans-serif;
    font-weight: normal;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    scrollbar-width: none;
}

.sidebar .nav-link {
    color: var(--bs-primary);
    transition: transform .25s ease;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    -webkit-transition: transform .25s ease;
}

/* Icone sidebar esclusi i chevron */
.sidebar .nav-link i:not(.fa-xs) {
    font-size: 1.5rem;
}

.sidebar .nav-link:hover {
    transform: translate(0.5vh);
    color: var(--bs-secondary);
    cursor: pointer;
}

.sidebar .mgc-sidebar-list{
    scrollbar-width: none;
    overflow-x: hidden !important;
}

.mobileMenu a {
    min-height: 6vh;
}

.desktopMenu a {
    min-height: 4.5vh;
}

.mgc-selected-module{
    width: 82%;
}

/*
 * TabsBar
 */
.mgc-module-jump-item{
    border-bottom: 1px solid var(--bs-primary) !important;
}

.mgc-navbar {
    height: 64px !important;
}

.mgc-unread-notifications-popup {
    width: min(420px, 90vw);
    max-height: min(80vh, 600px);
    min-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.mgc-unread-notifications-popup:has(.mgc-notifications) {
    min-height: 400px;
}

.mgc-unread-notifications-popup .dropdown-divider {
    margin: 0;
}

.mgc-unread-notifications-list > li {
    padding: 0;
}

.mgc-notifications {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    white-space: normal;
    text-align: left;
    border-radius: 0;
}

.mgc-notifications:hover,
.mgc-notifications:focus {
    background-color: var(--bs-light);
}

.mgc-notification-body {
    color: var(--bs-body-color);
}

.mgc-notification-animate {
    animation: bounce 1.5s ease-in-out;
}

@keyframes bounce {
    0%, 50%, 100% {
        transform: translateY(0);
    }
    25%, 75% {
        transform: translateY(-20px) scale(1.5); /* Maggiore altezza del rimbalzo */
    }
    50% {
        transform: translateY(0);
    }
}

.mgc-logo {
    max-width: 80%;
    max-height: 64px;
}

.mgc-page-title,
.mgc-font-header {
    font-family: "Poppins", "Arial", sans-serif;
}

#mgc-shared-vault-notifications{
    transform: translateX(-7px);
}

/*
    Default: Menù collapsed in mobile, visibile su dispositivi più grandi
 */
@media (min-width: 768px) {
    .collapse.dont-collapse-sm {
        display: block;
        height: auto !important;
        visibility: visible;
    }
}


/*
 * Login form
 */

.form-login {
    font-family: "Poppins", "Arial", sans-serif;
    width: 100%;
    max-width: 500px;
    padding: 15px;
    margin: auto;
}

.form-login input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-login input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-login .form-floating:focus-within {
    z-index: 2;
}

/*
 * To top button
 */

.mgc-to-top-button{
    transition: transform 0.4s ease;
    bottom: -125px;
    margin: 0 auto !important;
    display: block;
}

/*
 * Bottom plus button
 */

.mgc-bottom-right-fixed-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1;
}

.mgc-btn-offcanvas-add-bottom,
.mgc-btn-offcanvas-edit,
.mgc-btn-new-vault-bottom,
.mgc-btn-create-new-vault,
.mgc-btn-show-emergency-kit,
.mgc-btn-generate-password {
    transition: transform .25s ease;
    -webkit-transition: transform .25s ease;
}

.mgc-btn-offcanvas-add-bottom:hover,
.mgc-btn-offcanvas-edit:hover,
.mgc-btn-new-vault-bottom:hover,
.mgc-btn-create-new-vault:hover,
.mgc-btn-show-emergency-kit:hover,
.mgc-btn-generate-password:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/*
 * Bottom filter button
 */

.mgc-btn-offcanvas-filter-bottom {
    transition: transform .25s ease;
    -webkit-transition: transform .25s ease;
}

.mgc-btn-offcanvas-filter-bottom:hover {
    transform: scale(1.1);
}

.mgc-offcanvas {
    transition: all 0.5s ease-in-out;
}

.mgc-offcanvas > .offcanvas-body {
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .mgc-offcanvas-centered.show {
        margin: 5% auto;
    }

    .mgc-offcanvas-centered{
        height: 80%;
        width: 60%;
        margin: 0 auto;
    }
}

.mgc-offcanvas-centered{
    height: 80%;
}

.mgc-offcanvas-filter.show {
    position: fixed;
    z-index: 1048;
}

.mgc-fixed-buttons{
    z-index: 1000;
    transition: transform 0.5s ease;
}

/*
 * Isola delle azioni
 */
.mgc-actionIsle{
    max-width: fit-content;
    border-radius: 10px 10px 0 0 !important;
    gap: 15px;
    bottom: -130px;
    transition: transform 0.4s ease;
    z-index: 1001;
}

/*
 * Profile settings
 */
.mgc-profile-upload-section {
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--bs-white);
}
.mgc-profile-preview-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}


/*
 * Profile picture
 */
.mgc-profile-picture{
    height: 40px;
    width: 40px;
    transition: transform 0.3s ease;
}

.mgc-board-card .mgc-profile-picture{
    height: 35px;
    width: 35px;
}

.mgc-profile-picture:hover{
    transform: scale(1.2);
    cursor: pointer;
}

.mgc-profile-picture-border{
    border: 1px solid #f8a54c;
}

.mgc-user-profile-tab{
    max-width: 90%;
}

/*
 * User popup
 */

.mgc-user-popup{
    position: absolute;
    margin: 0px;
    min-width: 300px;
    width: max-content !important;
    max-width: 100vw;
}

.mgc-profile-picture-div::after,
.mgc-profile-picture.dropdown-toggle::after {
    display: none !important;
}

.mgc-profile-picture-popup{
    height: 100px;
    width: 100px;
}

/*
 * Custom CSS
 */

.mgc-rounded-left {
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
}

.mgc-rounded-right {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}

.mgc-rounded-3-left {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.mgc-rounded-3-right {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.mgc-icon-highlight:hover {
    color: var(--bs-secondary) !important;
}

.mgc-external-module img{
    max-width: 60%;
}

.mgc-searchbar{
    width: 70%;
}

.width-max-content{
    width: max-content;
}

.min-width-max-content {
    min-width: max-content !important;
}

.max-width-max-content{
    max-width: max-content;
}

.max-width-100vw{
    max-width: 100vw !important;
}

.width-min-content {
    width: min-content;
}

.width-fit-content{
    width: fit-content;
}

.height-max-content{
    height: max-content;
}

.height-fit-content{
    height: fit-content;
}

.max-height-100vh{
    max-height: 100vh;
}

.main-margin-bottom{
    margin-bottom: 85px;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.z-index-3 {
    z-index: 3;
}

.z-index-4 {
    z-index: 4;
}

.z-index-5 {
    z-index: 5;
}

.z-index-10 {
    z-index: 10;
}

.display-7{
    font-size: calc(1.1rem + 1vw);
    font-weight: 300;
    line-height: 1.2;
}

.display-8{
    font-size: calc(0.95rem + 0.6vw);
    font-weight: 300;
    line-height: 1.2;
}

.white-space-normal {
    white-space: normal;
}

.white-space-pre-wrap {
    white-space: pre-wrap;
}

.float-right{
    float: right !important;
}

.float-left{
    float: left !important;
}

.left-0{
    left: 0;
}

.right-0{
    right: 0;
}

.scrollbar-width-none{
    scrollbar-width: none;
}

.scrollbar-width-thin{
    scrollbar-width: thin;
}

.cursor-pointer{
    cursor: pointer;
}

.list-style-type-none{
    list-style-type: none;
}

.overflow-x-auto{
    overflow-x: auto;
}

.white-space-nowrap {
    white-space: nowrap;
}

#openTabs i{
    font-size: 1.4rem;
}

.mgc-hover-scale:hover{
    transform: scale(1.015);
    transition: transform 0.2s ease-in-out;
    z-index: 1;
}

.mgc-rounded-card{
    border-radius: 10px !important;
}

.mgc-rounded-card .card-header{
    border-radius: 10px 10px 0 0;

}

.mgc-rounded-card .card-footer{
    border-radius: 0 0 10px 10px;
}

.mgc-rounded-card-top {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.mgc-rounded-card-no-top {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.mgc-remaining-users{
    position: absolute;
    bottom: 35%;
    left: 40%;
    z-index: 10;
}

.mgc-remaining-users div{
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/*
 * Table header cursore cliccabile se la colonna è ordinabile
 */
.card-body table thead tr th[data-dbcolumn] {
    cursor: pointer;
}

.card-body table thead tr th[data-dbcolumn]:hover {
    color: var(--bs-primary);
}

/*
 * Bottoni "tag" per ordinamento e filtro del listing
 */
.mgc-listing-order-reset-one:hover .fa-caret-up,
.mgc-listing-order-reset-one:hover .fa-caret-down,
.mgc-listing-order-reset-one .fa-xmark {
    display: none;
}

.mgc-listing-order-reset-one:hover .fa-xmark {
    display: inline-block;
}

.mgc-listing-filter-reset-one:hover .fa-filter,
.mgc-listing-filter-reset-one .fa-xmark,
.mgc-edit-fullscreen-reset:hover .fa-filter,
.mgc-edit-fullscreen-reset .fa-xmark {
    display: none;
}

.mgc-listing-filter-reset-one:hover .fa-xmark,
.mgc-edit-fullscreen-reset:hover .fa-xmark {
    display: inline-block;
}

.mgc-highlight {
    background-color: rgba(var(--bs-warning-rgb), 0.7);
    border-radius: 5px;
}

/*
 * Longtext-popup listing
 */
.mgc-longtext-popup{
    word-wrap: break-word;
    white-space: normal;
    max-width: 500px;
}

.dropdown-longtext-toggle:after{
    display: none;
}

/*
 * Ultima colonna del listing (toolbar) si adatta al numero di icone
 */
.mgc-table-row td:last-child td:first-child {
    width: 1%;
    white-space: nowrap;
}

.mgc-table-row:hover {
    box-shadow: 0 .1rem 1rem rgba(0,0,0,.3)!important;
}

.mgc-brd-searchbar{
    background-color: #e5edf2;
}

.mgc-board-content{
    margin-right: 50px;
}

.mgc-board-container {
    overflow-x: scroll;
    overflow-y: auto;
    height: 100%;
    max-height: 100%;
    padding-top: 25px;
}

.mgc-board-lane,
.mgc-brd-board-lane {
    min-height: 50px;
}

.mgc-brd-board-lane{
    max-height: 61vh;
    overflow-y: auto;
    scrollbar-width: thin;
    box-shadow: inset 0px 0px 20px 10px rgba(0, 0, 0, 0.1);
}

.mgc-board-column-header{
    cursor: grab;
    box-shadow: 0 5px 60px 2px rgba(0, 0, 0, 0.1)
}

.mgc-board-column-footer{
    box-shadow: 0 -5px 40px 4px rgba(0, 0, 0, 0.1)
}

.mgc-board-card {
    cursor: grab;
    border-radius: 10px;
}

.mgc-board-card .dropdown-menu,
.mgc-board-card .mgc-user-popup{
    position: fixed !important;
}

.mgc-board-dragging-card{
    transform: rotate(30deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mgc-board-comments-section img,
.mgc-board-card img,
.tck-message-card-body img {
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 5px !important;
}

.tck-message-card table{
    max-width: 100% !important;
    table-layout: fixed !important;
    word-break: break-word !important;
}

.mgc-board-card-attribute-extra {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.mgc-board-card-attribute-extra-hide {
    max-height: 0;
}

.mgc-board-color{
    width: 5px;
    border-radius: 5px;
}

.mgc-card-comments{
    cursor: pointer;
    max-width: fit-content;
}

.mgc-board-btn-add-status{
    cursor: pointer;
}

.mgc-board-ghost > div{
    border: 5px solid white;
    background-color: transparent;
}

.mgc-board-ghost span{
    font-size: 60px;
    color: white;
}

.badge {
    font-size: 0.85em;
}
.badge.badge-sm {
    font-size: 0.7em;
}

.mgc-table-row-checkbox {
    cursor: pointer;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.mgc-scrolling {
    cursor: grabbing;
}

.mgc-dropdown-icons {
    padding: 0.5rem;
    min-width: 0;
}

.dropdown-menu a,
.mgc-list a{
    border-radius: 5px;
}

.dropdown-menu a:hover,
.mgc-list a:hover{
    background-color: rgb(235, 235, 235);
}


/*
    Stile dell'edit offcanvas
 */

.mgc-optional-field-hidden {
    display: none !important;
}

/*
 * Fullcalendar overrides
 */
.fc-day,
.fc-timegrid-slot-lane {
    cursor: copy;
}

.fc-event-time {
    overflow: visible !important;
    font-weight: bold;
}

.fc-col-header-cell,
.fc-toolbar-title,
.fc-list-day-text,
.fc-list-day-side-text {
    text-transform: capitalize;
}

.fc-direction-ltr .fc-timegrid-col-events{
    margin: 0 15% 0 2px !important;
}

.fc-event{
    overflow: clip;
}

/*
 * Stile del calendario
 */
.mgc-calendar-event:hover {
    cursor: pointer !important;
    opacity: 0.8;
}

.mgc-calendar-toggle:hover {
    cursor: pointer !important;
}

@media (max-width: 767.98px) {
    .fc .fc-toolbar.fc-header-toolbar {
        display: block;
        text-align: center;
    }

    .fc-header-toolbar .fc-toolbar-chunk {
        display: block;
        font-size: 0.8em;
    }
}

@media (max-width: 575px) {
    .mgc-calendar-container{
        margin-bottom: 70px !important;
    }

    .fc-header-toolbar {
        display: none !important;
    }

    .fc-footer-toolbar{
        margin-top: 10px !important;
    }

    .fc .fc-col-header-cell-cushion{
        display: block;
        padding: 0;
    }
}

/*
 * Stile campi della form
 */
.mgc-form-field-valid {
    /*
    border-color: var(--bs-success) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='green' viewBox='0 0 512 512'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%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);

     */
}

.mgc-form-field-error {
    border-color: var(--bs-danger) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='red' viewBox='0 0 512 512'%3E%3Cpath d='M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z'/%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);
}

.mgc-form-field-warning {
    /*
    border-color: var(--bs-warning) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='orange' viewBox='0 0 512 512'%3E%3Cpath d='M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z'/%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);
    */
}

input[type=color] {
    height: 34px;
}

.mgc-input-2digits {
    width: 60px !important;
}

.mgc-input-group-timer {
    flex-shrink: 0;
    width: auto;
}

.mgc-input-timer {
    width: 67px !important;
    border: 1px solid var(--bs-primary) !important;
    font-size: 14px;
}

.mgc-input-number {
    max-width: 120px;
}

.mgc-input-number .btn {
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.mgc-input-number .form-control {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Numeric input senza frecce */
.mgc-input-number-clean::-webkit-outer-spin-button,
.mgc-input-number-clean::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mgc-input-number-clean {
    -moz-appearance: textfield; /* Firefox */
}

.mgc-file-add-div {
    border: 1px solid #ced4da;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.mgc-file-add-parent{
    cursor: pointer;
}

.mgc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999999;
}

.mgc-loading-overlay-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.mgc-loading-overlay-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mgc-min-height-0 {
    min-height: 0 !important;
}

.mgc-min-height-200 {
    min-height: 200px !important;
}

.mgc-min-height-150 {
    min-height: 150px !important;
}

.mgc-min-height-60 {
    min-height: 60px !important;
}

.mgc-fixed-width-50 {
    width: 50px !important;
}

.mgc-fixed-width-150 {
    width: 150px !important;
}

.mgc-fa-homepage-icon {
    font-size: 6rem;
}

.mgc-home-quick-access-icon-circle{
    width: 72px;
    height: 72px;
}

.mgc-home-quick-access-item{
    width: 100px;
}

.mgc-home-quick-access-wrapper.mgc-home-quick-access-editing .mgc-home-quick-access-item{
    cursor: grab;
}

.mgc-home-quick-access-wrapper.mgc-home-quick-access-editing .mgc-home-quick-access-item:active{
    cursor: grabbing;
}

.mgc-home-quick-access-sortable.mgc-sorting-active .mgc-hover-scale:hover{
    transform: none;
}

.mgc-home-quick-access-ghost{
    opacity: 0.35;
}

.mgc-home-quick-access-chosen{
    z-index: 10;
}

.mgc-home-quick-access-drag{
    z-index: 20;
}

.mgc-home-quick-access-icon-wrapper{
    position: relative;
}

.mgc-home-quick-access-rename-btn,
.mgc-home-quick-access-delete-btn{
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.mgc-home-quick-access-rename-btn{
    top: -5px;
    left: -5px;
}

.mgc-home-quick-access-delete-btn{
    top: -5px;
    right: -5px;
}

.mgc-home-quick-access-rename-btn,
.mgc-home-quick-access-delete-btn{
    display: none !important;
}

.mgc-home-quick-access-wrapper.mgc-home-quick-access-editing .mgc-home-quick-access-rename-btn,
.mgc-home-quick-access-wrapper.mgc-home-quick-access-editing .mgc-home-quick-access-delete-btn{
    display: flex !important;
}

.mgc-home-dashboard-icon-wrapper{
    position: relative;
}

.mgc-home-dashboard-delete-btn{
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.mgc-home-dashboard-delete-btn{
    top: -15px;
    right: -15px;
}

.mgc-home-dashboard-delete-btn{
    display: none !important;
}

.mgc-home-dashboard-wrapper.mgc-home-dashboard-editing .mgc-home-dashboard-delete-btn{
    display: flex !important;
}

.chartjs-table {
    width: 100%;
    margin-top: 10px;
}

.chartjs-table th,
.chartjs-table td {
    border-collapse: collapse;
    padding: 5px 7px 5px 7px;
}

.chartjs-thead {
    font-weight: bold;
}

.chartjs-tbody {
    text-align: center;
}

.chartBox canvas{
    max-height: 250px;
}

/**
KB STYLES
 */

.mgc-kb-category {
    border-radius: 10px !important;
}

.mgc-kb-category:hover {
    cursor: pointer;
}

.mgc-kb-category.selected {
    outline: 5px solid;
}

div > div:has(#kb_search_form),
div > div:has(#pm_search_form){
    background-color: #e5edf2;
}


/*
 * TCK-TMS-TICKET STYLES
 */

.tck-message-contact {
    border-left: 5px solid var(--bs-secondary);
    border-bottom: 5px solid var(--bs-secondary);
}

.tck-message-user {
    border-right: 5px solid var(--bs-primary);
    border-bottom: 5px solid var(--bs-primary);
}

.tck-message-system {
    margin: 5px;
}

.tck-message-history-container {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tck-message-history-reverse {
    display: flex;
    flex-direction: column-reverse;
}

.mgc-tck-attachment-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mgc-tck-attachment-item:hover {
    background-color: #eef1f5;
}

.mgc-input-timer-running {
    background-color: rgba(var(--bs-success-rgb), 0.7) !important;
}

.mgc-input-timer-stop {
    background-color: rgba(var(--bs-danger-rgb), 0.7) !important;
}

.tck-show-cropped-text ~ hr{
    display: none !important;
}

.tck-cropped-text,
.tck-cropped-text.hide ~ * {
    display: none;
}

/* OTHERS */

.mgc-toggle-password-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}


.mgc-clipboard-copy-btn {
    cursor: copy;
}


.mgc-icon-floating-right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.mgc-toggle-password-visibility:hover {
    color: var(--bs-secondary);
    /* Cambia il colore a tuo piacimento */
}

.custom-number-input {
    -moz-appearance: textfield;
    /* Firefox */
}

.custom-number-input::-webkit-outer-spin-button,
.custom-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-number-input:focus::-webkit-outer-spin-button,
.custom-number-input:focus::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.custom-number-input:focus {
    outline: none;
}

.mgc-2fa-disable {
    cursor: pointer;
}

/* Tables */
table.mgc-listing-table tbody{
    border-top: solid 1px #000 !important;
}

.mgc-listing-table th{
    font-weight: 600;
    border-bottom: solid 1px #000;
}

.mgc-listing-table td{
    padding-top: 0.10rem !important;
    padding-bottom: 0.10rem !important;
}

.mgc-listing-column-priority{
    height: 0;
    transform: translateY(-32px);
}

.mgc-listing-column-priority span{
    transform: translate(-0.5px, 6px);
}

.mgc-listing-table input[type='checkbox']{
    height: 15px;
    width: 15px;
}

.mgc-listing-table .mgc-table-row-checkbox{
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.mgc-listing-vertical-th{
    writing-mode: sideways-lr;
    text-orientation: mixed;
}

td.mgc-table-grid{
    border-left: solid 1px #e3e3e3;
}

.mgc-hidden-field {
    display: none;
}


/**
    PM-VAULT STYLES
 */

.otp-timer-wrapper {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-timer-svg {
    width: 100%;
    height: 100%;
}

.otp-timer-svg circle {
    transition: stroke-dasharray 0.5s ease, stroke 0.3s ease;
}

.mgc-activate-internal-shares-vault {
    cursor: pointer;
}

.mgc-vault > .card-body {
    min-height: 80px;
}

.mgc-border-primary {
    border-right: 5px solid var(--bs-primary);
    border-bottom: 5px solid var(--bs-primary);
}

.mgc-border-secondary {
    border-right: 5px solid var(--bs-secondary);
    border-bottom: 5px solid var(--bs-secondary);
}

.mgc-shared-user-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mgc-shared-user-item:hover {
    background-color: #eef1f5;
}

/* dashboard */

.mgc-dashboard-filter .row .form-control{
    max-height: 34px;
}

.mgc-export-dashboard-card{
    cursor: pointer;
}

.cloned-linked-group.multiple-linked-fields{
    border: solid 1px var(--bs-primary);
}

/**
    PAGINA PUBBLICA VALUTAZIONE TICKET
 */

.emoji-radio input[type="radio"] {
    display: none;
}

.emoji-radio label {
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 3px solid transparent;
    border-radius: 1rem;
    transition: all 0.25s ease;
}

.emoji-radio label i {
    font-size: 4rem;
    transition: transform 0.2s;
}

.emoji-radio input[type="radio"]:checked + label {
    transform: scale(1.1);
    border-color: var(--border-color); /* colore dinamico da PHP */
    background-color: rgba(0, 0, 0, 0.04);
}

.emoji-radio label:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: scale(1.05);
}

.emoji-radio.is-invalid {
    padding: 0.75rem;
    border: 1px solid var(--bs-danger);
    border-radius: 1rem;
}

@media print {

    .mgc-dashboard-container{
        margin-bottom: 0 !important;
        line-height: 0;

        table td{
            padding: 5px !important;
        }

        .card{
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        .card-box {
            width: fit-content;
            min-width: 25%;
            break-inside: avoid;
            min-height: 0;
        }

        .card-body{
            padding: 0 !important;
            line-height: 11px;
            font-size: 10px;
        }
    }
}

/* Listing link */
.mgc-link-table .card{
    height: 50vh;
}

.mgc-link-summary{
    height: 34vh;
}

/* Select jump */
.mgc-select-jump-container{
    padding: 4px 8px;
}

.mgc-tck-box-info-header{
    transition: border-radius 0.3s ease-in-out;
}

.mgc-field-search + .mgc-single-filter-horizontal-line {
    display: block !important;
    margin: 0 !important;
}