/* =====================================================================
   Aspetto scelto dall'utente (classi su <html>):
   tema-scuro, alta-visibilita, carattere-leggibile, testo-112/125/150
   ===================================================================== */

/* ---------- Dimensione del testo ---------- */
html.testo-112 { font-size: 112.5%; }
html.testo-125 { font-size: 125%; }
html.testo-150 { font-size: 150%; }
html.testo-125 .sidebar, html.testo-150 .sidebar { font-size: .9rem; }

/* ---------- Carattere leggibile ---------- */
html.carattere-leggibile body,
html.carattere-leggibile .btn, html.carattere-leggibile .form-control, html.carattere-leggibile .select2-container,
html.carattere-leggibile .tooltip, html.carattere-leggibile .popover, html.carattere-leggibile .dropdown-menu {
	font-family: Verdana, "Atkinson Hyperlegible", Tahoma, "DejaVu Sans", sans-serif !important;
	letter-spacing: .02em;
	word-spacing: .06em;
}
html.carattere-leggibile body { line-height: 1.65; }
html.carattere-leggibile .small, html.carattere-leggibile small { font-size: 88%; }
html.carattere-leggibile #content a:not(.btn):not(.dropdown-item):not(.nav-link):not(.page-link) { text-decoration: underline; }
html.carattere-leggibile .text-gray-400, html.carattere-leggibile .text-gray-500 { color: #6e707e !important; }

/* ---------- Tema scuro ---------- */
html.tema-scuro { color-scheme: dark; }
html.tema-scuro body, html.tema-scuro #content-wrapper, html.tema-scuro #content { background-color: #16191f !important; color: #d4d7dd; }
html.tema-scuro .bg-white, html.tema-scuro .topbar, html.tema-scuro .sticky-footer { background-color: #1f232b !important; }
html.tema-scuro .card, html.tema-scuro .modal-content, html.tema-scuro .dropdown-menu, html.tema-scuro .list-group-item,
html.tema-scuro .popover, html.tema-scuro .toast { background-color: #22262f; color: #d4d7dd; border-color: #343a46; }
html.tema-scuro .card-header, html.tema-scuro .card-footer, html.tema-scuro .modal-header, html.tema-scuro .modal-footer { background-color: #1b1f27; border-color: #343a46; }
html.tema-scuro .bg-light, html.tema-scuro .alert-light, html.tema-scuro .bg-gray-100, html.tema-scuro .bg-gray-200 { background-color: #2a2f39 !important; color: #d4d7dd; border-color: #3a404c; }
html.tema-scuro .text-gray-900, html.tema-scuro .text-gray-800, html.tema-scuro .text-dark, html.tema-scuro h1, html.tema-scuro h2, html.tema-scuro h3,
html.tema-scuro h4, html.tema-scuro h5, html.tema-scuro h6 { color: #eceef2 !important; }
html.tema-scuro .text-gray-700, html.tema-scuro .text-gray-600 { color: #b9bdc6 !important; }
html.tema-scuro .text-muted, html.tema-scuro .text-gray-500 { color: #9aa1ad !important; }
html.tema-scuro .text-gray-300, html.tema-scuro .text-gray-400 { color: #5d6472 !important; }
html.tema-scuro a { color: #7fa8ff; }
html.tema-scuro .dropdown-item { color: #d4d7dd; }
html.tema-scuro .dropdown-item:hover, html.tema-scuro .dropdown-item:focus { background-color: #2f3541; color: #fff; }
html.tema-scuro .dropdown-header { color: #9aa1ad; }
html.tema-scuro hr, html.tema-scuro .border, html.tema-scuro .border-bottom, html.tema-scuro .border-top, html.tema-scuro .dropdown-divider,
html.tema-scuro .topbar-divider { border-color: #3a404c !important; }
html.tema-scuro .close { color: #fff; text-shadow: none; opacity: .7; }
/* tabelle */
html.tema-scuro .table { color: #d4d7dd; }
html.tema-scuro .table th, html.tema-scuro .table td, html.tema-scuro .table thead th { border-color: #343a46; }
html.tema-scuro .table-hover tbody tr:hover { background-color: #2a2f39; color: #fff; }
html.tema-scuro .table-striped tbody tr:nth-of-type(odd) { background-color: #1d2129; }
html.tema-scuro .thead-light th, html.tema-scuro .table .thead-light th { background-color: #2a2f39; color: #d4d7dd; }
html.tema-scuro .table-active, html.tema-scuro .table-light, html.tema-scuro .table-light > td { background-color: #2a2f39 !important; }
html.tema-scuro .table-warning, html.tema-scuro .table-warning > td { background-color: #4a3f1c !important; color: #f3e3b0; }
html.tema-scuro .table-success, html.tema-scuro .table-success > td { background-color: #1f3d2b !important; color: #c6ecd3; }
html.tema-scuro .table-danger, html.tema-scuro .table-danger > td { background-color: #4a2226 !important; color: #f5c6cb; }
/* moduli */
html.tema-scuro .form-control, html.tema-scuro .custom-select, html.tema-scuro .input-group-text, html.tema-scuro textarea {
	background-color: #15181e; color: #e6e8ec; border-color: #3d4452; }
html.tema-scuro .form-control:focus, html.tema-scuro .custom-select:focus { background-color: #15181e; color: #fff; border-color: #6c8ef5; }
html.tema-scuro .form-control:disabled, html.tema-scuro .form-control[readonly] { background-color: #262a33; color: #a9aeb8; }
html.tema-scuro .form-control::placeholder { color: #6f7684; }
html.tema-scuro .input-group-text { background-color: #262a33; }
html.tema-scuro .custom-control-label::before { background-color: #15181e; border-color: #5d6472; }
/* bottoni chiari */
html.tema-scuro .btn-light, html.tema-scuro .btn-outline-dark, html.tema-scuro .btn-outline-secondary { color: #d4d7dd; border-color: #5d6472; background-color: transparent; }
html.tema-scuro .btn-light:hover, html.tema-scuro .btn-outline-dark:hover, html.tema-scuro .btn-outline-secondary:hover { background-color: #3a404c; color: #fff; }
html.tema-scuro .btn-link { color: #7fa8ff; }
/* schede, paginazione, badge */
html.tema-scuro .nav-tabs { border-color: #343a46; }
html.tema-scuro .nav-tabs .nav-link { color: #b9bdc6; }
html.tema-scuro .nav-tabs .nav-link.active { background-color: #22262f; color: #fff; border-color: #343a46 #343a46 #22262f; }
html.tema-scuro .page-link { background-color: #22262f; border-color: #343a46; color: #9fb7ff; }
html.tema-scuro .page-item.active .page-link { background-color: #4e73df; border-color: #4e73df; color: #fff; }
html.tema-scuro .page-item.disabled .page-link { background-color: #1b1f27; color: #5d6472; }
html.tema-scuro .badge-light { background-color: #3a404c; color: #eceef2; }
html.tema-scuro .alert-secondary { background-color: #2a2f39; color: #d4d7dd; border-color: #3a404c; }
/* select2, autocompletamento, calendari */
html.tema-scuro .select2-container--default .select2-selection--single, html.tema-scuro .select2-container--default .select2-selection--multiple,
html.tema-scuro .select2-dropdown, html.tema-scuro .select2-search__field { background-color: #15181e !important; color: #e6e8ec; border-color: #3d4452 !important; }
html.tema-scuro .select2-container--default .select2-selection--single .select2-selection__rendered { color: #e6e8ec; }
html.tema-scuro .select2-results__option { color: #d4d7dd; }
html.tema-scuro .select2-container--default .select2-results__option[aria-selected=true] { background-color: #2a2f39; }
html.tema-scuro .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: #4e73df; color: #fff; }
html.tema-scuro .select2-container--default .select2-selection--multiple .select2-selection__choice { background-color: #2a2f39; border-color: #3d4452; }
html.tema-scuro .ui-widget-content, html.tema-scuro .ui-menu { background: #22262f; color: #d4d7dd; border-color: #343a46; }
html.tema-scuro .ui-menu .ui-state-active { background: #4e73df; border-color: #4e73df; }
html.tema-scuro .xdsoft_datetimepicker { background: #22262f; border-color: #343a46; color: #d4d7dd; }
html.tema-scuro .xdsoft_datetimepicker .xdsoft_calendar td, html.tema-scuro .xdsoft_datetimepicker .xdsoft_calendar th,
html.tema-scuro .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div { background: #1b1f27; color: #d4d7dd; border-color: #343a46; }
html.tema-scuro .xdsoft_datetimepicker .xdsoft_label { background: #22262f; color: #eceef2; }
html.tema-scuro .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select { background: #22262f; }
html.tema-scuro .fc-unthemed th, html.tema-scuro .fc-unthemed td, html.tema-scuro .fc-unthemed thead, html.tema-scuro .fc-unthemed .fc-divider,
html.tema-scuro .fc-unthemed .fc-row, html.tema-scuro .fc-unthemed .fc-popover { border-color: #343a46 !important; }
html.tema-scuro .fc-unthemed .fc-popover, html.tema-scuro .fc-unthemed .fc-list-heading td, html.tema-scuro .fc-unthemed .fc-divider { background: #22262f; }
html.tema-scuro .fc-unthemed td.fc-today { background: #2c3240; }
html.tema-scuro .dataTables_wrapper .dataTables_filter input, html.tema-scuro .dataTables_wrapper .dataTables_length select { background-color: #15181e; color: #e6e8ec; border-color: #3d4452; }
html.tema-scuro img.img-profile { filter: brightness(.9); }

/* ---------- Alta visibilità (ipovedenti): giallo/bianco su nero, bordi e fuoco evidenti ---------- */
html.alta-visibilita { color-scheme: dark; }
html.alta-visibilita body, html.alta-visibilita #content-wrapper, html.alta-visibilita #content, html.alta-visibilita .bg-white,
html.alta-visibilita .topbar, html.alta-visibilita .sticky-footer, html.alta-visibilita .card, html.alta-visibilita .card-header,
html.alta-visibilita .card-footer, html.alta-visibilita .modal-content, html.alta-visibilita .modal-header, html.alta-visibilita .modal-footer,
html.alta-visibilita .dropdown-menu, html.alta-visibilita .list-group-item, html.alta-visibilita .bg-light, html.alta-visibilita .alert,
html.alta-visibilita .sidebar, html.alta-visibilita .bg-gradient-dark, html.alta-visibilita .bg-gradient-primary, html.alta-visibilita .collapse-inner {
	background: #000 !important; color: #fff !important; }
html.alta-visibilita body { font-weight: 600; }
html.alta-visibilita .card, html.alta-visibilita .modal-content, html.alta-visibilita .dropdown-menu, html.alta-visibilita .alert, html.alta-visibilita .list-group-item {
	border: 2px solid #fff !important; box-shadow: none !important; }
html.alta-visibilita .card-header, html.alta-visibilita .modal-header { border-bottom: 2px solid #fff !important; }
html.alta-visibilita .modal-footer { border-top: 2px solid #fff !important; }
html.alta-visibilita [class*="text-"], html.alta-visibilita h1, html.alta-visibilita h2, html.alta-visibilita h3, html.alta-visibilita h4,
html.alta-visibilita h5, html.alta-visibilita h6, html.alta-visibilita label, html.alta-visibilita .small { color: #fff !important; }
html.alta-visibilita .text-danger, html.alta-visibilita .text-warning { color: #ffeb3b !important; text-decoration: underline; }
html.alta-visibilita .text-success, html.alta-visibilita .text-primary, html.alta-visibilita .text-info { color: #7df9ff !important; }
html.alta-visibilita a, html.alta-visibilita .btn-link, html.alta-visibilita .collapse-item, html.alta-visibilita .sidebar .nav-link,
html.alta-visibilita .sidebar .nav-link i, html.alta-visibilita .dropdown-item { color: #ffeb3b !important; }
html.alta-visibilita #content a:not(.btn), html.alta-visibilita .collapse-item { text-decoration: underline; }
html.alta-visibilita .sidebar .nav-item.active .nav-link, html.alta-visibilita .collapse-item.active, html.alta-visibilita .dropdown-item:hover,
html.alta-visibilita .dropdown-item:focus, html.alta-visibilita .collapse-item:hover { background: #ffeb3b !important; color: #000 !important; }
html.alta-visibilita .btn { background: #000 !important; color: #ffeb3b !important; border: 2px solid #ffeb3b !important; font-weight: 700; }
html.alta-visibilita .btn:hover, html.alta-visibilita .btn:focus, html.alta-visibilita .btn.active { background: #ffeb3b !important; color: #000 !important; }
html.alta-visibilita .btn i { color: inherit !important; }
html.alta-visibilita .badge { background: #fff !important; color: #000 !important; border: 1px solid #000; }
html.alta-visibilita .form-control, html.alta-visibilita .custom-select, html.alta-visibilita .input-group-text, html.alta-visibilita textarea,
html.alta-visibilita .select2-container--default .select2-selection--single, html.alta-visibilita .select2-dropdown, html.alta-visibilita .select2-search__field,
html.alta-visibilita .page-link {
	background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.alta-visibilita .select2-container--default .select2-selection--single .select2-selection__rendered { color: #fff !important; }
html.alta-visibilita .select2-results__option--highlighted[aria-selected], html.alta-visibilita .page-item.active .page-link { background: #ffeb3b !important; color: #000 !important; }
html.alta-visibilita .form-control::placeholder { color: #bdbdbd; }
html.alta-visibilita .table, html.alta-visibilita .table td, html.alta-visibilita .table th { color: #fff !important; border-color: #fff !important; background: #000 !important; }
html.alta-visibilita .table thead th { border-bottom: 3px solid #fff !important; }
html.alta-visibilita .table-hover tbody tr:hover td { background: #333 !important; }
html.alta-visibilita .custom-control-label::before { background: #000; border: 2px solid #fff; }
html.alta-visibilita .custom-control-input:checked ~ .custom-control-label::before { background: #ffeb3b; border-color: #ffeb3b; }
html.alta-visibilita .close { color: #ffeb3b; opacity: 1; text-shadow: none; }
html.alta-visibilita hr, html.alta-visibilita .border, html.alta-visibilita .dropdown-divider { border-color: #fff !important; }
html.alta-visibilita *:focus, html.alta-visibilita .select2-container--focus .select2-selection, html.alta-visibilita .form-control:focus {
	outline: 4px solid #ffeb3b !important; outline-offset: 2px; box-shadow: none !important; }
html.alta-visibilita .notifica { background: #000 !important; color: #fff !important; border: 3px solid #ffeb3b !important; }
html.alta-visibilita img.img-profile { filter: grayscale(1) contrast(1.4); }
html.alta-visibilita .xdsoft_datetimepicker, html.alta-visibilita .xdsoft_datetimepicker .xdsoft_calendar td,
html.alta-visibilita .xdsoft_datetimepicker .xdsoft_calendar th, html.alta-visibilita .ui-menu, html.alta-visibilita .ui-widget-content {
	background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.alta-visibilita .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current, html.alta-visibilita .ui-menu .ui-state-active { background: #ffeb3b !important; color: #000 !important; }
