/* 109_01 — Stili LOCALI: non alterare i colori di tutte le card o di altre app. */
/* Dropdown globale notifiche: il contenuto e' dinamico, puo' essere unread. */
#notifDropdown + .dropdown-menu {
    background-color: #ffffff !important;
    color: #192b3b !important;
    border: 1px solid #a5b5c6 !important;
}
#notifDropdown + .dropdown-menu .dropdown-header,
#notifDropdown + .dropdown-menu .dropdown-item,
#notifDropdown + .dropdown-menu .dropdown-item a,
#notifDropdown + .dropdown-menu .dropdown-item small,
#notifDropdown + .dropdown-menu .dropdown-item span,
#notifDropdown + .dropdown-menu .text-muted,
#notifDropdown + .dropdown-menu .text-reset {
    color: #263849 !important;
}
#notifDropdown + .dropdown-menu #notifList .dropdown-item {
    background-color: #f3f7fc !important;
    border-bottom: 1px solid #d2dce8;
}
#notifDropdown + .dropdown-menu #notifList .dropdown-item:has(a) {
    white-space: normal;
    overflow-wrap: anywhere;
}
#notifDropdown + .dropdown-menu #notifList .fw-bold.bg-light {
    background-color: #e2f0ff !important;
}
#notifDropdown + .dropdown-menu .dropdown-item:hover { background-color: #dceaff !important; }
#notifDropdown + .dropdown-menu span.badge { color: #ffffff !important; }
#notifDropdown + .dropdown-menu .badge.bg-secondary { background-color: #425466 !important; }
#notifDropdown + .dropdown-menu .text-danger { color: #a52230 !important; }

html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu {
    background-color: #1d3040 !important;
    color: #f4f7fb !important;
    border-color: #698297 !important;
}
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .dropdown-header,
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .dropdown-item,
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .dropdown-item a,
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .dropdown-item small,
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .dropdown-item span,
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .text-muted,
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .text-reset {
    color: #f0f5fb !important;
}
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu #notifList .dropdown-item {
    background-color: #263c50 !important;
    border-bottom-color: #50667b;
}
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu #notifList .fw-bold.bg-light {
    background-color: #324b64 !important;
}
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .dropdown-item:hover { background-color: #39546e !important; }
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu .text-danger { color: #ffb0ae !important; }
html[data-bs-theme="dark"] #notifDropdown + .dropdown-menu span.badge { color: #ffffff !important; }

/* Riepilogo spese: badge e intestazioni che su sfondo navy risultavano illeggibili. */
html[data-bs-theme="dark"] .cpm-expense-summary .badge.bg-light.text-dark,
html[data-bs-theme="dark"] .cpm-expense-summary .badge.bg-light {
    background-color: #334d63 !important;
    color: #ffffff !important;
    border-color: #7893a7 !important;
}
html[data-bs-theme="dark"] .cpm-expense-summary .table-light th,
html[data-bs-theme="dark"] .cpm-expense-summary .table th {
    color: #f5f7fc !important;
}
html[data-bs-theme="dark"] .cpm-expense-summary .table-light {
    background-color: #2e465a !important;
    color: #f5f7fc !important;
    --bs-table-bg: #2e465a;
    --bs-table-color: #f5f7fc;
}
html[data-bs-theme="dark"] .cpm-expense-summary .kpi-label,
html[data-bs-theme="dark"] .cpm-expense-summary .text-secondary,
html[data-bs-theme="dark"] .cpm-expense-summary .text-muted {
    color: #c9d7e2 !important;
}
html[data-bs-theme="dark"] .cpm-expense-summary .text-primary { color: #9dc5ff !important; }
html[data-bs-theme="dark"] .cpm-expense-summary .text-danger { color: #ffaaaa !important; }
html[data-bs-theme="dark"] .cpm-expense-summary .text-info { color: #85e5fa !important; }
html[data-bs-theme="dark"] .cpm-expense-summary .text-success { color: #83e1b2 !important; }
html[data-bs-theme="dark"] .cpm-expense-summary .action-btn.edit { background: #c8dfff; color: #094478; }
html[data-bs-theme="dark"] .cpm-expense-summary .action-btn.delete { background: #ffe0e0; color: #9d2230; }
@media (max-width: 767px) {
    #notifDropdown + .dropdown-menu { max-width: calc(100vw - 1rem) !important; }
    .cpm-expense-summary .chart-wrapper { height: 230px; }
}
