.banner i {
    margin-right: 5px;
}

.logo_mobile a, .logo a {
    text-decoration: none;
}

.fi-layout {
    height: auto;
}

button.fi-toggle {
    border-radius: 3.40282e38px;
}

.fi-input-wrp,
.fi-select-input-wrp,
.fi-fieldset,
.fi-section,
.fi-card,
.fi-modal-window,
.fi-ta-ctn,
.fi-sidebar-item,
.fi-ac-btn {
    border-radius: 0px !important;
}

.fi-btn {
    color: #fff !important;
    border-radius: 4px !important;
    background-color: #000 !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    text-decoration: none;
    padding: 0.45rem 0.5rem!important
}

/* Accenti e Focus (Bootstrap 5 form-control style) */
.fi-input-wrp,
.fi-select-input-wrp {
    /*border: 1px solid #dee2e6 !important;*/
    background-color: #fff !important;
    padding: 0px !important;
    box-shadow: none !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-shadow: 0 0 #0000 !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

.fi-input-wrp:focus-within,
.fi-select-input-wrp:focus-within {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}

/* Padding e Font per l'input interno */
.fi-input-wrp input,
.fi-input-wrp select,
.fi-input-wrp textarea,
.fi-select-input-wrp select. {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    padding: .375rem .75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-color: transparent !important;
}

.tiptap-editor {
    border: 1px solid #dee2e6 !important;
    border-radius: 0px !important;
}

/* Mira al componente Tiptap specifico senza dipendere dalla tua classe */
.filament-tiptap-editor .ProseMirror,
div[data-component-name="filament-tiptap-editor"] .ProseMirror,
.tiptap-wrapper .ProseMirror {
    min-height: 500px !important;
    height: 500px !important;
}

.editor-altezza-fissa {
    display: none !important;
    border: 1px solid red !important;
}

.fi-btn-primary,
.fi-ac-btn-primary,
.fi-ac-action[type="submit"] {
    background-color: #ea1c24 !important;
}

.fi-btn-primary:hover,
.fi-ac-btn-primary:hover {
    background-color: #333 !important;
    border-color: #ea1c24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Sidebar Styling */
.fi-sidebar {
    border-right: 1px solid #eee !important;
}

.fi-sidebar-item-active {
    background-color: #fcfcfc !important;
    border-left: 4px solid #ea1c24 !important;
    color: #ea1c24 !important;
}

/* Table styling */
.fi-ta-header-cell {
    background-color: #f9f9f9 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
}

.fi-ta-row:hover {
    background-color: #fefefe !important;
}

/* Label improvements */
.fi-fo-field-wrp-label label {
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.02em !important;
}

/* Spatie Media Browser Styling (Anec Design System) */
.media-item-card {
    border-radius: 0px !important;
    transition: all 0.3s ease !important;
}

.media-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: #ea1c24 !important;
}

.spatie-media-browser-container .grid {
    border-radius: 0px !important;
    background-color: #fff !important;
}

.fi-modal-content {
    border-radius: 0px !important;
    border-top: 4px solid #ea1c24 !important; /* Accento rosso Anec */
}

.fi-tabs-item, .fi-tabs-header {
    border-radius: 0px !important;
}

.fi-tabs-item-active {
    border-bottom: 2px solid #ea1c24 !important;
    color: #ea1c24 !important;
    background-color: rgba(var(--gray-50), 1) !important;
}

.fi-fo-tabs {
    box-shadow: none !important;
    border-radius: 0px !important;
}

.fi-tabs {
    padding: 0px !important;
    height: 40px;
}

/* Rendi il separatore più visibile (opacità 40% invece di 10%) */
.tiptap-editor .border-l.border-gray-950\/10 {
    border-color: rgba(var(--gray-400), 0.4) !important;
    border-left-width: 1.5px !important; /* Leggermente più spesso */
    margin: 0 0.75rem !important;        /* Più respiro tra i gruppi di bottoni */
}

/* Variante per il tema Dark */
.dark .tiptap-editor .dark\:border-white\/20 {
    border-color: rgba(var(--gray-600), 0.5) !important;
}

.tiptap-editor button.tiptap-tool {
    border-radius: 0 !important;
    border: 1px solid rgba(var(--gray-400), 0.4);
    box-shadow: none;
}

.tiptap-editor .tiptap-toolbar button.tiptap-tool:hover {
    background-color: #f9f9f9;
    border-color: #ea1c24;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Workaround per il ridimensionamento delle immagini nell'editor */
.tiptap-content img {
    display: inline-block !important;
    resize: both !important;
    overflow: hidden !important;
    max-width: 100% !important;
    cursor: nwse-resize !important;
}

.tiptap-content img.ProseMirror-selectednode {
    outline: 2px dashed #ea1c24 !important;
}

/* Styling Media Browser Gallery */
.media-gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    max-height: 450px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #ea1c24 #f1f1f1;
}

.media-gallery-grid::-webkit-scrollbar {
    width: 6px;
}

.media-gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.media-gallery-grid::-webkit-scrollbar-thumb {
    background: #ea1c24;
}

.media-gallery-grid .media-item-card {
    aspect-ratio: 1 / 1 !important;
}

/* Bersagliamo specificamente la checkbox della tabella di Filament */
.fi-ta-record-checkbox,
.fi-checkbox-input {
    /* Reset degli stili Tailwind di Filament */
    appearance: checkbox !important; /* Forza l'aspetto nativo/browser se necessario */
    border-radius: 0.25em !important; /* Arrotondamento Bootstrap */
    border: 1px solid #dee2e6 !important; /* Colore bordo Bootstrap */
    background-color: #fff !important;
    ring: none !important; /* Rimuove l'effetto ring di Tailwind */
    box-shadow: none !important;

    /* Dimensioni simili a Bootstrap */
    width: 1em !important;
    height: 1em !important;
    margin-top: 0.25em;
    vertical-align: top;
}

/* Stato Checked (Simulando l'azzurro Bootstrap) */
.fi-ta-record-checkbox:checked,
.fi-checkbox-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-size: 100% 100% !important;
}

