/* =============================================================================
   TEMA CLARO / OSCURO DE SIGESAMU (v1.120.0)

   - tema.js pone <html data-tema="claro|oscuro"> antes de pintar; solo las vistas con
     data-tema-compatible reciben "oscuro".
   - Cada color escrito a mano en las vistas migradas es var(--tema-ROL-COLOR, respaldo).
     El bloque generado define su valor claro y oscuro; se rehace con
     php configuracion/tema_oscuro.php generar
   - Legibilidad primero: datos clinicos a 7:1 o mas, semaforo aclarado con el mismo
     significado, sin negro puro. Se imprime siempre en claro.
   ============================================================================= */

/* <tokens-generados> */
/* Generado por configuracion/tema_oscuro.php generar: no editar a mano. */
:root {
    --tema-bd-0284c7: #0284c7;
    --tema-bd-0369a1: #0369a1;
    --tema-bd-047857: #047857;
    --tema-bd-059669: #059669;
    --tema-bd-065f46: #065f46;
    --tema-bd-0b5a2f: #0b5a2f;
    --tema-bd-0d9488: #0d9488;
    --tema-bd-0f172a: #0f172a;
    --tema-bd-0f766e: #0f766e;
    --tema-bd-10b981: #10b981;
    --tema-bd-15803d: #15803d;
    --tema-bd-166534: #166534;
    --tema-bd-16a34a: #16a34a;
    --tema-bd-1d4ed8: #1d4ed8;
    --tema-bd-1e293b: #1e293b;
    --tema-bd-1e3a8a: #1e3a8a;
    --tema-bd-2563eb: #2563eb;
    --tema-bd-2dd4bf: #2dd4bf;
    --tema-bd-334155: #334155;
    --tema-bd-34d399: #34d399;
    --tema-bd-38bdf8: #38bdf8;
    --tema-bd-3b82f6: #3b82f6;
    --tema-bd-475569: #475569;
    --tema-bd-4ade80: #4ade80;
    --tema-bd-4f46e5: #4f46e5;
    --tema-bd-60a5fa: #60a5fa;
    --tema-bd-64748b: #64748b;
    --tema-bd-7c3aed: #7c3aed;
    --tema-bd-7dd3fc: #7dd3fc;
    --tema-bd-86efac: #86efac;
    --tema-bd-93c5fd: #93c5fd;
    --tema-bd-94a3b8: #94a3b8;
    --tema-bd-99f6e4: #99f6e4;
    --tema-bd-a5b4fc: #a5b4fc;
    --tema-bd-a5f3fc: #a5f3fc;
    --tema-bd-a7f3d0: #a7f3d0;
    --tema-bd-b91c1c: #b91c1c;
    --tema-bd-bae6fd: #bae6fd;
    --tema-bd-bbf7d0: #bbf7d0;
    --tema-bd-be185d: #be185d;
    --tema-bd-bfdbfe: #bfdbfe;
    --tema-bd-c084fc: #c084fc;
    --tema-bd-c7d2fe: #c7d2fe;
    --tema-bd-ca8a04: #ca8a04;
    --tema-bd-cbd5e1: #cbd5e1;
    --tema-bd-d8b4fe: #d8b4fe;
    --tema-bd-d97706: #d97706;
    --tema-bd-dbeafe: #dbeafe;
    --tema-bd-dc2626: #dc2626;
    --tema-bd-ddd6fe: #ddd6fe;
    --tema-bd-e0e7ff: #e0e7ff;
    --tema-bd-e0f2fe: #e0f2fe;
    --tema-bd-e2e8f0: #e2e8f0;
    --tema-bd-e9d5ff: #e9d5ff;
    --tema-bd-ea580c: #ea580c;
    --tema-bd-eef2f6: #eef2f6;
    --tema-bd-ef4444: #ef4444;
    --tema-bd-f1f5f9: #f1f5f9;
    --tema-bd-f59e0b: #f59e0b;
    --tema-bd-f87171: #f87171;
    --tema-bd-fb923c: #fb923c;
    --tema-bd-fbcfe8: #fbcfe8;
    --tema-bd-fca5a5: #fca5a5;
    --tema-bd-fcd34d: #fcd34d;
    --tema-bd-fde047: #fde047;
    --tema-bd-fde68a: #fde68a;
    --tema-bd-fecaca: #fecaca;
    --tema-bd-fed7aa: #fed7aa;
    --tema-bd-fef08a: #fef08a;
    --tema-bd-fef3c7: #fef3c7;
    --tema-bd-ffe4e6: #ffe4e6;
    --tema-bd-ffedd5: #ffedd5;
    --tema-bd-ffffff: #ffffff;
    --tema-bg-007bff: #007bff;
    --tema-bg-0284c7: #0284c7;
    --tema-bg-0369a1: #0369a1;
    --tema-bg-047857: #047857;
    --tema-bg-059669: #059669;
    --tema-bg-065f46: #065f46;
    --tema-bg-075985: #075985;
    --tema-bg-090d16: #090d16;
    --tema-bg-0b111e: #0b111e;
    --tema-bg-0d9488: #0d9488;
    --tema-bg-0f172a: #0f172a;
    --tema-bg-0f766e: #0f766e;
    --tema-bg-107c41: #107c41;
    --tema-bg-10b981: #10b981;
    --tema-bg-15803d: #15803d;
    --tema-bg-166534: #166534;
    --tema-bg-16a34a: #16a34a;
    --tema-bg-1d4ed8: #1d4ed8;
    --tema-bg-1e293b: #1e293b;
    --tema-bg-1e3a8a: #1e3a8a;
    --tema-bg-22c55e: #22c55e;
    --tema-bg-2563eb: #2563eb;
    --tema-bg-334155: #334155;
    --tema-bg-34d399: #34d399;
    --tema-bg-38bdf8: #38bdf8;
    --tema-bg-3b82f6: #3b82f6;
    --tema-bg-475569: #475569;
    --tema-bg-4f46e5: #4f46e5;
    --tema-bg-60a5fa: #60a5fa;
    --tema-bg-6366f1: #6366f1;
    --tema-bg-64748b: #64748b;
    --tema-bg-6c757d: #6c757d;
    --tema-bg-7c3aed: #7c3aed;
    --tema-bg-7dd3fc: #7dd3fc;
    --tema-bg-8b5cf6: #8b5cf6;
    --tema-bg-94a3b8: #94a3b8;
    --tema-bg-991b1b: #991b1b;
    --tema-bg-a7f3d0: #a7f3d0;
    --tema-bg-b45309: #b45309;
    --tema-bg-b91c1c: #b91c1c;
    --tema-bg-bae6fd: #bae6fd;
    --tema-bg-bbf7d0: #bbf7d0;
    --tema-bg-ca8a04: #ca8a04;
    --tema-bg-cbd5e1: #cbd5e1;
    --tema-bg-ccfbf1: #ccfbf1;
    --tema-bg-cffafe: #cffafe;
    --tema-bg-d1d5db: #d1d5db;
    --tema-bg-d97706: #d97706;
    --tema-bg-db2777: #db2777;
    --tema-bg-dbeafe: #dbeafe;
    --tema-bg-dc2626: #dc2626;
    --tema-bg-dcfce7: #dcfce7;
    --tema-bg-dfe6ee: #dfe6ee;
    --tema-bg-e0e7ff: #e0e7ff;
    --tema-bg-e0effe: #e0effe;
    --tema-bg-e0f2fe: #e0f2fe;
    --tema-bg-e11d48: #e11d48;
    --tema-bg-e2e8f0: #e2e8f0;
    --tema-bg-ea580c: #ea580c;
    --tema-bg-eab308: #eab308;
    --tema-bg-ecfdf5: #ecfdf5;
    --tema-bg-ecfeff: #ecfeff;
    --tema-bg-ede9fe: #ede9fe;
    --tema-bg-eef2f7: #eef2f7;
    --tema-bg-eef2ff: #eef2ff;
    --tema-bg-ef4444: #ef4444;
    --tema-bg-eff6ff: #eff6ff;
    --tema-bg-f0f7ff: #f0f7ff;
    --tema-bg-f0f9ff: #f0f9ff;
    --tema-bg-f0fdf4: #f0fdf4;
    --tema-bg-f0fdfa: #f0fdfa;
    --tema-bg-f1f5f9: #f1f5f9;
    --tema-bg-f3e8ff: #f3e8ff;
    --tema-bg-f59e0b: #f59e0b;
    --tema-bg-f5f3ff: #f5f3ff;
    --tema-bg-f87171: #f87171;
    --tema-bg-f8fafc: #f8fafc;
    --tema-bg-faf5ff: #faf5ff;
    --tema-bg-fafafa: #fafafa;
    --tema-bg-fafbfc: #fafbfc;
    --tema-bg-fafcff: #fafcff;
    --tema-bg-fbfcfe: #fbfcfe;
    --tema-bg-fca5a5: #fca5a5;
    --tema-bg-fce7f3: #fce7f3;
    --tema-bg-fde68a: #fde68a;
    --tema-bg-fdf2f8: #fdf2f8;
    --tema-bg-fdf4ff: #fdf4ff;
    --tema-bg-fecaca: #fecaca;
    --tema-bg-fee2e2: #fee2e2;
    --tema-bg-fef08a: #fef08a;
    --tema-bg-fef2f2: #fef2f2;
    --tema-bg-fef3c7: #fef3c7;
    --tema-bg-fef9c3: #fef9c3;
    --tema-bg-fefce8: #fefce8;
    --tema-bg-ffe4e6: #ffe4e6;
    --tema-bg-ffedd5: #ffedd5;
    --tema-bg-fff1f2: #fff1f2;
    --tema-bg-fff5f5: #fff5f5;
    --tema-bg-fff7ed: #fff7ed;
    --tema-bg-fffaf0: #fffaf0;
    --tema-bg-fffafa: #fffafa;
    --tema-bg-fffbeb: #fffbeb;
    --tema-bg-ffffff: #ffffff;
    --tema-bg-rgba-248-250-252-086: rgba(248, 250, 252, 0.86);
    --tema-bg-rgba-255-255-255-060: rgba(255, 255, 255, 0.6);
    --tema-bg-rgba-255-255-255-095: rgba(255, 255, 255, 0.95);
    --tema-fijo-0b2545: #0b2545;
    --tema-fijo-0f172a: #0f172a;
    --tema-fijo-475569: #475569;
    --tema-fijo-94a3b8: #94a3b8;
    --tema-fijo-cbd5e1: #cbd5e1;
    --tema-fijo-ffffff: #ffffff;
    --tema-fijo-rgba-0-0-0-005: rgba(0, 0, 0, 0.05);
    --tema-tx-000000: #000000;
    --tema-tx-0284c7: #0369a1;
    --tema-tx-0369a1: #0369a1;
    --tema-tx-047857: #047857;
    --tema-tx-059669: #047857;
    --tema-tx-065f46: #065f46;
    --tema-tx-075985: #075985;
    --tema-tx-0891b2: #0e7490;
    --tema-tx-0c4a6e: #0c4a6e;
    --tema-tx-0d9488: #0d9488;
    --tema-tx-0e7490: #0e7490;
    --tema-tx-0ea5e9: #0ea5e9;
    --tema-tx-0f172a: #0f172a;
    --tema-tx-0f766e: #0f766e;
    --tema-tx-10b981: #047857;
    --tema-tx-115e59: #115e59;
    --tema-tx-14532d: #14532d;
    --tema-tx-14b8a6: #14b8a6;
    --tema-tx-15803d: #15803d;
    --tema-tx-166534: #166534;
    --tema-tx-16a34a: #15803d;
    --tema-tx-1d4ed8: #1d4ed8;
    --tema-tx-1e293b: #1e293b;
    --tema-tx-1e3a8a: #1e3a8a;
    --tema-tx-1e40af: #1e40af;
    --tema-tx-22c55e: #15803d;
    --tema-tx-2563eb: #2563eb;
    --tema-tx-2dd4bf: #2dd4bf;
    --tema-tx-312e81: #312e81;
    --tema-tx-334155: #334155;
    --tema-tx-3730a3: #3730a3;
    --tema-tx-38bdf8: #38bdf8;
    --tema-tx-3b82f6: #2563eb;
    --tema-tx-4338ca: #4338ca;
    --tema-tx-475569: #475569;
    --tema-tx-4f46e5: #4f46e5;
    --tema-tx-5b21b6: #5b21b6;
    --tema-tx-60a5fa: #60a5fa;
    --tema-tx-6366f1: #4f46e5;
    --tema-tx-64748b: #64748b;
    --tema-tx-6b21a8: #6b21a8;
    --tema-tx-6d28d9: #6d28d9;
    --tema-tx-6ee7b7: #6ee7b7;
    --tema-tx-78350f: #78350f;
    --tema-tx-7c2d12: #7c2d12;
    --tema-tx-7c3aed: #7c3aed;
    --tema-tx-7e22ce: #7e22ce;
    --tema-tx-7f1d1d: #7f1d1d;
    --tema-tx-831843: #831843;
    --tema-tx-854d0e: #854d0e;
    --tema-tx-8b5cf6: #8b5cf6;
    --tema-tx-92400e: #92400e;
    --tema-tx-9333ea: #9333ea;
    --tema-tx-93c5fd: #93c5fd;
    --tema-tx-94a3b8: #64748b;
    --tema-tx-991b1b: #991b1b;
    --tema-tx-9a3412: #9a3412;
    --tema-tx-9d174d: #9d174d;
    --tema-tx-a16207: #a16207;
    --tema-tx-a7f3d0: #a7f3d0;
    --tema-tx-a855f7: #a855f7;
    --tema-tx-b45309: #b45309;
    --tema-tx-b91c1c: #b91c1c;
    --tema-tx-bbf7d0: #bbf7d0;
    --tema-tx-be123c: #be123c;
    --tema-tx-be185d: #be185d;
    --tema-tx-bfdbfe: #bfdbfe;
    --tema-tx-c026d3: #c026d3;
    --tema-tx-c2410c: #c2410c;
    --tema-tx-ca8a04: #a16207;
    --tema-tx-cbd5e1: #cbd5e1;
    --tema-tx-ccfbf1: #ccfbf1;
    --tema-tx-d97706: #b45309;
    --tema-tx-db2777: #db2777;
    --tema-tx-dc2626: #dc2626;
    --tema-tx-dc3545: #dc3545;
    --tema-tx-e11d48: #e11d48;
    --tema-tx-e2e8f0: #e2e8f0;
    --tema-tx-e9d5ff: #e9d5ff;
    --tema-tx-ea580c: #c2410c;
    --tema-tx-eab308: #a16207;
    --tema-tx-ec4899: #ec4899;
    --tema-tx-ef4444: #dc2626;
    --tema-tx-eff6ff: #eff6ff;
    --tema-tx-f1f5f9: #f1f5f9;
    --tema-tx-f59e0b: #b45309;
    --tema-tx-f87171: #f87171;
    --tema-tx-f8fafc: #f8fafc;
    --tema-tx-f97316: #f97316;
    --tema-tx-fd7e14: #fd7e14;
    --tema-tx-fde047: #fde047;
    --tema-tx-fde68a: #fde68a;
    --tema-tx-fee2e2: #fee2e2;
    --tema-tx-fef08a: #fef08a;
    --tema-tx-ffffff: #ffffff;
}

