/* ═══════════ Cara CLÁSICA de DermoPM · colores de Patricia (15-11-2026) · SOLO CSS ═══════════
   La misma paleta que la 2.0: azul de marca #174A64 (menú), azul muy oscuro #0B2A3C (cabeceras de tabla y barras de título),
   azul clarito vivo #38BDF8 (botones de acción), contadores blancos con número negro, frambuesa #E11D48 (atención).
   Sin naranja ni violeta. No toca los colores de estado (etiquetas de pacientes, avisos, semáforos): esos llevan los suyos.
   Solo se aplica en tema claro y en la empresa «dermo». Se carga desde index.html (clásica) tras styles.css. */

html[data-ws="dermo"]:not([data-theme="dark"]) {
  --accent: #174A64 !important; --accent-soft: #E1EDF3 !important; --accent-ink: #0B2A3C !important;
  --bg: #F4F8FA !important; --bg-2: #E9F1F5 !important;
  --line: #CBD9E1 !important; --line-2: #B3C5D0 !important;
  --ring: 0 0 0 3px rgba(56,189,248,.35);
}

/* ── menú lateral: azul de marca, letra blanca; activo en blanco con letra azul ── */
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar { background: #174A64 !important; border-right: 1px solid #0B2A3C; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .nav-group { color: #A9CBDC; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .nav-item { color: #fff; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .nav-item:hover { background: rgba(255,255,255,.13); color: #fff; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .nav-item.active { background: #fff; color: #174A64; border-color: #fff; box-shadow: none; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .nav-item.active .ic { color: #174A64; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .nav-item.active::before { display: none; }   /* nada de raya de color en un solo lado */
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .side-ft { border-top-color: rgba(255,255,255,.28); }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .user-name { color: #fff; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .user-role { color: #B9D3E0; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .avatar { background: #fff; color: #174A64; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .ws-switch { border-color: #fff; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .side-ft .icon-btn,
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .side-ft svg { color: #fff; }
html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); background-clip: content-box; }

html[data-ws="dermo"]:not([data-theme="dark"]) .sidebar .ws-logo { background: #174A64 !important; }

/* ── contadores y circulitos con número: fondo blanco, número negro, borde fino ── */
html[data-ws="dermo"]:not([data-theme="dark"]) .count,
html[data-ws="dermo"]:not([data-theme="dark"]) .nav-item .count,
html[data-ws="dermo"]:not([data-theme="dark"]) .nav-item.active .count,
html[data-ws="dermo"]:not([data-theme="dark"]) .col-hd .count {
  background: #fff !important; color: #000 !important; border: 1px solid #7F9AA9 !important; border-radius: 4px; font-weight: 700;
}
html[data-ws="dermo"]:not([data-theme="dark"]) .btn > b[style*="--danger"] { background: #fff !important; color: #000 !important; border: 1px solid #7F9AA9; border-radius: 4px !important; }   /* «✓ Tareas 5» */
html[data-ws="dermo"]:not([data-theme="dark"]) .icon-btn .dot { background: #E11D48; }   /* punto de «hay avisos» */

/* ── cabeceras de tablas y barras de título de tarjetas: azul muy oscuro, letra clara ── */
html[data-ws="dermo"]:not([data-theme="dark"]) .table thead th,
html[data-ws="dermo"]:not([data-theme="dark"]) .main table thead th {
  background: #0B2A3C !important; color: #F1F7FA !important; border-bottom: 1px solid #0B2A3C !important;
}
html[data-ws="dermo"]:not([data-theme="dark"]) .main table thead th * { color: inherit; }
html[data-ws="dermo"]:not([data-theme="dark"]) .card > .card-hd {
  background: #0B2A3C; color: #F1F7FA; border-bottom: 1px solid #0B2A3C; border-radius: 13px 13px 0 0;
}
html[data-ws="dermo"]:not([data-theme="dark"]) .card > .card-hd h3,
html[data-ws="dermo"]:not([data-theme="dark"]) .card > .card-hd h2 { color: #F1F7FA; }
html[data-ws="dermo"]:not([data-theme="dark"]) .card > .card-hd .sub { color: #B9D3E0; }
html[data-ws="dermo"]:not([data-theme="dark"]) .card > .card-hd .btn:not(.primary):not(.accent) { color: #174A64; }

/* ── botones: acción en azul clarito vivo; secundarios en blanco con borde azul ── */
html[data-ws="dermo"]:not([data-theme="dark"]) .btn.primary,
html[data-ws="dermo"]:not([data-theme="dark"]) .btn.accent {
  background: #38BDF8 !important; background-image: none !important; border-color: #0EA5E9 !important; color: #0B2A3C !important; box-shadow: none; font-weight: 600;
}
html[data-ws="dermo"]:not([data-theme="dark"]) .btn.primary:hover,
html[data-ws="dermo"]:not([data-theme="dark"]) .btn.accent:hover { background: #7DD3FC !important; filter: none; }
html[data-ws="dermo"]:not([data-theme="dark"]) .btn:not(.primary):not(.accent):not(.ghost):not(.danger) { background: #fff; border-color: #174A64; color: #174A64; }
html[data-ws="dermo"]:not([data-theme="dark"]) .btn:not(.primary):not(.accent):not(.ghost):not(.danger):hover { background: #E1EDF3; border-color: #0B2A3C; }
html[data-ws="dermo"]:not([data-theme="dark"]) .chip.active { background: #174A64; border-color: #174A64; color: #fff; }

/* ── el botón «CIRAM 2.0 →» ── */
#dm-puente { font: 700 13px/1 Inter, system-ui, sans-serif; padding: 9px 14px; border-radius: 8px; border: 1px solid #0EA5E9; background: #38BDF8; color: #0B2A3C; cursor: pointer; white-space: nowrap; }
#dm-puente:hover { background: #7DD3FC; }
#dm-puente:not(.en-barra) { position: fixed; right: 14px; top: 10px; z-index: 99999; box-shadow: 0 2px 8px rgba(11,42,60,.25); }
#dm-puente.en-barra { margin-left: 6px; }

/* ── dentro de la 2.0 (marco): sin menú ni cabecera de la clásica ── */
html.dm-embed .sidebar, html.dm-embed .topbar, html.dm-embed .m-tabbar, html.dm-embed #dm-puente { display: none !important; }
html.dm-embed .app { grid-template-columns: 1fr !important; }
html.dm-embed .page { padding-bottom: 28px !important; }

/* ── (15-11 noche) sin naranja ni violeta TAMPOCO en los colores que traían los módulos ──
   «aviso» (antes ámbar) → frambuesa oscuro; violeta → azul de Patricia. Los módulos ponen colores en línea:
   el navegador los guarda como rgb(…), así que se cambian por ese texto. */
html[data-ws="dermo"]:not([data-theme="dark"]) { --warn: #BE123C !important; }
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style^="color: rgb(217, 119, 6)"], [style*="; color: rgb(217, 119, 6)"],
  [style^="color: rgb(180, 83, 9)"], [style*="; color: rgb(180, 83, 9)"], [style^="color: rgb(245, 158, 11)"], [style*="; color: rgb(245, 158, 11)"],
  [style^="color: rgb(234, 88, 12)"], [style*="; color: rgb(234, 88, 12)"], [style^="color: rgb(249, 115, 22)"], [style*="; color: rgb(249, 115, 22)"]) { color: #BE123C !important; }
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style^="color: rgb(124, 58, 237)"], [style*="; color: rgb(124, 58, 237)"],
  [style^="color: rgb(109, 40, 217)"], [style*="; color: rgb(109, 40, 217)"], [style^="color: rgb(139, 92, 246)"], [style*="; color: rgb(139, 92, 246)"],
  [style^="color: rgb(147, 51, 234)"], [style*="; color: rgb(147, 51, 234)"]) { color: #174A64 !important; }
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style*="background: rgb(217, 119, 6)"], [style*="background-color: rgb(217, 119, 6)"],
  [style*="background: rgb(245, 158, 11)"], [style*="background-color: rgb(245, 158, 11)"], [style*="background: rgb(234, 88, 12)"], [style*="background-color: rgb(234, 88, 12)"]) { background: #BE123C !important; color: #fff !important; }
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style*="background: rgb(124, 58, 237)"], [style*="background-color: rgb(124, 58, 237)"],
  [style*="background: rgb(109, 40, 217)"], [style*="background-color: rgb(109, 40, 217)"]) { background: #174A64 !important; color: #fff !important; }
/* fondos suaves ámbar / violeta → rosa muy claro / azul muy claro */
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style*="background: rgb(254, 243, 199)"], [style*="background-color: rgb(254, 243, 199)"],
  [style*="background: rgb(255, 247, 237)"], [style*="background-color: rgb(255, 247, 237)"], [style*="background: rgb(255, 237, 213)"], [style*="background-color: rgb(255, 237, 213)"]) { background: #FFE4E6 !important; }
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style*="background: rgb(237, 233, 254)"], [style*="background-color: rgb(237, 233, 254)"],
  [style*="background: rgb(245, 243, 255)"], [style*="background-color: rgb(245, 243, 255)"]) { background: #E0F2FE !important; }
/* tarjetas de cifras (pac-kpi, cur-kpi…) y etiquetas que llevan su color en la variable --c */
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style*="--c: #d97706" i], [style*="--c: #b45309" i], [style*="--c: #f59e0b" i], [style*="--c: #ea580c" i], [style*="--c: #f97316" i]) { --c: #BE123C !important; }
html[data-ws="dermo"]:not([data-theme="dark"]) :is([style*="--c: #7c3aed" i], [style*="--c: #6d28d9" i], [style*="--c: #8b5cf6" i], [style*="--c: #9333ea" i], [style*="--c: #4f46e5" i], [style*="--c: #6366f1" i]) { --c: #174A64 !important; }
