#mainToast {
    pointer-events: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
#mainToast.show {
    pointer-events: auto;
    opacity: 1;
    height: auto;
}


.form-control {

    padding: 15px; /* SISTEMO DIMENSIONE INPUT */

}

select.form-control {

    /* AGGIUNGE FRECCIA */
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;

    font-size: 0.8rem; /* ADATTO FONT AL RESTO DEL TESTO */

}

select:hover {

    cursor: pointer;

}

.tooltips, small.form-text {


    font-size: 10px;

}

.tooltips a.popup-a {
    color: blue;
    cursor: pointer;
}

/* ==== SWITCH TABELLA ==== */
td .checkbox.checbox-switch label > input:checked + span:before, .checkbox-inline.checbox-switch > input:checked + span:before {
    left: 14px;
}

td .checkbox.checbox-switch label span:before, .checkbox-inline.checbox-switch span:before {
    left: -12px;
}
/* ==== ==== */

/* ==== CUSTOM POPUP ==== */
body.popup .content-wrapper {
    padding-left: 30px!important;
}
/* ==== ==== */

/* ==== AUTOCOMPLETAMENTO ==== */
.lw-ac-list {
    display: none;
    z-index: 99999;
    position: absolute;
    top: 0;
    background-color: white;
    max-height: 200px;
    width: 100%;
    overflow-y: auto;
    -webkit-box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 15px rgba(0,0,0,0.1);
}
.lw-ac-list > p {
    padding: 15px 15px 15px 20px;
}
.lw-ac-list > p:hover {
    background-color: #f6f7f8;
    cursor: pointer;
}
.lw-ac-list > p[disabled] {
    color: #aaa;
    font-weight: 300;
    cursor: no-drop;
}
.lw-ac-list > p[disabled]:hover {
    color: #aaa;
    background: #fff;
    font-weight: 300;
    cursor: no-drop;
}

.lw-ac-input {
    position: relative;
}

.lw-ac-input .clear-input-x {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #aaa;
    z-index: 10;
    transition: all 0.5s;
}

.lw-ac-input .clear-input-x:hover {
    color: #dc3545;
}
/* ==== ==== */

/* ==== MODIFICHE CALENDARIO ==== */
.fc-axis {

    width: 49px;

}

.fc-view-container {
    min-height: 509px;
}

.fc-row .fc-content-skeleton {
    overflow-y: auto !important;
    max-height: 220px;
    scrollbar-width: thin;           /* Firefox */
    scrollbar-color: #999 #f1f1f1;   /* Firefox */
}

/* Chrome, Edge, Safari */
.fc-row .fc-content-skeleton::-webkit-scrollbar {
    width: 3px;
}
.fc-row .fc-content-skeleton::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 3px;
}
.fc-row .fc-content-skeleton::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fc-list-item .fc-event-custom {
    padding: 8px 10px;
    margin: 5px;
    border-radius: 3px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.fc-row .calendar-hide,
.fc-list-item .fc-event-custom hr { display: none; }

.fc-list-item .badge {

    min-width: 100px;

}
/* ==== ==== ==== */

/* ==== TOOLTIPS IN BOTTONE ==== */
.btn-hover-text {
    white-space: nowrap;
}

/* stato iniziale: testo "compresso" e invisibile */
.btn-hover-text span {
    display: inline-block;
    height: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(-6px);
    /* ⛔ transizioni SOLO in ENTRATA */
    transition:
            max-width 0.45s ease,
            opacity 0.45s ease,
            transform 0.45s ease,
            margin-left 0.45s ease;
}

/* hover → si espande gradualmente */
.btn-hover-text:hover span {
    max-width: 200px; /* > lunghezza testo */
    height: 15px;
    line-height: 20px;
    opacity: 1;
    transform: translateX(0);
    margin-left: 6px;

    /* ✔ entrata animata */
    transition:
            max-width 0.45s ease,
            opacity 0.45s ease,
            transform 0.45s ease,
            margin-left 0.45s ease;
}

/* USCITA → NASCOSTA SUBITO (senza animazione) */
.btn-hover-text:not(:hover) span {
    transition: none !important;
}
/* ==== ==== ==== */

/* ==== VARIANTI COLORE BOTTONI ==== */
.button.primary {
    background: #0d6efd;
    color: #ffffff;
    border: 2px solid #0d6efd;
}

.button.primary:hover,
.button.primary:focus {
    background: #0b5ed7;
    color: #ffffff;
    border-color: #0a58ca;
}

.button.primary:active {
    background: #0a58ca;
    color: #ffffff;
    border-color: #0a53be;
}

.button.button-border.primary {
    background: transparent;
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.button.button-border.primary:hover,
.button.button-border.primary:focus {
    background: #0b5ed7;
    color: #ffffff;
    border-color: #0a58ca;
}

.button.button-border.primary:active {
    background: #0a58ca;
    color: #ffffff;
    border-color: #0a53be;
}
/* ==== ==== ==== */
