﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.card:hover {
    transform: translateY(-4px);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.select2-container .select2-selection--single {
    height: 38px !important;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
}
form.card .form-label {
    margin-bottom: 2px;
    font-weight: 500;
}

form.card .form-control-sm, form.card .form-select-sm {
    padding: 0.25rem 0.5rem;
}
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
}
td .btn {
    padding: 3px 6px;
    font-size: 0.85rem;
}
.cell-missing {
    background-color: #fff3cd !important; /* giallo chiaro bootstrap-like */
    color: #333;
    font-style: italic;
}
/* 🔧 Allineamento Select2 con Bootstrap form-select-sm */
.select2-container .select2-selection--single {
    height: 31px !important; /* allinea a form-select-sm */
    display: flex !important;
    align-items: center;
}

    .select2-container .select2-selection--single
    .select2-selection__rendered {
        line-height: 31px !important; /* CENTRA VERTICALMENTE */
        padding-left: 8px !important;
        padding-right: 24px !important;
        margin-top: 0 !important;
        display: contents !important;
    }

.select2-container .select2-selection--single
.select2-selection__arrow {
    height: 31px !important;
}
tr.selected-row {
    background-color: #fff3cd !important; /* giallo Bootstrap */
}


/* Mobile: filtri chiusi di default */
@media (max-width: 768px) {
    #filterPanel {
        transition: all 0.2s ease-in-out;
    }
}
#activeFilters {
    min-height: 32px; /* 👈 valore stabile */
}
.filtro-sticky {
    position: relative;
}

.filtro-sticky .card-header {
position: sticky;
top: 70px; /* altezza navbar */
z-index: 1020;
background: #fff;
}
.form-check-input:focus {
    box-shadow: none;
}
.form-check-input:focus {
    box-shadow: none;
}
/* ❌ rimuove l'effetto hover SOLO dai filtri */
.filtro-sticky.card:hover {
    transform: none !important;
    box-shadow: none !important;
}
.select2-container--bootstrap-5 .select2-selection {
    min-height: 31px;
    box-shadow: none !important;
}
.form-control:focus,
.form-check-input:focus,
.btn:focus {
    box-shadow: none !important;
}
form.card:hover {
    transform: none !important;
    box-shadow: none !important;
}

