/* 18/11/2026: tema oscuro del Área de clientes. Se activa solo según el dispositivo (claro de día, oscuro de noche
   si el móvil o el ordenador lo cambian) o a mano con el botón de la cabecera. Mismo archivo en clientes e incidencias. */
/* 18/11/2026: cabecera con botón de tema, logos claro/oscuro */
.top-r{display:flex;align-items:center;gap:10px}
.logo-d{display:none}
.thm{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--navy);cursor:pointer;flex:none}
.thm:hover{border-color:var(--y)}
.thm .thm-l,.thm .thm-d{display:none}
[data-mode=light] .thm .thm-a,[data-mode=dark] .thm .thm-a{display:none}
[data-mode=light] .thm .thm-l,[data-mode=dark] .thm .thm-d{display:inline-flex}
.thm span{display:inline-flex}
:root[data-theme=dark]{
  color-scheme:dark;
  --bg:#0A0E13; --card:#121821; --line:#243041; --text:#D3DAE4; --muted:#8C97A8;
  --navy:#EEF2F7; --navy-2:#C9D2E0; --y-soft:rgba(255,176,0,.14);
  --shadow:0 8px 28px rgba(0,0,0,.35);
}
[data-theme=dark] body{background:var(--bg)}
[data-theme=dark] .top{background:#0F141B;border-bottom-color:var(--y)}
[data-theme=dark] .logo-l{display:none}[data-theme=dark] .logo-d{display:block}
[data-theme=dark] .lead,[data-theme=dark] .cond{color:#A9B3C1}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .radio,[data-theme=dark] .opt{background:#0E141C;border-color:#2A3647;color:var(--text)}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#677386}
[data-theme=dark] .btn{color:#132033}
[data-theme=dark] .btn.ghost{background:transparent;color:var(--navy);border-color:#4A5A70}
[data-theme=dark] .btn.ghost:hover{background:var(--navy);color:#132033;border-color:var(--navy)}
[data-theme=dark] .langs a.on,[data-theme=dark] .filters a.on{color:#132033}
[data-theme=dark] .filters a.on{background:var(--y);border-color:var(--y)}
[data-theme=dark] .eyebrow{color:#FFC94D}
[data-theme=dark] .filters a,[data-theme=dark] .kpi{background:var(--card);border-color:var(--line)}
[data-theme=dark] table.list{background:transparent}
[data-theme=dark] table.list th{background:transparent;color:#8C97A8}
[data-theme=dark] table.list tr:hover td{background:#16202C}
[data-theme=dark] table.list small,[data-theme=dark] .muted,[data-theme=dark] small{color:#8C97A8}
[data-theme=dark] .alert{background:#2A1416;border-color:#5C2328;color:#F6B4B4}
[data-theme=dark] .ok{background:#0F2A1C;border-color:#1F5A37;color:#A7E8C0}
[data-theme=dark] .tag{background:transparent;color:#FFC94D}
[data-theme=dark] .pill{background:#1C2533;color:#C9D2E0}
[data-theme=dark] .t-ok,[data-theme=dark] .p-resuelto{background:#143326;color:#5EE29A}
[data-theme=dark] .t-run,[data-theme=dark] .p-recibido{background:#3A2F12;color:#F5C451}
[data-theme=dark] .t-new,[data-theme=dark] .p-programado{background:#1B2A44;color:#93B4FF}
[data-theme=dark] .t-off,[data-theme=dark] .p-cerrado,[data-theme=dark] .p-anulado{background:#1C2533;color:#98A2B3}
[data-theme=dark] .clogo{background:#fff}
[data-theme=dark] .gallery a{background:var(--card);border-color:var(--line);color:var(--navy)}
[data-theme=dark] .fcard{background:var(--card);border-color:var(--line)}
[data-theme=dark] .fx{background:#121821;box-shadow:0 0 0 1px #243041,0 18px 40px rgba(0,0,0,.35)}
[data-theme=dark] .fx-row{background:#18202B;border-color:#26303E}
[data-theme=dark] .pk,[data-theme=dark] .tl{background:#121821;border-color:#26303E}
[data-theme=dark] .gfoot{color:#6B778A}
[data-theme=dark] .timeline li:before{box-shadow:0 0 0 3px var(--bg)}
[data-theme=dark] .st{background:#0E141C;border-color:#2A3647;color:var(--navy)}
[data-theme=dark] .st-ic{color:#FFC94D}
[data-theme=dark] .st:has(input:checked){background:#1E1A10}
[data-theme=dark] .pre{background:#121821}
[data-theme=dark] .foot{background:#0F141B}
[data-theme=dark] .done .check{color:#132033}
[data-theme=dark] .u-urgente:has(input:checked){background:#2A1416}
[data-theme=dark] .u-normal:has(input:checked){background:#1E1A10}
[data-theme=dark] .u-programable:has(input:checked){background:#0F2A1C}
