/************************************************************
 * TEMA SCURO
 * Generato dalla conversione dei colori fissi (2026-10-21).
 * Nei CSS ogni colore è scritto var(--ab-x-rrggbb, #originale):
 * nel tema chiaro vale il colore originale (nessuna variabile
 * definita), nel tema scuro vale il valore qui sotto.
 *   --ab-t-*  testo     --ab-s-*  sfondo
 *   --ab-b-*  bordo     --ab-a-*  accento (variabili --fe-*, --ma-*…)
 * Solo a schermo: in stampa si resta sempre chiari.
 * Per ritoccare un colore scuro basta cambiare il valore qui.
 ************************************************************/
@media screen {
    :root[data-tema="scuro"] {
        color-scheme: dark;
        --bs-body-bg: #161922;
        --bs-body-color: #c2cceb;
        --ab-a-0e3fa8: #2b69ed;
        --ab-a-16a34a: #35e475;
        --ab-a-1a56db: #326ae7;
        --ab-a-f97316: #f9791f;
        --ab-a-ffffff: #1c1c1c;
        --ab-b-0078d4: #8cc4ef;
        --ab-b-0d9488: #a4f2eb;
        --ab-b-0e3fa8: #9ab6f1;
        --ab-b-107c41: #aef3ce;
        --ab-b-16a34a: #99f0b9;
        --ab-b-185abd: #8bb3ee;
        --ab-b-1861ac: #93c1f0;
        --ab-b-1a56db: #7c9fec;
        --ab-b-1d4ed8: #7c99ec;
        --ab-b-258cfb: #67a6e9;
        --ab-b-26b050: #92e7ac;
        --ab-b-6ee7d4: #3d7f75;
        --ab-b-7c3aed: #9564e9;
        --ab-b-86efac: #37724c;
        --ab-b-92400e: #f2c2a5;
        --ab-b-929292: #a7a7a7;
        --ab-b-93c5fd: #324b67;
        --ab-b-94a3b8: #4d5d74;
        --ab-b-99d1ff: #304c64;
        --ab-b-a0a0a0: #4e5b7a;
        --ab-b-a7f3d0: #30634b;
        --ab-b-b45309: #f0bd97;
        --ab-b-b91c1c: #ee8c8c;
        --ab-b-b9cdfb: #2b3958;
        --ab-b-bbf7d0: #2b593b;
        --ab-b-bcd0ff: #293756;
        --ab-b-bfdbfe: #293c55;
        --ab-b-c3d0ea: #2c3c5b;
        --ab-b-c8d3f0: #2a3657;
        --ab-b-c8d8f5: #293855;
        --ab-b-c8d9f7: #283854;
        --ab-b-cbd5e1: #324256;
        --ab-b-cccccc: #3a435a;
        --ab-b-d0d9ef: #283554;
        --ab-b-d4dcef: #283452;
        --ab-b-d6d5d5: #353e53;
        --ab-b-d6e0f5: #26334f;
        --ab-b-d97706: #eebe86;
        --ab-b-d9d9a6: #6e6e35;
        --ab-b-dbe3f3: #26334e;
        --ab-b-dbe3f5: #25314d;
        --ab-b-dbeafe: #23344a;
        --ab-b-dc2626: #e97878;
        --ab-b-dce8ff: #233049;
        --ab-b-ddd6fe: #2b244c;
        --ab-b-dddddd: #323a4e;
        --ab-b-dde4f5: #25304c;
        --ab-b-e2e8f0: #27364b;
        --ab-b-e2e8f5: #24304a;
        --ab-b-e50000: #ed8383;
        --ab-b-e5eaf5: #232f49;
        --ab-b-e8c9a0: #6a5333;
        --ab-b-e8eef8: #223047;
        --ab-b-eab308: #ecd17d;
        --ab-b-eef0f8: #212844;
        --ab-b-eef1f8: #212b44;
        --ab-b-eef2fb: #202b43;
        --ab-b-ef4444: #8d4444;
        --ab-b-f0f3fb: #202942;
        --ab-b-f1dc9a: #695c33;
        --ab-b-f59e0b: #ebc076;
        --ab-b-f5c27a: #745b38;
        --ab-b-f5c2c7: #572a2e;
        --ab-b-f97316: #eaa26f;
        --ab-b-fbbf24: #e9c567;
        --ab-b-fca5a5: #602e2e;
        --ab-b-fcd34d: #84743f;
        --ab-b-fde2e2: #472222;
        --ab-b-fde68a: #6b6033;
        --ab-b-fecaca: #502727;
        --ab-b-fed7aa: #5d472d;
        --ab-b-fee2e2: #472222;
        --ab-b-fef3c7: #524927;
        --ab-b-ffd591: #675332;
        --ab-b-ffffff: #222735;
        --ab-b-ffffffe6: #222735e6;
        --ab-s-003a6b: #002e56;
        --ab-s-004e8c: #004277;
        --ab-s-0078d4: #0066b4;
        --ab-s-00e400: #00c200;
        --ab-s-050814: #040610;
        --ab-s-052767: #041f52;
        --ab-s-060a18: #050813;
        --ab-s-0891b2: #077b97;
        --ab-s-0a2d7d: #09266a;
        --ab-s-0d9488: #0b7e74;
        --ab-s-0e3fa8: #0c368f;
        --ab-s-0e7490: #0c637a;
        --ab-s-107c41: #0e6937;
        --ab-s-155e75: #125063;
        --ab-s-15803d: #126d34;
        --ab-s-166534: #12512a;
        --ab-s-16a34a: #138b3f;
        --ab-s-185abd: #144ca1;
        --ab-s-1a56db: #1649ba;
        --ab-s-1b6ec2: #175da5;
        --ab-s-1d4ed8: #1942b8;
        --ab-s-1e2d5a: #182448;
        --ab-s-1e40af: #193695;
        --ab-s-22c55e: #1da750;
        --ab-s-3a0647: #2e0539;
        --ab-s-3b82f6: #0f66f4;
        --ab-s-5bc0de: #387f94;
        --ab-s-5cb85c: #47a347;
        --ab-s-78350f: #662d0d;
        --ab-s-7c3aed: #6215e6;
        --ab-s-86efac: #2c7346;
        --ab-s-92400e: #7c360c;
        --ab-s-9333ea: #7e17dc;
        --ab-s-991b1b: #821717;
        --ab-s-9a3412: #832c0f;
        --ab-s-9ca3af: #4a5674;
        --ab-s-9e9e9e: #4f5b7b;
        --ab-s-b45309: #994708;
        --ab-s-b91c1c: #9d1818;
        --ab-s-bbf7d0: #1f5231;
        --ab-s-bfdbfe: #1d324c;
        --ab-s-c2410c: #a5370a;
        --ab-s-c5cde8: #212d54;
        --ab-s-c7d2fe: #1b2448;
        --ab-s-cce8ff: #1a3144;
        --ab-s-cfe0ff: #192843;
        --ab-s-d0d0d0: #31394d;
        --ab-s-d1fae5: #1a442f;
        --ab-s-d2b48c: #7f5e32;
        --ab-s-d4dcef: #1c2949;
        --ab-s-d50000: #b50000;
        --ab-s-d5d5d5: #2e3649;
        --ab-s-d6b98c: #7d5f30;
        --ab-s-d97706: #b86505;
        --ab-s-dbeafe: #17273d;
        --ab-s-dc2626: #bd1e1e;
        --ab-s-dc3545: #c62232;
        --ab-s-dce8ff: #17233c;
        --ab-s-dcfce7: #173d24;
        --ab-s-dde4f5: #192441;
        --ab-s-e0e7ff: #161e3a;
        --ab-s-e0f2fe: #162c3a;
        --ab-s-e2e8f0: #1e2b3b;
        --ab-s-e2e8f5: #17243e;
        --ab-s-e3edff: #152238;
        --ab-s-e7f6ee: #163b27;
        --ab-s-e8e8e8: #232937;
        --ab-s-e8eeff: #141d35;
        --ab-s-e8efff: #141e35;
        --ab-s-e8f0ff: #142035;
        --ab-s-e9f9ef: #153822;
        --ab-s-ea580c: #c74b0a;
        --ab-s-eaf0ff: #141d34;
        --ab-s-eaf1ff: #141f34;
        --ab-s-ececec: #212634;
        --ab-s-ecfdf5: #143425;
        --ab-s-eef1f8: #161f34;
        --ab-s-eef2fb: #141e34;
        --ab-s-eef2ff: #131a32;
        --ab-s-eef3ff: #131c32;
        --ab-s-eef4ff: #131e32;
        --ab-s-ef4444: #973939;
        --ab-s-eff4ff: #131c31;
        --ab-s-eff6ff: #132031;
        --ab-s-f0f5ff: #131d31;
        --ab-s-f0f7ff: #132131;
        --ab-s-f0fdf4: #13321c;
        --ab-s-f0fdf9: #133228;
        --ab-s-f1f3f9: #151c32;
        --ab-s-f1f4fa: #131e33;
        --ab-s-f1f5f9: #152432;
        --ab-s-f2f2f2: #1d222e;
        --ab-s-f3e8ff: #241435;
        --ab-s-f4f6fb: #131b31;
        --ab-s-f4f7ff: #121a2f;
        --ab-s-f59e0b: #d18709;
        --ab-s-f5f3ff: #17122f;
        --ab-s-f5f8ff: #111a2e;
        --ab-s-f7f7f7: #1b1f2a;
        --ab-s-f7f9fc: #121d2f;
        --ab-s-f7f9fce0: #121d2fe0;
        --ab-s-f8fafc: #13202d;
        --ab-s-f8faff: #11192c;
        --ab-s-f97316: #e15f06;
        --ab-s-f9fbff: #111a2c;
        --ab-s-faf5ff: #20112e;
        --ab-s-fafbff: #10162b;
        --ab-s-fbbf24: #f0ae04;
        --ab-s-fbfcfe: #10192b;
        --ab-s-fde047: #8e8036;
        --ab-s-fde68a: #695c28;
        --ab-s-fde8ef: #361520;
        --ab-s-fdecec: #341414;
        --ab-s-fdf6ec: #342714;
        --ab-s-fecaca: #461b1b;
        --ab-s-fee2e2: #391616;
        --ab-s-fef2f2: #301212;
        --ab-s-fef3c7: #483f1b;
        --ab-s-fef6e3: #382e15;
        --ab-s-fef9c3: #4a461c;
        --ab-s-fefce8: #363314;
        --ab-s-ff2f2f: #ff0202;
        --ab-s-ffb6c1: #501e26;
        --ab-s-ffc080: #6e4c2a;
        --ab-s-fff0f0: #311313;
        --ab-s-fff1f1: #301212;
        --ab-s-fff3cd: #443a1a;
        --ab-s-fff4e0: #3a2d16;
        --ab-s-fff4e5: #372815;
        --ab-s-fff5f5: #2e1111;
        --ab-s-fff7e6: #362b15;
        --ab-s-fff7ed: #322513;
        --ab-s-fff8c4: #49431c;
        --ab-s-fff8e1: #393116;
        --ab-s-fffbea: #342e14;
        --ab-s-fffbeb: #342d14;
        --ab-s-fffbf2: #302712;
        --ab-s-fffde7: #363314;
        --ab-s-fffef2: #302d12;
        --ab-s-ffffcc: #44441a;
        --ab-s-ffffff: #161922;
        --ab-s-fffffff2: #161922f2;
        --ab-t-000000: #f7f7f7;
        --ab-t-006bb7: #9accf1;
        --ab-t-0078d4: #8cc4ef;
        --ab-t-0284c7: #91cfef;
        --ab-t-0369a1: #a3d6f2;
        --ab-t-065f46: #c1f6e7;
        --ab-t-0b3d0b: #d0f7d0;
        --ab-t-0d9488: #a4f2eb;
        --ab-t-0e3fa8: #9ab6f1;
        --ab-t-0ea5e9: #7bc9ec;
        --ab-t-0f7b4b: #aff4d5;
        --ab-t-14532d: #c5f1d6;
        --ab-t-15803d: #abf1c6;
        --ab-t-166534: #bbf0cf;
        --ab-t-16a34a: #99f0b9;
        --ab-t-198754: #a8efce;
        --ab-t-1a56db: #7c9fec;
        --ab-t-1d4ed8: #7c99ec;
        --ab-t-1e2d5a: #c2cceb;
        --ab-t-1e40af: #92a7ec;
        --ab-t-1f2937: #d7dee8;
        --ab-t-283c70: #b6c3e5;
        --ab-t-2e7d32: #afe2b2;
        --ab-t-334155: #c7d0dd;
        --ab-t-3730a3: #9e9ae1;
        --ab-t-3b5bdb: #7188e5;
        --ab-t-4338ca: #8a83de;
        --ab-t-444444: #d2d2d2;
        --ab-t-475569: #bcc5d2;
        --ab-t-4a5578: #b4bad0;
        --ab-t-4a5580: #afb6d1;
        --ab-t-555555: #c9c9c9;
        --ab-t-5a3000: #f7e0c6;
        --ab-t-5a6488: #abb1c7;
        --ab-t-64748b: #aab3c2;
        --ab-t-6b4c1f: #ebd6b8;
        --ab-t-6b7899: #a1aabe;
        --ab-t-6b7cad: #929fc3;
        --ab-t-6c757d: #b2b8bd;
        --ab-t-713f12: #f3d2b4;
        --ab-t-78350f: #f4c9b1;
        --ab-t-7b86b3: #8c95bd;
        --ab-t-7c2d12: #f3bfad;
        --ab-t-7c3aed: #9564e9;
        --ab-t-7e22ce: #b981ea;
        --ab-t-7f1d1d: #ecadad;
        --ab-t-854d0e: #f3d1ab;
        --ab-t-8a94b8: #838eb4;
        --ab-t-8a97c0: #7c8bb9;
        --ab-t-8b93b3: #8890b1;
        --ab-t-8c8c8c: #aaaaaa;
        --ab-t-92400e: #f2c2a5;
        --ab-t-93c5fd: #258afb;
        --ab-t-94a3b8: #8697af;
        --ab-t-97a3c4: #7c8bb4;
        --ab-t-991b1b: #ee9e9e;
        --ab-t-9a3412: #f1b39f;
        --ab-t-9aa3c2: #7e8ab1;
        --ab-t-9aa6c8: #7888b6;
        --ab-t-a0aec8: #7a8eb2;
        --ab-t-a35a00: #f2cfa3;
        --ab-t-a71d2a: #ed969e;
        --ab-t-aab0cc: #7983af;
        --ab-t-ad6800: #f1d09e;
        --ab-t-b02a37: #e5929a;
        --ab-t-b0306a: #e192b6;
        --ab-t-b0b9d9: #6b7bb8;
        --ab-t-b45309: #f0bd97;
        --ab-t-b7bedd: #6776b7;
        --ab-t-b8c1dc: #697cb5;
        --ab-t-b91c1c: #ee8c8c;
        --ab-t-be185d: #ee8bb4;
        --ab-t-bfdbfe: #bfdbfe;
        --ab-t-c0392b: #e59289;
        --ab-t-c2410c: #efab8e;
        --ab-t-c5cde8: #5a71bd;
        --ab-t-d0d9ef: #d0d9ef;
        --ab-t-d32f2f: #e47d7d;
        --ab-t-d97706: #eebe86;
        --ab-t-dc2626: #e97878;
        --ab-t-dc3545: #e7727d;
        --ab-t-e50000: #ed8383;
        --ab-t-e53e3e: #e96666;
        --ab-t-ea580c: #eca27b;
        --ab-t-f1f5f9d9: #f1f5f9d9;
        --ab-t-f59e0b: #ebc076;
        --ab-t-fbbf24: #e9c567;
        --ab-t-fca5a5: #f82323;
        --ab-t-ffffff: #ffffff;
        --ab-t-ffffffcc: #ffffffcc;
        --ab-t-ffffffd9: #ffffffd9;
        --ab-t-ffffffeb: #ffffffeb;
    }
}

