/* Pacchettiore: Design System tabler-ui.mdc — override Tabler e componenti custom
 *
 * INDICE: 1.Variabili e base  2.Layout sidebar  3.Card globale  4.Quick actions / icon-box
 *         5.Modal  6.Paginazione  7.Section title  8.Utility  [segue] Dashboard, Alert,
 *         Liste/Form, Bottoni, Filtri
 */

/* ========== 1. VARIABILI E BASE ========== */
:root {
    --tblr-primary: #74b816;
    --tblr-primary-rgb: 116, 184, 22;
    --tblr-primary-hover: #65a313;
    --tblr-primary-light: #eef6e1;
    --tblr-primary-light-hover: #ddedc8;
    --tblr-green: #74b816;
    --tblr-success: #74b816;
    --tblr-info: #4299e1;
    --tblr-warning: #fd9644;
    --tblr-danger: #fa4654;
    --tblr-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
body {
    font-family: var(--tblr-font-sans-serif);
    font-size: 0.875rem;
    color: #2d3748;
    background: #f4f6f9;
}

/* ========== 2. LAYOUT SIDEBAR E PAGINA ========== */
.page-wrapper { margin-inline-start: 15rem; }
.navbar-vertical.navbar-expand-sm { width: 15rem; }
/* Icone Tabler webfont nella sidebar: Tabler Core stila solo .icon (SVG); forziamo dimensioni per .ti */
.navbar-vertical .nav-link-icon .ti,
.navbar-vertical .nav-link-icon i[class^="ti-"] {
    font-size: 1.25rem;
    width: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.navbar-vertical .navbar-brand .ti { font-size: 1.5rem; }
@media (max-width: 991.98px) {
    .page-wrapper { margin-inline-start: 0; }
    .navbar-vertical.navbar-expand-sm { width: 100%; z-index: 1030; }
}
.navbar-brand-text { font-size: 1.35rem; font-weight: 700; color: #fff; }
/* Logo sidebar: più grande, riempie bene lo spazio */
.navbar-vertical .navbar-brand {
    min-height: 4.5rem;
    justify-content: center;
}
.navbar-vertical .navbar-brand a {
    width: 100%;
    justify-content: center;
}
.navbar-vertical .navbar-brand .pacchettiore-logo {
    max-height: 4rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.pacchettiore-logo { max-height: 2.5rem; width: auto; object-fit: contain; }
/* Sidebar: voce attiva con barra laterale verde (#74b816) */
.navbar-vertical .nav-link.active {
    border-inline-start: 3px solid #74b816;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
/* Footer sidebar: spazio netto sotto la linea così avatar e nome non la sovrappongono */
.navbar-vertical .sidebar-footer {
    border-color: rgba(255,255,255,.1) !important;
    padding: 1.75rem 1rem 0.75rem 1rem !important;
    flex-shrink: 0;
}
.navbar-vertical .sidebar-footer > .d-flex {
    align-items: center; /* mantiene centratura verticale del contenuto */
}
.navbar-vertical .sidebar-footer .text-white-50.small {
    margin-bottom: 1rem;
}
.page-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
.container-tight { max-width: 32rem; }
.form-label.required::after { content: " *"; color: var(--tblr-danger); }
.pacchettiore-logo-preview { max-height: 80px; width: auto; }

/* Focus campi form: verde primario in tutta l'app (override blu Tabler) */
.page-body .form-control:focus,
.page-body .form-select:focus,
.page-body .form-control:focus-visible,
.page-body .form-select:focus-visible {
    border-color: #74b816;
    box-shadow: 0 0 0 0.25rem rgba(116, 184, 22, 0.2);
}
/* Campo ricerca: niente bordo/ombra sull'input, solo sul gruppo (.list-search-group:focus-within) */
.page-body .list-search-group .form-control:focus,
.page-body .list-search-group .form-control:focus-visible {
    border-color: #c8d3e1;
    box-shadow: none;
}

/* Dashboard: estetica come riferimento (card arrotondate, ombra morbida, tipografia) */
.dashboard-page {
    font-family: var(--tblr-font-sans-serif, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    padding-bottom: 1rem;
}
.dashboard-page .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.dashboard-page .card-header {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #1e293b;
}
.dashboard-page .card-body {
    color: #2d3748;
}
.dashboard-page .page-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.5rem;
}
.dashboard-page .page-header .text-secondary {
    color: #6c7a91 !important;
    font-size: 0.8125rem;
}
/* Welcome / titoli principali */
.dashboard-page .card-lg .card-body h3,
.dashboard-page h3.card-title {
    font-weight: 700;
    color: #333333;
    font-size: 1.35rem;
}
.dashboard-page .card-lg .card-body .text-secondary {
    color: #666666 !important;
    font-size: 0.9375rem;
    line-height: 1.5;
}
/* Etichette KPI card: leggibili, coerenti con tabler-ui.mdc (Body small 0.8125rem / h3 1rem) */
.dashboard-page .subheader {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c7a91 !important;
    line-height: 1.4;
}
.dashboard-page .card-body .h1,
.dashboard-page .card-body .h2,
.dashboard-page .card-body .h3,
.dashboard-page .card-body .h4 {
    font-weight: 700;
    color: #2d3748;
}
.dashboard-page .card-body .text-secondary.small,
.dashboard-page .card-body p.text-secondary {
    color: #6c7a91 !important;
    font-size: 0.875rem;
}
/* Link nel footer delle card: dimensione body, coerente con il resto dell'app */
.dashboard-page .card-footer a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #74b816;
}
.dashboard-page .card-footer a:hover {
    color: #65a313;
}
/* Trend e testi secondari nelle card KPI: almeno Body small */
.dashboard-page .card-body .small {
    font-size: 0.8125rem;
}
/* Trend positivi/negativi */
.text-green { color: #74b816 !important; }
.bg-green { background: #74b816 !important; }
.bg-green-lt { background: rgba(116, 184, 22, 0.15) !important; }
.badge.bg-green-lt { background: rgba(116, 184, 22, 0.15) !important; }
.badge.text-green { color: #74b816 !important; }
/* Badge Scaduto: sfondo grigio chiaro, testo #6c7a91 (tabler-ui.mdc) per leggibilità */
.list-page-packages .badge.bg-secondary-lt { background: rgba(108, 122, 145, 0.2) !important; }
.list-page-packages .badge.bg-secondary-lt.text-secondary { color: #6c7a91 !important; }
.list-page-package-interventions .badge.bg-secondary-lt { background: rgba(108, 122, 145, 0.2) !important; }
.list-page-package-interventions .badge.bg-secondary-lt.text-secondary { color: #6c7a91 !important; }
.dashboard-page .text-green { color: #74b816 !important; }
.dashboard-page .text-red { color: #ef4444 !important; }
.dashboard-page .card-footer {
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
}
.dashboard-page .table-responsive {
    border-radius: 0 0 10px 10px;
}
.dashboard-page .btn-success {
    background: #74b816;
    border-color: #74b816;
    border-radius: 10px;
    font-weight: 500;
}
.dashboard-page .btn-primary {
    border-radius: 10px;
    font-weight: 500;
}
/* Sfondo chiaro dietro le card in dashboard */
.page-body-dashboard {
    background: #f4f6f9;
}

/* Alert globali – allineate al Design System (tabler-ui.mdc 5.10) */
.alert {
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
}
.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}
.alert-success {
    background: #eef6e1;
    color: #3d6b00;
}
.alert-danger {
    background: #fff0f1;
    color: #b02030;
}
.alert-warning {
    background: #fff5ec;
    color: #a55a00;
}
.alert-info {
    background: #e8f4fd;
    color: #1a5fa8;
}

/* ========== 3. CARD GLOBALE (tabler-ui.mdc 5.3) ========== */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    transition: box-shadow 150ms ease-in-out;
}
.card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body { padding: 1.25rem 1.5rem; }
.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: transparent;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

/* ========== 4. QUICK ACTIONS E ICON BOX (tabler-ui.mdc 5.4) ========== */
.card-link { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.card-link-pop { transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out; }
.card-link-pop:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.icon-box-neutral {
    background: #e2e8f0 !important;
    color: #6c7a91;
}
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
}
.icon-box-sm {
    width: 20px;
    height: 20px;
    font-size: 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========== 5. MODAL (tabler-ui.mdc 5.12) ========== */
.modal-content {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: none;
    overflow: hidden;
}
.modal-backdrop { background: rgba(24, 36, 51, 0.24); }
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; }
.modal-body { padding: 1.25rem 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ========== 6. PAGINAZIONE (tabler-ui.mdc 5.13) ========== */
.pagination { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.page-link {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    display: block;
    transition: all 150ms ease-in-out;
}
.page-link:hover { background: #eef6e1; color: #74b816; border-color: #74b816; }
.page-item.active .page-link { background: #74b816; border-color: #74b816; color: #fff; }
.page-item.disabled .page-link { opacity: 0.5; pointer-events: none; }

/* ========== 7. SECTION TITLE (tabler-ui.mdc 10.4) ========== */
.section-title {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ba7b7;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* ========== 8. UTILITY LAYOUT E COMPONENTI ========== */
.avatar-cover { object-fit: cover; width: 2rem; height: 2rem; }
.avatar-96 { width: 96px; height: 96px; object-fit: cover; }
.object-fit-contain { object-fit: contain; }
.badge-sm { font-size: 0.6875rem; }
.chart-h-200 { height: 200px; }
.chart-h-240 { height: 240px; }
.ai-result-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    background: #f4f6f9;
}
.text-truncate-max { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-search-group--w220 { width: 260px; }
.form-select-minw-160 { min-width: 160px; }
.form-select-minw-180 { min-width: 180px; }
.col-minw-8rem { min-width: 8rem; }
.form-control-max-w { max-width: 220px; }
.fs-2rem { font-size: 2rem; }
.avatar-icon-xl { font-size: 2.5rem; }
.text-center-secondary { text-align: center; color: #6c7a91; }

/* Pagine elenco — Design System tabler-ui.mdc */
.page-body-list { background: #f4f6f9; }
.page-body-form { background: #f4f6f9; }
.form-page .page-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
.form-page .list-page-subtitle { font-size: 0.8125rem; color: #6c7a91; }
.form-page .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}
.form-page .card-body { padding: 1.5rem 1.5rem; }
.form-page .form-label { font-weight: 500; color: #1e293b; }
.form-page .form-control:focus, .form-page .form-select:focus {
    border-color: #74b816;
    box-shadow: 0 0 0 0.25rem rgba(116, 184, 22, 0.2);
}
.form-page .form-footer {
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}
.form-page .btn-primary { border-radius: 8px; }
.form-page .btn-outline-secondary { border-radius: 8px; }
.list-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
}
.list-page .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.33;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.list-page .list-page-subtitle {
    font-size: 0.8125rem;
    color: #6c7a91;
    margin-bottom: 0;
}
.list-page .list-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}
.list-page .list-table {
    font-size: 0.875rem;
    color: #2d3748;
}
.list-page .list-table-th {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c7a91;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}
.list-page .list-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f4f6f9;
    color: #2d3748;
}
.list-page .list-table tbody tr:hover td {
    background: #f8fafb;
}
.list-page .list-table tbody tr:last-child td { border-bottom: none; }
.list-page .list-table-name { font-weight: 500; color: #2d3748; }
.list-page .list-table-meta { color: #6c7a91; }
.list-page .list-avatar {
    background: #eef6e1;
    color: #74b816;
    font-weight: 600;
}
.list-page .list-table-row-warning {
    background: rgba(253, 150, 68, 0.08);
}
.list-page .list-table tbody tr:hover .list-table-row-warning {
    background: rgba(253, 150, 68, 0.12);
}
.list-page .btn-primary,
.list-page .btn-success {
    background: #74b816;
    border-color: #74b816;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}
.list-page .btn-primary:hover,
.list-page .btn-success:hover {
    background: #65a313;
    border-color: #65a313;
    color: #fff;
}
.list-page .btn-outline-primary {
    border-radius: 8px;
    color: #74b816;
    border-color: #74b816;
}
.list-page .btn-outline-primary:hover {
    background: #eef6e1;
    color: #74b816;
    border-color: #74b816;
}
.list-page .btn-outline-danger:hover {
    border-color: #fa4654;
    color: #fa4654;
}
/* Pulsante Elimina selezionati (tabler-ui.mdc: .btn-danger = bg #fa4654, testo bianco) */
.list-page .btn-danger {
    background-color: #fa4654;
    border-color: #fa4654;
    color: #fff;
    border-radius: 8px;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
.list-page .btn-danger:hover:not(:disabled) {
    background-color: #e93a48;
    border-color: #e93a48;
    color: #fff;
}
.list-page .btn-danger:disabled {
    opacity: 0.6;
    background-color: #fa4654;
    border-color: #fa4654;
    color: #fff;
}

/* Bottoni globali – Design System (tabler-ui.mdc 5.6) */
.btn {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4375rem 1rem;
    border-radius: 8px;
    line-height: 1.5;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}
.btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
}
.btn-primary {
    background: #74b816;
    border: 1px solid #74b816;
    color: #fff;
}
.btn-primary:hover {
    background: #65a313;
    border-color: #65a313;
    color: #fff;
}
.btn-secondary {
    background: #6c7a91;
    border: 1px solid #6c7a91;
    color: #fff;
}
.btn-secondary:hover {
    background: #5a6678;
    border-color: #5a6678;
    color: #fff;
}
.btn-danger {
    background: #fa4654;
    border: 1px solid #fa4654;
    color: #fff;
}
.btn-danger:hover {
    background: #e03040;
    border-color: #e03040;
    color: #fff;
}
.btn-outline-primary {
    border: 1.5px solid #74b816;
    color: #74b816;
    background: transparent;
}
.btn-outline-primary:hover {
    background: #74b816;
    color: #fff;
}
.btn-ghost-primary {
    border: none;
    color: #74b816;
    background: transparent;
}
.btn-ghost-primary:hover {
    background: #eef6e1;
}
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pulsanti azione solo icona: stile outline, hover a riempimento (tabler-ui.mdc colori) */
.btn-icon.btn-outline-primary {
    border-radius: 8px;
    color: #74b816;
    border: 1px solid #74b816;
    background: transparent;
    padding: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.btn-icon.btn-outline-primary .ti { font-size: 1.125rem; }
.btn-icon.btn-outline-primary:hover {
    background: #74b816;
    border-color: #74b816;
    color: #fff;
}
.btn-icon.btn-outline-danger {
    border-radius: 8px;
    color: #fa4654;
    border: 1px solid #fa4654;
    background: transparent;
    padding: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.btn-icon.btn-outline-danger .ti { font-size: 1.125rem; }
.btn-icon.btn-outline-danger:hover {
    background: #fa4654;
    border-color: #fa4654;
    color: #fff;
}
.btn-icon.btn-outline-warning {
    border-radius: 8px;
    color: #fd9644;
    border: 1px solid #fd9644;
    background: transparent;
    padding: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.btn-icon.btn-outline-warning .ti { font-size: 1.125rem; }
.btn-icon.btn-outline-warning:hover {
    background: #fd9644;
    border-color: #fd9644;
    color: #fff;
}
.btn-icon.btn-outline-secondary {
    border-radius: 8px;
    color: #6c7a91;
    border: 1px solid #6c7a91;
    background: transparent;
    padding: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.btn-icon.btn-outline-secondary .ti { font-size: 1.125rem; }
.btn-icon.btn-outline-secondary:hover {
    background: #6c7a91;
    border-color: #6c7a91;
    color: #fff;
}
.list-search-group .form-control {
    border: 1px solid #c8d3e1;
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    color: #2d3748;
}
.list-search-group .form-control:focus {
    border-color: #c8d3e1;
    box-shadow: none;
    outline: 0;
}
.list-search-group .list-search-icon {
    border: 1px solid #c8d3e1;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: #6c7a91;
}
.list-search-group .list-search-input {
    border-radius: 0 8px 8px 0;
    border-left: 0;
}
.list-search-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(116, 184, 22, 0.2);
    border-radius: 8px;
}
.list-search-group:focus-within .list-search-icon,
.list-search-group:focus-within .form-control {
    border-color: #c8d3e1;
}
/* Focus verde su form nelle list-page (tabler-ui.mdc 5.4) — escluso campo ricerca che ha focus sul gruppo */
.list-page .form-control:focus,
.list-page .form-select:focus {
    border-color: #74b816;
    box-shadow: 0 0 0 0.25rem rgba(116, 184, 22, 0.2);
    outline: 0;
}
.list-page .list-search-group .form-control:focus {
    border-color: #c8d3e1;
    box-shadow: none;
}
.list-page .list-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: transparent;
    border-radius: 0 0 10px 10px;
}
.list-page .list-card-footer-caption {
    font-size: 0.75rem;
    color: #6c7a91;
}
/* Empty state — tabler-ui.mdc 5.7 */
.list-page .empty {
    padding: 1rem 0;
}
.list-page .empty-icon { margin-bottom: 0.5rem; }
.list-page .empty-icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #eef6e1;
    border: 2px solid #74b816;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #74b816;
}
.list-page .empty-title {
    font-size: 0.875rem;
    color: #6c7a91;
    margin-bottom: 0;
}

/* Filtri stile chip/tag (lista pacchetti e demo) — tabler-ui.mdc */
.list-page .filter-chips a,
.list-page .card-body .filter-chips a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #6c7a91;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.list-page .filter-chips a:hover,
.list-page .card-body .filter-chips a:hover {
    background: #f4f6f9;
    border-color: #c8d3e1;
    color: #2d3748;
}
.list-page .filter-chips a.filter-chip-active,
.list-page .card-body .filter-chips a.filter-chip-active {
    background: #eef6e1;
    border-color: #74b816;
    color: #74b816;
}
.list-page .filter-chips a.filter-chip-active:hover,
.list-page .card-body .filter-chips a.filter-chip-active:hover {
    background: #ddedc8;
    border-color: #65a313;
    color: #65a313;
}
/* Fallback per pagine senza .list-page (es. demo) */
.filter-chips a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #6c7a91;
}
.filter-chips a:hover { background: #f4f6f9; border-color: #c8d3e1; color: #2d3748; }
.filter-chips a.filter-chip-active { background: #eef6e1; border-color: #74b816; color: #74b816; }
.filter-chips a.filter-chip-active:hover { background: #ddedc8; border-color: #65a313; color: #65a313; }
