/* ========================================================================== */
/* FIBRAPRO PC — MODO CLARO PASTEL (SOLO ESCRITORIO: body.tema-claro-pc)      */
/* ========================================================================== */

html body.tema-claro-pc:not(.modo-pwa-movil) {
    --pc-bg: #f4f7fb;
    --pc-card: #ffffff;
    --pc-surface-2: #f8fafc;
    --pc-border: #e2e8f0;
    --pc-ink: #0f172a;
    --pc-muted: #64748b;

    --pc-sky-bg: #e0f2fe;     --pc-sky: #0284c7;
    --pc-mint-bg: #dcfce7;    --pc-mint: #16a34a;
    --pc-violet-bg: #ede9fe;  --pc-violet: #7c3aed;
    --pc-coral-bg: #ffe4e6;   --pc-coral: #e11d48;
    --pc-amber-bg: #fef3c7;   --pc-amber: #d97706;

    background: var(--pc-bg) !important;
    color: var(--pc-ink) !important;
}

/* --- 1. LOGIN SPLIT-SCREEN EN MODO CLARO --- */
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-login-wrapper,
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-auth-panel {
    background: #ffffff !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-brand-showcase {
    background: linear-gradient(145deg, #f0f9ff 0%, #f8fafc 55%, #eef2ff 100%) !important;
    border-right: 1px solid var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-brand-showcase h1,
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-brand-showcase span,
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-form-box h2 {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-brand-showcase p,
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-form-box p,
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-label {
    color: var(--pc-muted) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .ux-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #loading-overlay {
    background: #f4f7fb !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #loader-company {
    color: var(--pc-ink) !important;
}

/* --- 2. BARRA LATERAL (#sidebar-principal) --- */
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal.main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--pc-border) !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .logo {
    color: var(--pc-ink) !important;
    border-bottom-color: var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .logo::before {
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%) !important;
    color: #ffffff !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .logo::after {
    background: var(--pc-sky-bg) !important;
    color: var(--pc-sky) !important;
    border-color: transparent !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .nodo-selector {
    background: var(--pc-surface-2) !important;
    border-color: var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal #select-nodo {
    background: #ffffff !important;
    color: var(--pc-ink) !important;
    border-color: #cbd5e1 !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .nodo-selector button {
    background: var(--pc-sky-bg) !important;
    border: 1px dashed rgba(2, 132, 199, 0.4) !important;
    color: var(--pc-sky) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .nav-links li {
    color: #475569 !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .nav-links li:hover {
    background: #f1f5f9 !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .nav-links li.active {
    background: var(--pc-sky-bg) !important;
    border-color: rgba(2, 132, 199, 0.2) !important;
    color: var(--pc-sky) !important;
    box-shadow: none !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .nav-links li.active i {
    color: var(--pc-sky) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .user-info,
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .fp-user-footer {
    background: var(--pc-surface-2) !important;
    border-color: var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal .user-info p strong,
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal #display-user-name {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-principal #display-user-rol {
    color: var(--pc-sky) !important;
}

/* Botón alternador de tema en el pie del sidebar */
.pc-theme-toggle-btn {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.16s ease;
    flex-shrink: 0;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .pc-theme-toggle-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* --- 3. ÁREA DE CONTENIDO Y DASHBOARD ADMIN --- */
html body.tema-claro-pc:not(.modo-pwa-movil) .content-area,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-dashboard,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-olt,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-usuarios,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-reportes,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia {
    background: var(--pc-bg) !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-top-bar {
    background: transparent !important;
    border-bottom-color: var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-top-bar h1 {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-node-indicator {
    background: var(--pc-mint-bg) !important;
    color: var(--pc-mint) !important;
    border: none !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-top-actions .fp-btn {
    background: #ffffff !important;
    color: var(--pc-ink) !important;
    border: 1px solid var(--pc-border) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-top-actions .fp-btn-white {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

/* 4 KPIs Dashboard en tonos pastel */
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-band {
    background: transparent !important;
    border: none !important;
    gap: 14px !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell {
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(1) { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(2) { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(3) { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(4) { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important; }

html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-title { color: #334155 !important; font-weight: 700 !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(1) .fp-kpi-number { color: var(--pc-sky) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(2) .fp-kpi-number { color: var(--pc-mint) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(3) .fp-kpi-number { color: var(--pc-violet) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-cell:nth-child(4) .fp-kpi-number { color: var(--pc-coral) !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-meta { border-top-color: rgba(15, 23, 42, 0.08) !important; color: #475569 !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-kpi-meta .fp-mono { color: var(--pc-ink) !important; }

/* Superficies blancas, Matriz NAP y Actividad */
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-surface {
    background: #ffffff !important;
    border: 1px solid var(--pc-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-surface-title,
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-inline-stat-val,
html body.tema-claro-pc:not(.modo-pwa-movil) #txt-ocupacion-porcentaje,
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-leg-num {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-surface-sub,
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-inline-stat-label {
    color: var(--pc-muted) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .visual-progress-bar { background: #e2e8f0 !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-leg-item {
    background: #f8fafc !important;
    border: 1px solid var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-filter-pills {
    background: #f1f5f9 !important;
    border: 1px solid var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-filter-btn { color: #475569 !important; }
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-filter-btn.active {
    background: var(--pc-sky-bg) !important;
    color: var(--pc-sky) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #dash-lista-naps-estado .fp-nap-tile {
    opacity: 1 !important;
    background: #f8fafc !important;
    border: 1px solid var(--pc-border) !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #dash-lista-naps-estado .fp-nap-tile.iluminada {
    background: #ffffff !important;
    border-left: 4px solid var(--pc-mint) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #dash-lista-naps-estado .fp-nap-name,
html body.tema-claro-pc:not(.modo-pwa-movil) #dash-lista-naps-estado strong {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-actividad-reciente > * {
    background: #f8fafc !important;
    border: 1px solid var(--pc-border) !important;
    color: #334155 !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-actividad-reciente strong,
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-actividad-reciente b {
    color: var(--pc-ink) !important;
}

/* --- 4. MAPA CLIENTES, FACTIBILIDAD E INGENIERÍA --- */
html body.tema-claro-pc:not(.modo-pwa-movil) #input-busqueda,
html body.tema-claro-pc:not(.modo-pwa-movil) #resultados-busqueda,
html body.tema-claro-pc:not(.modo-pwa-movil) #btn-gps-pro,
html body.tema-claro-pc:not(.modo-pwa-movil) #btn-auditoria-red,
html body.tema-claro-pc:not(.modo-pwa-movil) #panel-busqueda-ventas,
html body.tema-claro-pc:not(.modo-pwa-movil) #dash-flotante-ing,
html body.tema-claro-pc:not(.modo-pwa-movil) .toolbar-ingenieria-flotante {
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--pc-ink) !important;
    border-color: var(--pc-border) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .toolbar-ingenieria-flotante button {
    background: #f8fafc !important;
    color: var(--pc-ink) !important;
    border: 1px solid var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-info {
    background: #eff3f9 !important;
    color: var(--pc-ink) !important;
    border-left: 1px solid var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-info h2,
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-info h3,
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-info b,
html body.tema-claro-pc:not(.modo-pwa-movil) #sidebar-info strong {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-clientes-nap > div {
    background: #ffffff !important;
    border: 1px solid #dbe4f0 !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .sidebar-ingenieria-pon,
html body.tema-claro-pc:not(.modo-pwa-movil) .sidebar-ingenieria-pon .fp-cad-header,
html body.tema-claro-pc:not(.modo-pwa-movil) .sidebar-ingenieria-pon .cuerpo-ingenieria,
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-pons .pon-card,
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-pons .pon-header,
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-pons .sub-card,
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-pons .sub-header {
    background: #ffffff !important;
    border-color: var(--pc-border) !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) .fp-cad-title,
html body.tema-claro-pc:not(.modo-pwa-movil) #lista-pons .text-box span {
    color: var(--pc-ink) !important;
}

/* --- 5. MÓDULOS DINÁMICOS (OLT, REPORTES, USUARIOS, LICENCIA, TÉCNICO, VENTAS) --- */
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia .lic-surface,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia .lic-kpi-cell,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia .lic-pay-card {
    background: #ffffff !important;
    border-color: var(--pc-border) !important;
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia .lic-top-left h1,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia .lic-surface-title,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia .lic-kpi-val,
html body.tema-claro-pc:not(.modo-pwa-movil) #v-licencia strong {
    color: var(--pc-ink) !important;
}

/* Conversión limpia de tarjetas oscuras inline en OLT, Reportes, Usuarios, Técnico y Ventas */
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="#0f172a"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="#020617"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="#0b1120"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="#111827"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="#1e293b"] {
    background: #ffffff !important;
    border-color: var(--pc-border) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) :is(h1, h2, h3, b, strong),
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="color: #fff"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="color:#fff"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="color: white"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="color: #f8fafc"],
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) [style*="color:#f8fafc"] {
    color: var(--pc-ink) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) thead tr,
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: var(--pc-border) !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) td {
    color: #1e293b !important;
    border-color: #f1f5f9 !important;
}
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) input,
html body.tema-claro-pc:not(.modo-pwa-movil) :is(#v-olt, #v-reportes, #v-usuarios, #v-dashboard-tecnico, #v-dashboard-ventas) select {
    background: #f8fafc !important;
    color: var(--pc-ink) !important;
    border: 1px solid #cbd5e1 !important;
}