:root[data-tema="oscuro"] {
    --tema-bd-0284c7: #0284c7;
    --tema-bd-0369a1: #0369a1;
    --tema-bd-047857: #047857;
    --tema-bd-059669: #059669;
    --tema-bd-065f46: #065f46;
    --tema-bd-0b5a2f: #0b5a2f;
    --tema-bd-0d9488: #0d9488;
    --tema-bd-0f172a: #0f172a;
    --tema-bd-0f766e: #0f766e;
    --tema-bd-10b981: #10b981;
    --tema-bd-15803d: #15803d;
    --tema-bd-166534: #166534;
    --tema-bd-16a34a: #16a34a;
    --tema-bd-1d4ed8: #1d4ed8;
    --tema-bd-1e293b: #1e293b;
    --tema-bd-1e3a8a: #1e3a8a;
    --tema-bd-2563eb: #2563eb;
    --tema-bd-2dd4bf: #2dd4bf;
    --tema-bd-334155: #334155;
    --tema-bd-34d399: #34d399;
    --tema-bd-38bdf8: #38bdf8;
    --tema-bd-3b82f6: #3b82f6;
    --tema-bd-475569: #475569;
    --tema-bd-4ade80: #4ade80;
    --tema-bd-4f46e5: #4f46e5;
    --tema-bd-60a5fa: #23518b;
    --tema-bd-64748b: #64748b;
    --tema-bd-7c3aed: #7c3aed;
    --tema-bd-7dd3fc: #23698b;
    --tema-bd-86efac: #238b48;
    --tema-bd-93c5fd: #23548b;
    --tema-bd-94a3b8: #455468;
    --tema-bd-99f6e4: #238b77;
    --tema-bd-a5b4fc: #23358b;
    --tema-bd-a5f3fc: #23808b;
    --tema-bd-a7f3d0: #238b5b;
    --tema-bd-b91c1c: #b91c1c;
    --tema-bd-bae6fd: #1f475c;
    --tema-bd-bbf7d0: #1f5c34;
    --tema-bd-be185d: #be185d;
    --tema-bd-bfdbfe: #1f3a5c;
    --tema-bd-c084fc: #57238b;
    --tema-bd-c7d2fe: #1f2b5c;
    --tema-bd-ca8a04: #ca8a04;
    --tema-bd-cbd5e1: #34445f;
    --tema-bd-d8b4fe: #3c1f5c;
    --tema-bd-d97706: #d97706;
    --tema-bd-dbeafe: #1f395c;
    --tema-bd-dc2626: #dc2626;
    --tema-bd-ddd6fe: #291f5c;
    --tema-bd-e0e7ff: #1f2c5c;
    --tema-bd-e0f2fe: #26344d;
    --tema-bd-e2e8f0: #26344d;
    --tema-bd-e9d5ff: #3c1f5c;
    --tema-bd-ea580c: #ea580c;
    --tema-bd-eef2f6: #26344d;
    --tema-bd-ef4444: #ef4444;
    --tema-bd-f1f5f9: #26344d;
    --tema-bd-f59e0b: #f59e0b;
    --tema-bd-f87171: #8b2323;
    --tema-bd-fb923c: #fb923c;
    --tema-bd-fbcfe8: #5c1f41;
    --tema-bd-fca5a5: #8b2323;
    --tema-bd-fcd34d: #fcd34d;
    --tema-bd-fde047: #fde047;
    --tema-bd-fde68a: #8b7623;
    --tema-bd-fecaca: #5c1f1f;
    --tema-bd-fed7aa: #8b5a23;
    --tema-bd-fef08a: #8b7e23;
    --tema-bd-fef3c7: #5c501f;
    --tema-bd-ffe4e6: #26344d;
    --tema-bd-ffedd5: #5c421f;
    --tema-bd-ffffff: #26344d;
    --tema-bg-007bff: #007bff;
    --tema-bg-0284c7: #0284c7;
    --tema-bg-0369a1: #0369a1;
    --tema-bg-047857: #047857;
    --tema-bg-059669: #059669;
    --tema-bg-065f46: #065f46;
    --tema-bg-075985: #075985;
    --tema-bg-090d16: #090d16;
    --tema-bg-0b111e: #0b111e;
    --tema-bg-0d9488: #0d9488;
    --tema-bg-0f172a: #0f172a;
    --tema-bg-0f766e: #0f766e;
    --tema-bg-107c41: #107c41;
    --tema-bg-10b981: #10b981;
    --tema-bg-15803d: #15803d;
    --tema-bg-166534: #166534;
    --tema-bg-16a34a: #16a34a;
    --tema-bg-1d4ed8: #1d4ed8;
    --tema-bg-1e293b: #1e293b;
    --tema-bg-1e3a8a: #1e3a8a;
    --tema-bg-22c55e: #22c55e;
    --tema-bg-2563eb: #2563eb;
    --tema-bg-334155: #334155;
    --tema-bg-34d399: #34d399;
    --tema-bg-38bdf8: #38bdf8;
    --tema-bg-3b82f6: #3b82f6;
    --tema-bg-475569: #475569;
    --tema-bg-4f46e5: #4f46e5;
    --tema-bg-60a5fa: #60a5fa;
    --tema-bg-6366f1: #6366f1;
    --tema-bg-64748b: #64748b;
    --tema-bg-6c757d: #6c757d;
    --tema-bg-7c3aed: #7c3aed;
    --tema-bg-7dd3fc: #7dd3fc;
    --tema-bg-8b5cf6: #8b5cf6;
    --tema-bg-94a3b8: #94a3b8;
    --tema-bg-991b1b: #991b1b;
    --tema-bg-a7f3d0: #19573b;
    --tema-bg-b45309: #b45309;
    --tema-bg-b91c1c: #b91c1c;
    --tema-bg-bae6fd: #194257;
    --tema-bg-bbf7d0: #19572f;
    --tema-bg-ca8a04: #ca8a04;
    --tema-bg-cbd5e1: #2e3f5c;
    --tema-bg-ccfbf1: #19574a;
    --tema-bg-cffafe: #123b3f;
    --tema-bg-d1d5db: #2e3f5c;
    --tema-bg-d97706: #d97706;
    --tema-bg-db2777: #db2777;
    --tema-bg-dbeafe: #12263f;
    --tema-bg-dc2626: #dc2626;
    --tema-bg-dcfce7: #123f22;
    --tema-bg-dfe6ee: #22314b;
    --tema-bg-e0e7ff: #131d3f;
    --tema-bg-e0effe: #13293e;
    --tema-bg-e0f2fe: #132d3e;
    --tema-bg-e11d48: #e11d48;
    --tema-bg-e2e8f0: #22314b;
    --tema-bg-ea580c: #ea580c;
    --tema-bg-eab308: #eab308;
    --tema-bg-ecfdf5: #1a372a;
    --tema-bg-ecfeff: #152c2e;
    --tema-bg-ede9fe: #1e1839;
    --tema-bg-eef2f7: #1a2740;
    --tema-bg-eef2ff: #151b2d;
    --tema-bg-ef4444: #ef4444;
    --tema-bg-eff6ff: #16202c;
    --tema-bg-f0f7ff: #162238;
    --tema-bg-f0f9ff: #162238;
    --tema-bg-f0fdf4: #162238;
    --tema-bg-f0fdfa: #162238;
    --tema-bg-f1f5f9: #1a2740;
    --tema-bg-f3e8ff: #28173b;
    --tema-bg-f59e0b: #f59e0b;
    --tema-bg-f5f3ff: #162238;
    --tema-bg-f87171: #f87171;
    --tema-bg-f8fafc: #162238;
    --tema-bg-faf5ff: #162238;
    --tema-bg-fafafa: #162238;
    --tema-bg-fafbfc: #162238;
    --tema-bg-fafcff: #121b2e;
    --tema-bg-fbfcfe: #121b2e;
    --tema-bg-fca5a5: #571919;
    --tema-bg-fce7f3: #39182b;
    --tema-bg-fde68a: #574b19;
    --tema-bg-fdf2f8: #162238;
    --tema-bg-fdf4ff: #162238;
    --tema-bg-fecaca: #571919;
    --tema-bg-fee2e2: #3d1414;
    --tema-bg-fef08a: #575019;
    --tema-bg-fef2f2: #162238;
    --tema-bg-fef3c7: #574b19;
    --tema-bg-fef9c3: #575219;
    --tema-bg-fefce8: #3a3718;
    --tema-bg-ffe4e6: #3d1518;
    --tema-bg-ffedd5: #3f2c12;
    --tema-bg-fff1f2: #162238;
    --tema-bg-fff5f5: #162238;
    --tema-bg-fff7ed: #2d2315;
    --tema-bg-fffaf0: #162238;
    --tema-bg-fffafa: #121b2e;
    --tema-bg-fffbeb: #2e2914;
    --tema-bg-ffffff: #121b2e;
    --tema-bg-rgba-248-250-252-086: rgba(18, 27, 46, 0.86);
    --tema-bg-rgba-255-255-255-060: rgba(18, 27, 46, 0.6);
    --tema-bg-rgba-255-255-255-095: rgba(18, 27, 46, 0.95);
    --tema-fijo-0b2545: #0b2545;
    --tema-fijo-0f172a: #0f172a;
    --tema-fijo-475569: #475569;
    --tema-fijo-94a3b8: #94a3b8;
    --tema-fijo-cbd5e1: #cbd5e1;
    --tema-fijo-ffffff: #ffffff;
    --tema-fijo-rgba-0-0-0-005: rgba(0, 0, 0, 0.05);
    --tema-tx-000000: #e6edf7;
    --tema-tx-0284c7: #81d0f8;
    --tema-tx-0369a1: #81cef8;
    --tema-tx-047857: #81f8d6;
    --tema-tx-059669: #81f8d3;
    --tema-tx-065f46: #82f7d6;
    --tema-tx-075985: #81cff8;
    --tema-tx-0891b2: #81e1f8;
    --tema-tx-0c4a6e: #87cbf2;
    --tema-tx-0d9488: #85f4ea;
    --tema-tx-0e7490: #86dcf3;
    --tema-tx-0ea5e9: #82d3f7;
    --tema-tx-0f172a: #e6edf7;
    --tema-tx-0f766e: #89f0e8;
    --tema-tx-10b981: #85f4d0;
    --tema-tx-115e59: #8febe5;
    --tema-tx-14532d: #94e5b4;
    --tema-tx-14b8a6: #87f2e6;
    --tema-tx-15803d: #8decb1;
    --tema-tx-166534: #92e7b2;
    --tema-tx-16a34a: #8aefaf;
    --tema-tx-1d4ed8: #8aa5ef;
    --tema-tx-1e293b: #e6edf7;
    --tema-tx-1e3a8a: #92a8e7;
    --tema-tx-1e40af: #8ea4ec;
    --tema-tx-22c55e: #8eebb0;
    --tema-tx-2563eb: #86a8f4;
    --tema-tx-2dd4bf: #91e8dd;
    --tema-tx-312e81: #9895e4;
    --tema-tx-334155: #d5deea;
    --tema-tx-3730a3: #9a95e4;
    --tema-tx-38bdf8: #81d4f8;
    --tema-tx-3b82f6: #81aef8;
    --tema-tx-4338ca: #9b95e4;
    --tema-tx-475569: #c3cedd;
    --tema-tx-4f46e5: #908bef;
    --tema-tx-5b21b6: #b38feb;
    --tema-tx-60a5fa: #81b7f8;
    --tema-tx-6366f1: #8588f4;
    --tema-tx-64748b: #a3b0c2;
    --tema-tx-6b21a8: #c190e9;
    --tema-tx-6d28d9: #b28eeb;
    --tema-tx-6ee7b7: #8decc7;
    --tema-tx-78350f: #f0ae89;
    --tema-tx-7c2d12: #eea48b;
    --tema-tx-7c3aed: #ae86f4;
    --tema-tx-7e22ce: #c08dec;
    --tema-tx-7f1d1d: #e69393;
    --tema-tx-831843: #ea8fb4;
    --tema-tx-854d0e: #f2c087;
    --tema-tx-8b5cf6: #a681f8;
    --tema-tx-92400e: #f3af86;
    --tema-tx-9333ea: #bf87f3;
    --tema-tx-93c5fd: #93c5fd;
    --tema-tx-94a3b8: #8e9bb0;
    --tema-tx-991b1b: #eb8e8e;
    --tema-tx-9a3412: #f1a288;
    --tema-tx-9d174d: #ee8bb3;
    --tema-tx-a16207: #f8c881;
    --tema-tx-a7f3d0: #a7f3d0;
    --tema-tx-a855f7: #be81f8;
    --tema-tx-b45309: #f8b581;
    --tema-tx-b91c1c: #ee8c8c;
    --tema-tx-bbf7d0: #bbf7d0;
    --tema-tx-be123c: #f486a1;
    --tema-tx-be185d: #f089b4;
    --tema-tx-bfdbfe: #bfdbfe;
    --tema-tx-c026d3: #e18feb;
    --tema-tx-c2410c: #f7a482;
    --tema-tx-ca8a04: #f5bd47;
    --tema-tx-cbd5e1: #cbd5e1;
    --tema-tx-ccfbf1: #ccfbf1;
    --tema-tx-d97706: #f8c181;
    --tema-tx-db2777: #ec8db7;
    --tema-tx-dc2626: #ed8d8d;
    --tema-tx-dc3545: #eb8e97;
    --tema-tx-e11d48: #f08aa0;
    --tema-tx-e2e8f0: #e2e8f0;
    --tema-tx-e9d5ff: #e9d5ff;
    --tema-tx-ea580c: #f8aa81;
    --tema-tx-eab308: #f5cb47;
    --tema-tx-ec4899: #f387bc;
    --tema-tx-ef4444: #f58585;
    --tema-tx-eff6ff: #eff6ff;
    --tema-tx-f1f5f9: #f1f5f9;
    --tema-tx-f59e0b: #f8cc81;
    --tema-tx-f87171: #f88181;
    --tema-tx-f8fafc: #f8fafc;
    --tema-tx-f97316: #f8b281;
    --tema-tx-fd7e14: #f8b781;
    --tema-tx-fde047: #f5da47;
    --tema-tx-fde68a: #fde68a;
    --tema-tx-fee2e2: #fee2e2;
    --tema-tx-fef08a: #fef08a;
    --tema-tx-ffffff: #ffffff;
}
/* </tokens-generados> */