/************************************************************
 * TESTI HTML CON COLORI PROPRI (scritto a mano, non generato)
 * Descrizione delle attività (DettaglioAttivita: storico htmlContent
 * e editor htmlContentNEW): il testo arriva con i colori scritti
 * dentro (nero, da Word/Outlook/desktop) che sul fondo scuro non si
 * leggono. Col tema scuro il testo è sempre bianco e gli sfondi
 * delle evidenziazioni si tolgono, altrimenti resterebbe bianco su bianco.
 * L'area di scrittura del DxHtmlEditor è .dx-htmleditor-content (.ql-editor),
 * dentro .dxbl-html-editor (la CssClass da-html-editor sta sulla radice).
 ************************************************************/
@media screen {
    :root[data-tema="scuro"] .da-descrizione-storico,
    :root[data-tema="scuro"] .da-descrizione-storico *,
    :root[data-tema="scuro"] .da-html-editor .dx-htmleditor-content,
    :root[data-tema="scuro"] .da-html-editor .dx-htmleditor-content *,
    :root[data-tema="scuro"] .da-html-editor .ql-editor,
    :root[data-tema="scuro"] .da-html-editor .ql-editor * {
        color: #ffffff !important;
    }

    :root[data-tema="scuro"] .da-descrizione-storico *,
    :root[data-tema="scuro"] .da-html-editor .dx-htmleditor-content *,
    :root[data-tema="scuro"] .da-html-editor .ql-editor * {
        background-color: transparent !important;
    }
}