/* ═══════════════════════════════════════════════════════════════
   AgendLab Panel — Tema CLARO
   Override de site.css. Cargado al final en _Layout cuando !esLanding.
   Mismas variables del :root re-mapeadas a valores claros + reglas
   específicas para selectores oscuros que site.css trae con !important.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --app-bg: #f4f7ff;
    --app-bg-2: #ffffff;
    --app-surface: #ffffff;
    --app-surface-2: #fafbfd;
    --app-border: rgba(15, 23, 42, 0.08);
    --app-border-strong: rgba(15, 23, 42, 0.14);
    --app-text: #0f172a;
    --app-text-2: #51607a;
    --app-text-3: #94a0b8;
    --app-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

body.app-body {
    background: #f4f7ff !important;
    color: #0f172a;
}

/* Quitar los "orbs" decorativos oscuros */
.app-orb { display: none !important; }

/* Layout/main: arrancar más cerca del nav, sin franja vacía grande */
.app-main { background: transparent; padding-top: 0 !important; }
.app-body .app-main > .container { padding-top: 14px; }
.app-body .app-main { margin-top: 0 !important; }

.app-body { color: #0f172a; }
.app-body a { color: inherit; }

/* Texto general claro → oscuro */
.app-body,
.app-body p,
.app-body span,
.app-body div,
.app-body li,
.app-body td,
.app-body th,
.app-body .form-text,
.app-body .text-muted,
.app-body .small.text-muted {
    color: inherit;
}

.app-body h1, .app-body h2, .app-body h3,
.app-body h4, .app-body h5, .app-body h6,
.app-body label, .app-body strong, .app-body .fw-bold, .app-body .fw-semibold {
    color: #0f172a !important;
}

/* Excepción: el nav y footer navy mantienen su paleta clara */
.app-body .lnav .lnav-user,
.app-body span.lnav-user { color: #ffffff !important; }

.app-body .lfooter,
.app-body .lfooter * { color: #94a3b8; }
.app-body .lfooter h1, .app-body .lfooter h2, .app-body .lfooter h3,
.app-body .lfooter h4, .app-body .lfooter h5, .app-body .lfooter h6,
.app-body .lfooter strong,
.app-body .lfooter .lfooter-col-titulo,
.app-body .lfooter .agend { color: #e8eeff !important; }
.app-body .lfooter .lab { color: #4f7fff !important; }
.app-body .lfooter .lfooter-col-titulo { color: #64748b !important; }
.app-body .lfooter a { color: #94a3b8 !important; }
.app-body .lfooter a:hover { color: #4f7fff !important; }
.app-body .lfooter .lfooter-bottom a { color: #64748b !important; }
.app-body .lfooter .lfooter-bottom a:hover { color: #f0f4ff !important; }

.app-body .text-secondary,
.app-body .text-muted { color: #51607a !important; }

/* Tarjetas y paneles: blanco con sombra suave */
.app-body .card,
.app-body .panel-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
    border-radius: 18px !important;
}

.app-body .card .card-header,
.app-body .panel-card .card-header {
    background: #fafbfd !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
}

.app-body .card-body { color: #0f172a !important; }

/* Inputs: fondo blanco, borde claro */
.app-body .form-control,
.app-body .form-select,
.app-body textarea.form-control,
.app-body input[type="text"],
.app-body input[type="email"],
.app-body input[type="password"],
.app-body input[type="number"],
.app-body input[type="tel"],
.app-body input[type="search"],
.app-body input[type="url"],
.app-body input[type="date"],
.app-body input[type="time"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 10px !important;
}

.app-body .form-control:focus,
.app-body .form-select:focus,
.app-body input:focus,
.app-body textarea:focus {
    background: #ffffff !important;
    border-color: #4f7fff !important;
    box-shadow: 0 0 0 3px rgba(79, 127, 255, 0.15) !important;
    color: #0f172a !important;
}

.app-body .form-control::placeholder { color: #94a0b8 !important; }
.app-body .form-control:disabled,
.app-body .form-control[readonly] { background: #f1f5f9 !important; color: #51607a !important; }

.app-body .form-label,
.app-body label { color: #0f172a !important; font-weight: 600; }

/* Botones primary: azul AgendLab sólido */
.app-body .btn-primary,
.app-body .btn.btn-primary {
    background: #4f7fff !important;
    border-color: #4f7fff !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79, 127, 255, 0.25) !important;
}

.app-body .btn-primary:hover,
.app-body .btn.btn-primary:hover {
    background: #3a63e8 !important;
    border-color: #3a63e8 !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(79, 127, 255, 0.35) !important;
}

/* Botones ghost: outline en oscuro */
.app-body .btn-ghost,
.app-body .btn.btn-ghost {
    background: transparent !important;
    border: 1.5px solid #d4dbe6 !important;
    color: #0f172a !important;
}

.app-body .btn-ghost:hover {
    background: #f1f5f9 !important;
    border-color: #94a0b8 !important;
    color: #0f172a !important;
}

/* Botones secundarios/outline genéricos */
.app-body .btn-outline-primary {
    color: #4f7fff !important;
    border-color: #4f7fff !important;
    background: transparent !important;
}

.app-body .btn-outline-primary:hover {
    background: #4f7fff !important;
    color: #fff !important;
}

.app-body .btn-secondary,
.app-body .btn-light {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.app-body .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Outline-light original: blanco sobre oscuro → en panel claro lo invertimos */
.app-body .btn-outline-light {
    background: transparent !important;
    border: 1.5px solid #d4dbe6 !important;
    color: #0f172a !important;
}

.app-body .btn-outline-light:hover {
    background: #f1f5f9 !important;
    border-color: #94a0b8 !important;
    color: #0f172a !important;
}

/* Dark/outline-dark: invertir para que se vean bien sobre fondo claro */
.app-body .btn-dark {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #fff !important;
}

.app-body .btn-dark:hover {
    background: #1e293b !important;
    color: #fff !important;
}

.app-body .btn-outline-dark {
    background: transparent !important;
    border: 1.5px solid #0f172a !important;
    color: #0f172a !important;
}

.app-body .btn-outline-dark:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* Tablas */
.app-body table,
.app-body .table {
    color: #0f172a !important;
    background: transparent;
    --bs-table-bg: transparent;
    --bs-table-color: #0f172a;
    --bs-table-striped-color: #0f172a;
    --bs-table-striped-bg: rgba(79, 127, 255, 0.04);
    --bs-table-hover-bg: rgba(79, 127, 255, 0.06);
}

.app-body .table thead,
.app-body .table thead th {
    background: #fafbfd !important;
    color: #51607a !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.app-body .table tbody tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.app-body .table tbody td { color: #0f172a !important; border-color: rgba(15, 23, 42, 0.05) !important; }

/* List groups */
.app-body .list-group-item {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
}

/* Dropdowns */
.app-body .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

.app-body .dropdown-item { color: #0f172a !important; }
.app-body .dropdown-item:hover, .app-body .dropdown-item:focus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Modales */
.app-body .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

.app-body .modal-header, .app-body .modal-footer {
    border-color: rgba(15, 23, 42, 0.14) !important;
}

/* Alerts: claros con tinte de color */
.app-body .alert-success { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #065f46 !important; }
.app-body .alert-danger  { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.app-body .alert-warning { background: #fffbeb !important; border-color: #fde68a !important; color: #92400e !important; }
.app-body .alert-info    { background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e40af !important; }

/* Badges */
.app-body .badge.bg-primary { background: #4f7fff !important; color: #fff !important; }
.app-body .badge.bg-success { background: #16a34a !important; color: #fff !important; }
.app-body .badge.bg-danger { background: #ef4444 !important; color: #fff !important; }
.app-body .badge.bg-warning { background: #f59e0b !important; color: #fff !important; }
.app-body .badge.bg-secondary { background: #e2e8f0 !important; color: #475569 !important; }

/* Badges con text-bg-* (variantes con texto blanco que estaban suaves) */
.app-body .badge.text-bg-success { background: #16a34a !important; color: #fff !important; }
.app-body .badge.text-bg-info    { background: #0ea5e9 !important; color: #fff !important; }
.app-body .badge.text-bg-warning { background: #f59e0b !important; color: #fff !important; }
.app-body .badge.text-bg-danger  { background: #ef4444 !important; color: #fff !important; }
.app-body .badge.text-bg-primary { background: #4f7fff !important; color: #fff !important; }
.app-body .badge.text-bg-secondary { background: #e2e8f0 !important; color: #475569 !important; }
.app-body .badge.text-bg-light   { background: #f1f5f9 !important; color: #0f172a !important; }
.app-body .badge.text-bg-dark    { background: #0f172a !important; color: #fff !important; }

/* Links */
.app-body a:not(.btn):not(.nav-link):not(.dropdown-item):not(.lnav-logo) {
    color: #4f7fff;
}

.app-body a:not(.btn):not(.nav-link):not(.dropdown-item):not(.lnav-logo):hover {
    color: #3a63e8;
}

/* Pagination */
.app-body .pagination .page-link {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #4f7fff !important;
}

.app-body .pagination .page-item.active .page-link {
    background: #4f7fff !important;
    border-color: #4f7fff !important;
    color: #fff !important;
}

/* Borders genéricos */
.app-body .border, .app-body .border-top, .app-body .border-bottom,
.app-body .border-start, .app-body .border-end {
    border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Misc bg utilities */
.app-body .bg-white, .app-body .bg-light { background: #ffffff !important; color: #0f172a !important; }
.app-body .bg-dark { background: #0d1120 !important; color: #f0f4ff !important; }

/* Tabs */
.app-body .nav-tabs {
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.app-body .nav-tabs .nav-link {
    color: #51607a !important;
    border: 1px solid transparent !important;
    border-radius: 10px 10px 0 0 !important;
}

.app-body .nav-tabs .nav-link.active {
    color: #4f7fff !important;
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) rgba(15, 23, 42, 0.1) #ffffff !important;
}

/* Texto general adicional */
.app-body, .app-body .container { color: #0f172a; }

/* ═══════════════════════════════════════════════════════════════
   /Citas — Dashboard (agenda.css trae todo oscuro hardcodeado)
   ═══════════════════════════════════════════════════════════════ */

.app-body .citas-dashboard,
.app-body .citas-dashboard * { color: #0f172a; }

/* Quitar las manchas decorativas que dejaban "shadow blobs" del tema oscuro */
.app-body .citas-dashboard .dash-shell::before,
.app-body .citas-dashboard .dash-shell::after { display: none !important; }

.app-body .citas-dashboard .dash-window {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

/* Esconder el "browser fake" — los dots de colores + URL agendlab.com/panel
   eran decorativos del tema oscuro original, no aportan nada en el panel real. */
.app-body .citas-dashboard .dash-window-top { display: none !important; }

.app-body .citas-dashboard .dash-greeting { color: #0f172a !important; }
.app-body .citas-dashboard .dash-date { color: #51607a !important; }

/* Pills de filtro (Hoy/Mañana/Próximas/Comprobantes/Todas) */
.app-body .citas-dashboard .dash-filter-pill,
.app-body .citas-dashboard .agenda-filter,
.app-body .citas-dashboard a[class*="filter"] {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-body .citas-dashboard .dash-filter-pill.active,
.app-body .citas-dashboard .agenda-filter.active,
.app-body .citas-dashboard a[class*="filter"].active {
    background: #4f7fff !important;
    color: #fff !important;
    border-color: #4f7fff !important;
}

/* Stat cards (Citas en vista / Ausencias / Con comprobante) */
.app-body .citas-dashboard .dash-stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.app-body .citas-dashboard .dash-stat-card .dash-stat-number,
.app-body .citas-dashboard .dash-stat-card strong { color: #0f172a !important; }
.app-body .citas-dashboard .dash-stat-card .dash-stat-label { color: #51607a !important; }

/* Side cards (Carga por profesional, etc.) */
.app-body .citas-dashboard .dash-side-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
}

/* Cajas mini */
.app-body .citas-dashboard .mini-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

/* Estado vacío */
.app-body .citas-dashboard .agenda-empty {
    background: #f8fafc !important;
    border: 1px dashed #c5cee0 !important;
    color: #51607a !important;
}

.app-body .citas-dashboard .agenda-empty strong,
.app-body .citas-dashboard .agenda-empty h3,
.app-body .citas-dashboard .agenda-empty h4 { color: #0f172a !important; }

/* Badge "Hoy: 0 citas" */
.app-body .citas-dashboard .dash-tag,
.app-body .citas-dashboard .dash-badge {
    background: #eaf0ff !important;
    color: #2d4fc4 !important;
    border: 1px solid #c5d5fa !important;
}

/* Hint texts en verde / naranja (estados) */
.app-body .citas-dashboard .text-success,
.app-body .citas-dashboard [class*="success"] { color: #16a34a !important; }
.app-body .citas-dashboard .text-warning,
.app-body .citas-dashboard [class*="warning"] { color: #d97706 !important; }
.app-body .citas-dashboard .text-danger { color: #dc2626 !important; }

/* ═══════════════════════════════════════════════════════════════
   OVERRIDES ESPECÍFICOS DE CONFIGURACIÓN
   _ConfigStyles.cshtml es <style> inline (carga después que panel-light.css)
   y usa rgba(15,23,42,...) con !important — necesitamos doble selector +
   !important para ganarle.
   ═══════════════════════════════════════════════════════════════ */

.app-body .ops-page,
.app-body .ops-page * { color: #0f172a; }

/* Tarjetas (hero, cards, pills, metrics, item cards, empty states, logo panel) */
.app-body .ops-hero,
.app-body .ops-hero-compact,
.app-body .ops-page .card,
.app-body .ops-business-pill,
.app-body .ops-metric,
.app-body .ops-item-card,
.app-body .ops-empty-state,
.app-body .ops-logo-panel,
.app-body .ops-tabs,
.app-body .setup-checklist,
.app-body .setup-step,
.app-body .ops-summary,
.app-body .ops-section,
.app-body .ops-panel,
.app-body .ops-banner,
.app-body .ops-info-banner {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: none !important;
}

/* Textos secundarios que estaban en gris claro (94a3b8) → gris oscuro */
.app-body .ops-business-label,
.app-body .ops-metric span,
.app-body .ops-summary-list span,
.app-body .ops-meta,
.app-body .ops-tabs-label,
.app-body .ops-page small,
.app-body .ops-copy,
.app-body .ops-hero p { color: #51607a !important; }

/* Números/totales que estaban en blanco → oscuros */
.app-body .ops-metric strong,
.app-body .ops-hero h1,
.app-body .ops-hero h2,
.app-body .ops-page h1,
.app-body .ops-page h2,
.app-body .ops-page h3,
.app-body .ops-page strong { color: #0f172a !important; }

/* Kicker (etiqueta arriba) — fondo azul clarito + texto azul oscuro */
.app-body .ops-kicker {
    background: #eaf0ff !important;
    color: #2d4fc4 !important;
    border: 1px solid #c5d5fa !important;
}

/* Pestañas de Configuración (Negocio, Profesionales, Servicios, Horarios, etc.) */
.app-body .ops-tab,
.app-body .ops-tab-link,
.app-body .ops-tabs button {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-body .ops-tab.is-active,
.app-body .ops-tab-link.is-active,
.app-body .ops-tabs button.is-active,
.app-body .ops-tab[aria-selected="true"] {
    background: #eaf0ff !important;
    border-color: #4f7fff !important;
    color: #2d4fc4 !important;
}

/* Setup checklist (los 4 pasos arriba) */
.app-body .setup-checklist,
.app-body .setup-step {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
}

.app-body .setup-step.is-done {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.app-body .setup-step.is-active {
    background: #eaf0ff !important;
    border-color: #4f7fff !important;
}

.app-body .setup-step .step-title,
.app-body .setup-step h3,
.app-body .setup-step h4 { color: #0f172a !important; }

.app-body .setup-step .step-meta,
.app-body .setup-step p { color: #51607a !important; }

/* Strikethrough en pasos completados — más legible */
.app-body .setup-step.is-done,
.app-body .setup-step.is-done * { color: #15803d !important; }
.app-body .setup-step.is-done .step-title { text-decoration-color: #16a34a !important; }

/* Ops banner azul (tip / info) */
.app-body .ops-tip-card,
.app-body .ops-info-card {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
}

.app-body .ops-tip-card strong,
.app-body .ops-info-card strong { color: #1e3a8a !important; }

/* Inputs dentro de ops-page */
.app-body .ops-page .form-control,
.app-body .ops-page .form-select,
.app-body .ops-page input,
.app-body .ops-page textarea,
.app-body .ops-page select {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

/* CTAs y botones del setup checklist */
.app-body .setup-cta-primary,
.app-body .setup-cta,
.app-body .ops-btn-primary,
.app-body a.setup-cta-primary {
    background: #4f7fff !important;
    border: 1px solid #4f7fff !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(79, 127, 255, 0.3) !important;
    transition: all .15s ease !important;
}

.app-body .setup-cta-primary:hover,
.app-body a.setup-cta-primary:hover {
    background: #3a63e8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 127, 255, 0.4) !important;
}

.app-body .setup-cta-secondary,
.app-body .ops-btn-ghost {
    background: transparent !important;
    border: 1.5px solid #d4dbe6 !important;
    color: #0f172a !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.app-body .setup-cta-secondary:hover,
.app-body .ops-btn-ghost:hover {
    background: #f1f5f9 !important;
    border-color: #94a0b8 !important;
    color: #0f172a !important;
}

/* Subnav (sub-tabs internos: ej. Horarios semanales / Días bloqueados) */
.app-body .ops-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    backdrop-filter: none !important;
}

.app-body .ops-subnav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #51607a !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    border: 1px solid transparent !important;
    transition: background .15s ease, color .15s ease;
}

.app-body .ops-subnav-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.app-body .ops-subnav-link.is-active,
.app-body .ops-subnav-link[aria-current="true"] {
    background: #eaf0ff !important;
    color: #2d4fc4 !important;
    border-color: #c5d5fa !important;
}

.app-body .ops-subnav-count {
    background: #4f7fff !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 1px 8px !important;
    border-radius: 999px !important;
    min-width: 22px !important;
    text-align: center !important;
}

.app-body .ops-subnav-link.is-active .ops-subnav-count,
.app-body .ops-subnav-link:hover .ops-subnav-count {
    background: #4f7fff !important;
    color: #fff !important;
}

/* Pills/chips internas */
.app-body .ops-chip,
.app-body .ops-pill {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #51607a !important;
}

.app-body .ops-chip.is-active,
.app-body .ops-pill.is-active {
    background: #4f7fff !important;
    color: #fff !important;
    border-color: #4f7fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   NUEVA CONFIGURACIÓN — banner accionable + sidebar + main
   ═══════════════════════════════════════════════════════════════ */

/* Banner azul accionable (cuando falta algo) */
.app-body .cfg-banner-falta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 14px 18px;
}

.app-body .cfg-banner-falta .cfg-banner-info { color: #1e3a8a; font-size: 14px; line-height: 1.5; }
.app-body .cfg-banner-falta strong { color: #1e40af !important; }
.app-body .cfg-banner-falta span { color: #1e40af; margin-left: 4px; }

/* Banner verde (cuando ya está listo) */
.app-body .cfg-banner-listo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 14px 18px;
}

.app-body .cfg-banner-listo .cfg-banner-info { color: #065f46; font-size: 14px; line-height: 1.5; }
.app-body .cfg-banner-listo strong { color: #065f46 !important; }
.app-body .cfg-banner-listo span { color: #047857; margin-left: 4px; }

.app-body .cfg-banner-cta {
    background: #4f7fff;
    color: #fff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 127, 255, 0.3);
    transition: all .15s ease;
    flex-shrink: 0;
}

.app-body .cfg-banner-cta:hover {
    background: #3a63e8 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.app-body .cfg-banner-listo .cfg-banner-cta { background: #16a34a; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3); }
.app-body .cfg-banner-listo .cfg-banner-cta:hover { background: #15803d !important; }

/* Layout sidebar + main */
.app-body .cfg-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: start;
}

.app-body .cfg-sidebar {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 12px 10px;
    position: sticky;
    top: 84px;
}

.app-body .cfg-sidebar-grupo + .cfg-sidebar-grupo { margin-top: 10px; padding-top: 12px; border-top: 1px solid #f1f5f9; }

.app-body .cfg-sidebar-titulo {
    font-size: 10px;
    font-weight: 700;
    color: #94a0b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px 8px;
}

.app-body .cfg-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #0f172a !important;
    font-weight: 500;
    font-size: 13.5px;
    text-decoration: none;
    margin: 2px 0;
    transition: background .15s ease, color .15s ease;
}

.app-body .cfg-side-link:hover { background: #f1f5f9; color: #0f172a !important; }

.app-body .cfg-side-link.active {
    background: #eaf0ff;
    color: #2d4fc4 !important;
    font-weight: 600;
}

.app-body .cfg-side-link.active .cfg-side-icon { filter: none; }

.app-body .cfg-side-icon {
    font-size: 16px;
    font-style: normal;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.app-body .cfg-side-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.app-body .cfg-side-badge.ok {
    background: #ecfdf5;
    color: #15803d !important;
}

.app-body .cfg-side-badge.falta {
    background: #fef2f2;
    color: #b91c1c !important;
}

.app-body .cfg-main { min-width: 0; }

@media (max-width: 900px) {
    .app-body .cfg-layout { grid-template-columns: 1fr; }
    .app-body .cfg-sidebar { position: static; top: auto; }
    .app-body .cfg-sidebar-grupo { display: flex; flex-wrap: wrap; gap: 4px; }
    .app-body .cfg-sidebar-titulo { width: 100%; }
    .app-body .cfg-side-link { flex: 1 1 auto; min-width: 130px; }
}

@media (max-width: 600px) {
    .app-body .cfg-banner-falta,
    .app-body .cfg-banner-listo { flex-direction: column; align-items: stretch; }
    .app-body .cfg-banner-cta { text-align: center; }
}

/* Stats list de la tab Negocio (Plan actual, Servicios activos, etc.)
   El selector real es .ops-summary-list > div en _ConfigStyles.cshtml. */
.app-body .ops-summary-list > div,
.app-body .ops-summary-list .ops-summary-item,
.app-body .ops-note {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

.app-body .ops-summary-list > div * { color: #0f172a !important; }
.app-body .ops-summary-list > div small,
.app-body .ops-summary-list > div span:first-child { color: #51607a !important; }

/* Zona de subir logo del negocio */
.app-body .logo-upload-zone,
.app-body .logo-recommendations,
.app-body .logo-preview {
    background: #f8fafc !important;
    border: 1.5px dashed #c5cee0 !important;
    color: #0f172a !important;
}

.app-body .logo-upload-zone:hover {
    background: #eaf0ff !important;
    border-color: #4f7fff !important;
}

.app-body .logo-recommendations { border-style: solid !important; }
.app-body .logo-recommendations strong { color: #0f172a !important; }
.app-body .logo-recommendations li { color: #51607a !important; }

/* Item de empleado asignado (checkbox + nombre + especialidad) */
.app-body .empleado-asignado-item,
.app-body label.empleado-asignado,
.app-body .servicio-empleado-row,
.app-body .empleado-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

.app-body .empleado-asignado-item:hover { background: #eaf0ff !important; }

/* Cualquier label dentro de la card de servicios con checkbox que tenga fondo oscuro */
.app-body .ops-page label[style*="rgba(15"],
.app-body .ops-page label[class*="empleado"] {
    background: #f8fafc !important;
    color: #0f172a !important;
}