/* Variables base de estilos.css en tema oscuro */
:root[data-tema="oscuro"] {
    color-scheme: dark;

    --bg-principal: #0b1220;
    --bg-secundario: #0e1728;
    --bg-tarjeta: #121b2e;
    --bg-tarjeta-elevada: #18243b;

    --borde-color: #26344d;
    --borde-sutil: #1e2b42;
    --borde-activo: #38bdf8;

    --texto-principal: #e6edf7;
    --texto-secundario: #c3cedd;
    --texto-apagado: #8e9bb0;

    --primario-samu: #93c5fd;
    --primario-samu-hover: #bfdbfe;
    --acento-samu: #38bdf8;
    --acento-samu-hover: #7dd3fc;
    --acento-suave: #0c2436;

    --color-exito: #34d399;
    --color-exito-bg: #0b2a22;
    --color-exito-borde: #1d5a47;

    --color-alerta: #fbbf24;
    --color-alerta-bg: #2a1f0a;
    --color-alerta-borde: #5b4312;

    --color-peligro: #f87171;
    --color-peligro-bg: #2a1216;
    --color-peligro-borde: #5c2328;

    --color-info: #7dd3fc;
    --color-info-bg: #0c2436;
    --color-info-borde: #1d4a66;

    --turno-diurno-bg: #0d2a1a;
    --turno-diurno-texto: #86efac;
    --turno-diurno-borde: #1f5a36;

    --turno-noche-bg: #24123a;
    --turno-noche-texto: #d8b4fe;
    --turno-noche-borde: #4c2a78;

    --turno-largo-bg: #0c2436;
    --turno-largo-texto: #7dd3fc;
    --turno-largo-borde: #1d4a66;

    --turno-24h-bg: #2a1f0a;
    --turno-24h-texto: #fcd34d;
    --turno-24h-borde: #5b4312;

    --turno-libre-bg: #1a2740;
    --turno-libre-texto: #c3cedd;
    --turno-libre-borde: #34445f;

    --turno-licencia-bg: #2a1216;
    --turno-licencia-texto: #fca5a5;
    --turno-licencia-borde: #5c2328;

    --sombra-suave: 0 1px 3px 0 rgba(0, 0, 0, 0.45);
    --sombra-tarjeta: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 12px rgba(0, 0, 0, 0.35);
    --sombra-elevada: 0 10px 24px -6px rgba(0, 0, 0, 0.55);
    --sombra-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Selector de tema del equipo (barra de navegacion y login) */
.btn-tema-equipo {
    background: var(--bg-tarjeta);
    border: 1px solid var(--borde-color);
    color: var(--texto-secundario);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: background-color var(--transicion-rapida), border-color var(--transicion-rapida), color var(--transicion-rapida);
}

.btn-tema-equipo i {
    color: var(--acento-samu);
    font-size: 0.95rem;
}

.btn-tema-equipo:hover {
    background: var(--acento-suave);
    border-color: var(--acento-samu);
    color: var(--texto-principal);
}

.btn-tema-equipo:focus-visible {
    outline: 2px solid var(--acento-samu);
    outline-offset: 2px;
}

.selector-tema-login {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

/* Vistas del movil (v1.121.0): barra inferior y cabeceras oscuras propias */
.item-nav-tema {
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.item-nav-tema [data-texto-tema] {
    white-space: nowrap;
}

.btn-tema-cabecera-movil {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    height: 34px;
    padding: 0 0.6rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Cabeceras oscuras de /movil/bitacora y /movil/farmacos (v2.30.3): la marca ocupa su fila y las acciones
   se parten en otra, en vez de empujarse hasta quedar fuera de la pantalla. */
.cab-mov-fila {
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
}

.cab-mov-marca {
    flex: 1 1 auto;
    min-width: 0;
}

.cab-mov-acciones {
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

@media (max-width: 520px) {
    .cab-mov-acciones {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .cab-mov-acciones > span {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.btn-tema-cabecera-movil:focus-visible,
.item-nav-tema:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}