/* Stato Focus */
.fi-ta-record-checkbox:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.sticky-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
    background-color: white !important;
    margin: 0 !important;
}

.fi-body.fi-panel-anec {
    background-color: white !important;
}

.custom-pagination .text-sm {
    clear: both;
    float: left;
    padding-top: .755em;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.custom-pagination nav.flex {
    width: 100%;
    display: inline-block;
}

.custom-pagination .relative {
    border: 0 none!important;
    box-shadow: unset !important;
}

.custom-pagination .relative button {
    border: 0 none;
    box-shadow: unset !important;
    padding: .5em 1em!important;
}

.custom-pagination .relative [aria-current="page"] span {
    background: linear-gradient(to bottom, rgba(230, 230, 230, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%)!important;
    border: 1px solid rgba(0, 0, 0, 0.3)!important;
    padding: .5em 1em!important;
}

.fi-main.container {
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 0;
	width: 100%;
	padding-right: calc(var(--bs-gutter-x)* 0.5)!important;
	padding-left: calc(var(--bs-gutter-x)* 0.5)!important;
	margin-right: auto!important;
	margin-left: auto!important;
}

h1.fi-header-heading {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--secondary);
    text-transform: uppercase;
	font-size: calc(1.275rem + 0.3vw)!important;
    font-weight: 500;
}

@media ( min-width : 1200px) {
	h1.fi-header-heading {
		font-size: 1.5rem!important;
	}
}

h1, .h1 {
	font-size: calc(1.375rem + 1.5vw);
}

@media ( min-width : 1200px) {
	h1, .h1 {
		font-size: 2.5rem;
	}
}

h2, .h2 {
	font-size: calc(1.325rem + 0.9vw);
}

@media ( min-width : 1200px) {
	h2, .h2 {
		font-size: 2rem;
	}
}

h3, .h3 {
	font-size: calc(1.3rem + 0.6vw);
}

@media ( min-width : 1200px) {
	h3, .h3 {
		font-size: 1.75rem;
	}
}

h4, .h4 {
	font-size: calc(1.275rem + 0.3vw);
}

@media ( min-width : 1200px) {
	h4, .h4 {
		font-size: 1.5rem;
	}
}

h5, .h5 {
	font-size: 1.25rem;
}

h6, .h6 {
	font-size: 1rem;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

.fi-btn-label {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
}

.fi-btn-icon {
    color: white;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
}

.dataTables_wrapper {
    position: relative;
    clear: both;
}

.dataTables_wrapper .dataTables_length {
    float: left;
}

.dataTables_wrapper .dataTables_search {
    float: right;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #aaa;
    border-radius: 0px;
    padding: 5px;
    background-color: transparent;
    margin-left: 3px;
}

.gap-y-8 {
    row-gap: 0;
}

.fi-main .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.manage-emails .fi-input-wrp-suffix {
    margin-left: -1px;
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem!important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.fi-input,
.fi-select-input,
.fi-input-wrp-input textarea {
    border: 1px solid #dee2e6 !important
}

button.custom-close-button-gray {
    border: revert;
    padding: 1px 6px;
    color: black;
    background-color: revert;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.text-custom-500 {
    --tw-text-opacity: 1;
    color: rgba(var(--c-500),var(--tw-text-opacity,1));
}

.default-header-submenu {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    padding-right: 2rem !important;
    z-index: 9999;
    width: max-content;
    left: 0;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.text-custom-500 {
    --tw-text-opacity: 1;
    color: rgba(var(--c-500),var(--tw-text-opacity,1));
}

.default-header-submenu {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    padding-right: 2rem !important;
    z-index: 9999;
    width: max-content;
    left: 0;
}

.anec-table {
    min-height: calc(50vh - 100px);
}

.anec-table .sorting { position: relative; }
.anec-table .sorting:after { content: "\f0dc"; font-family: "Font Awesome 6 Free"; font-weight: 900; padding-left: 10px; color: #ccc; }
.anec-table .sorting.empty:after { opacity: .125; }
.anec-table .sorting_asc:after { content: "\f0de"; color: white; }
.anec-table .sorting_desc:after { content: "\f0dd"; color: white; }
.anec-table .dataTables_length select {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    background-color: transparent;
    padding: 4px;
    word-wrap: normal;
    min-width: 60px;
    margin-bottom: 5px;
    margin-top: 10px;
}

/* Seleziona l'ultimo th e l'ultimo td di ogni riga della tabella */
.anec-table table.table tr th:last-child,
.anec-table table.table tr td:last-child {
    border-left: 1px solid black !important;
    width: 100px;
}

/* Opzionale: se vuoi che il bordo sia visibile anche nell'header nero,
potrebbe servire un colore di contrasto o uno spessore maggiore */
.anec-table table.table thead tr th:last-child {
    border-left: 1px solid white !important; /* Bianco per l'header nero */
}

.anec-table .action i {
    text-align: center;
    font-size: 23px;
    padding: 0 5px!important;
}

.anec-table .abilitato {
    color: rgb(34, 197, 94);
    font-size: 1.2rem;
}

.anec-table .disabilitato {
    color: rgb(107, 114, 128);
    font-size: 1.2rem;
    opacity: 0.7;
}

.dataTable_custom_filters {
    vertical-align: middle;
    align-items: center;
    float: right;
    margin-top: 5px;
    padding: 8px 16px;
}

.dataTable_custom_filters .badge {
    --tw-text-opacity: 1;
    color: rgba(217, 119, 6, 1);
    --tw-bg-opacity: 1;
    background-color: rgba(255, 251, 235, 1);
    border: 1px solid rgba(217, 119, 6, .25);
    padding: 1px 3px;
    font-weight: 500;
    margin-left: 0px;
}

.fi-layout.min-h-screen {
    min-height: unset;
}
