﻿i.bi, i[class^=fonticon-], i[class*=" fonticon-"], i[class^=fa-], i[class*=" fa-"], i[class^=la-], i[class*=" la-"] {
    font-size: 1.5rem;
}

.pin-check {
    background-size: 60% 60% !important;
}

.search-item {
    cursor:pointer;
}
.search-item:hover {
    color: var(--bs-primary);
}
.tempus-dominus-widget {
    font-family: Inter, Helvetica, "sans-serif" !important;
}

/* GENERALE */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 0.85rem;
    font-size: 1.15rem;
}

/* SELECT SINGOLA */
.select2-container--bootstrap-5 .select2-selection--single {
    min-height: 42px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.75rem 1rem 0.75rem 2.5rem; /* spazio per la X */
}

/* TESTO SELEZIONATO O PLACEHOLDER */
    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        padding: 0;
        margin: 0;
        font-size: 1.15rem;
        color: #7E8299;
    }

/* COLORE PLACEHOLDER SE NON SELEZIONATO (gestito via JS) */
.select2-container--bootstrap-5:not(.has-selection) .select2-selection__rendered {
    color: #A1A5B7 !important; /* grigio chiaro */
    padding-left: 0 !important;
}

/* RIMUOVE PADDING PER LA X QUANDO VUOTO */
.select2-container--bootstrap-5:not(.has-selection) .select2-selection--single {
    padding-left: 1.35rem !important;
}

/* CLEAR BUTTON (X) */
.select2-container--bootstrap-5 .select2-selection--clearable .select2-selection__clear {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 1.1rem;
    color: #7E8299;
    opacity: 0.5;
    transition: opacity 0.2s;
}

    .select2-container--bootstrap-5 .select2-selection--clearable .select2-selection__clear:hover {
        opacity: 1;
    }
/* MULTISELECT: struttura coerente */
.select2-container--bootstrap-5 .select2-selection--multiple {
    background-color: #f5f8fa;
    border-radius: 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.select2-container--bootstrap5 .select2-selection--multiple:not(.form-select-sm):not(.form-select-lg) .select2-search__field {
    font-size: 1.15rem;
    padding-left: 0.4rem;
    color: #7E8299;
    height: 28px;
    line-height: 28px;
}


/* Area di input (il campo di ricerca inline) */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline {
        display: inline-flex;
        align-items: center;
}

        /* Placeholder del campo (quando vuoto) */
        .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder,
        .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::-webkit-input-placeholder {
            color: #A1A5B7 !important;
            font-size: 1.15rem !important;
        }

        /* Firefox */
        .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::-moz-placeholder {
            color: #A1A5B7 !important;
        }


.form-control.form-control-solid:not(:placeholder-shown),
.form-select.form-select-solid:not(:placeholder-shown),
.select2-container--bootstrap-5.has-selection .select2-selection--single .select2-selection__rendered {
    color: var(--bs-text-gray-800) !important;
}

/* Placeholder “gg/mm/aaaa” grigio chiaro */
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-text {
    color: #A1A5B7; /* placeholder grigio chiaro */
}
/* Colore scuro per il testo selezionato */
input[type="date"].has-value::-webkit-datetime-edit-year-field,
input[type="date"].has-value::-webkit-datetime-edit-month-field,
input[type="date"].has-value::-webkit-datetime-edit-day-field,
input[type="date"].has-value::-webkit-datetime-edit-text {
    color: var(--bs-text-gray-800);
}



.ck-editor__editable {
    font-family: Inter, Helvetica, "sans-serif" !important;
    font-size: 1rem !important;
    color: #333 !important;
}



#alert-container {
    padding-left: 0;
    padding-right: 0;
    margin-top: 10px;
}

/*.search-hidden {
    display: none !important;
}
.search-item {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 4px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    color: #3f4254;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.search-item:hover {
    background-color: #f1faff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
    color: #009ef7;
    cursor: pointer;
}
.search-highlight {
    font-weight: bold;
    background-color: transparent;
    color: #009ef7;
}
.menu-sub-dropdown[data-kt-search-element="content"] {
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e3e6ef;
    overflow-y: auto;
    max-height: 300px;
}
    .menu-sub-dropdown[data-kt-search-element="content"]::-webkit-scrollbar {
        width: 6px;
    }

    .menu-sub-dropdown[data-kt-search-element="content"]::-webkit-scrollbar-thumb {
        background-color: #d1d1d1;
        border-radius: 3px;
    }
*/
