/* ═══════════════════════════════════════════════════════
   INMOBIX CRM — Custom Styles v3
   ═══════════════════════════════════════════════════════ */

/* ── Global ── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}

/* ── Content area ── */
.fi-main-ctn { padding-left: 0.75rem !important; padding-right: 0.75rem !important; max-width: 100% !important; }
.fi-main, .fi-page { max-width: 100% !important; }
@media (min-width: 1024px) { .fi-main-ctn { padding-left: 1rem !important; padding-right: 1rem !important; } }
.fi-page-header-heading { font-size: 1.125rem !important; font-weight: 700 !important; }

/* ── Filters: toggle aligned with selects on grid ── */
div.fi-ta-filters.grid {
    align-items: end !important;
}

/* ── User avatar — force size on all avatar elements ── */
[class*="fi-avatar"] { width: 2.75rem !important; height: 2.75rem !important; min-width: 2.75rem !important; font-size: 0.9375rem !important; }

/* ═══ LOGIN PAGE custom (split-screen light) ═══ */
body:has(.vivvo-login-root) {
    background: #f8fafc !important;
    min-height: 100vh !important;
    margin: 0 !important;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}

/* Reset del contenedor interno de Filament simple-page */
body:has(.vivvo-login-root) .fi-simple-main-ctn,
body:has(.vivvo-login-root) .fi-simple-main,
body:has(.vivvo-login-root) main,
body:has(.vivvo-login-root) .fi-simple-page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
body:has(.vivvo-login-root) .fi-simple-page > section { gap: 0 !important; }
body:has(.vivvo-login-root) .fi-simple-header { display: none !important; }

.vivvo-login-root {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 100vh;
    color: #1e293b;
}
@media (max-width: 1023px) {
    .vivvo-login-root { grid-template-columns: 1fr; }
}

/* Panel izquierdo (branding claro) */
.vivvo-login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
}
@media (max-width: 1023px) { .vivvo-login-brand { display: none; } }

.vivvo-login-brand-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(148,163,184,0.18), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(100,116,139,0.12), transparent 55%),
        linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
}
.vivvo-login-brand-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.08) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
}
.vivvo-login-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 3rem;
}
@media (min-width: 1280px) { .vivvo-login-brand-inner { padding: 4rem; } }

.vivvo-login-logo {
    display: flex; align-items: center; gap: 0.875rem;
}
.vivvo-login-logo img {
    width: 3.25rem; height: 3.25rem;
    border-radius: 0.625rem;
    background: white;
    padding: 0.375rem;
    object-fit: contain;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
}
.vivvo-login-logo-title {
    font-size: 1.125rem; font-weight: 700; margin: 0; line-height: 1.1; color: #0f172a;
}
.vivvo-login-logo-sub {
    font-size: 0.6875rem; font-weight: 600; margin: 0; color: #64748b;
    letter-spacing: 0.15em; text-transform: uppercase;
}

.vivvo-login-message { max-width: 30rem; }
.vivvo-login-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(15,23,42,0.04);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 9999px;
    color: #475569;
    font-size: 0.75rem; font-weight: 600;
    margin-bottom: 1.25rem;
}
.vivvo-login-badge-dot {
    width: 0.375rem; height: 0.375rem; border-radius: 9999px;
    background: #64748b;
}
.vivvo-login-title {
    font-size: 2.5rem; font-weight: 800; line-height: 1.1;
    margin: 0 0 1.25rem; color: #0f172a; letter-spacing: -0.02em;
}
@media (min-width: 1280px) { .vivvo-login-title { font-size: 3rem; } }
.vivvo-login-title-accent {
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.vivvo-login-desc {
    font-size: 1.0625rem; line-height: 1.65; margin: 0;
    color: #475569;
}
.vivvo-login-footer {
    font-size: 0.8125rem; color: #64748b; margin: 0; line-height: 1.7;
}
.vivvo-login-footer a { color: #334155; font-weight: 600; text-decoration: none; }
.vivvo-login-footer a:hover { text-decoration: underline; }

/* Panel derecho (formulario) */
.vivvo-login-form {
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    background: white;
    border-left: 1px solid #e2e8f0;
}
@media (min-width: 640px) { .vivvo-login-form { padding: 3rem; } }
@media (max-width: 1023px) { .vivvo-login-form { border-left: none; } }

.vivvo-login-form-inner {
    width: 100%; max-width: 26rem;
    display: flex; flex-direction: column; gap: 2rem;
}
.vivvo-login-logo-mobile {
    display: none;
    align-items: center; gap: 0.75rem;
}
@media (max-width: 1023px) { .vivvo-login-logo-mobile { display: flex; } }
.vivvo-login-logo-mobile img {
    width: 2.5rem; height: 2.5rem;
    border-radius: 0.5rem; background: white; padding: 0.25rem; object-fit: contain;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}

.vivvo-login-heading h2 {
    font-size: 1.875rem; font-weight: 800; color: #0f172a;
    margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.vivvo-login-heading p {
    color: #64748b; font-size: 0.9375rem; margin: 0;
}

.vivvo-login-bottom {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #64748b;
    font-size: 0.8125rem;
}
.vivvo-login-bottom a { color: #334155; font-weight: 600; text-decoration: none; }
.vivvo-login-bottom a:hover { text-decoration: underline; }

/* Filament form dentro del login (light) */
.vivvo-login-root .fi-fo-field-wrp-label,
.vivvo-login-root .fi-fo-field-wrp label {
    color: #334155 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.375rem !important;
}
.vivvo-login-root .fi-input-wrp,
.vivvo-login-root .fi-input {
    background-color: white !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 0.625rem !important;
}
.vivvo-login-root .fi-input::placeholder { color: #94a3b8 !important; }
.vivvo-login-root .fi-input:focus,
.vivvo-login-root .fi-input-wrp:focus-within {
    border-color: #475569 !important;
    box-shadow: 0 0 0 3px rgba(71,85,105,0.12) !important;
}
.vivvo-login-root .fi-btn-primary {
    background-color: #0f172a !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.625rem !important;
    font-size: 0.9375rem !important;
    box-shadow: 0 4px 12px -4px rgba(15,23,42,0.25) !important;
    transition: all 0.15s !important;
}
.vivvo-login-root .fi-btn-primary:hover { background-color: #1e293b !important; transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(15,23,42,0.3) !important; }
.vivvo-login-root .fi-checkbox-input { background-color: white !important; border-color: #cbd5e1 !important; }
.vivvo-login-root .fi-checkbox-input:checked { background-color: #0f172a !important; border-color: #0f172a !important; }
.vivvo-login-root a { color: #334155; }
.vivvo-login-root a:hover { color: #0f172a; }

/* ═══ SIDEBAR LOGO — force center ═══ */
header.fi-sidebar-header {
    justify-content: center !important;
}
header.fi-sidebar-header > div {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}
header.fi-sidebar-header > div > a {
    display: flex !important;
    justify-content: center !important;
    flex: 1 !important;
}
header.fi-sidebar-header > div > a > img.fi-logo {
    margin: 0 auto !important;
}

/* ═══ SIDEBAR — TRADUCCIÓN 1:1 del handoff (shell.css del bundle Vivvo
   UI Vivvo-handoff - 08-05-2026/ui-vivvo/project/css/shell.css líneas 14-105).
   Cualquier cambio acá debe replicar exactamente lo del handoff. ═══ */

/* Forzar Inter en TODO el sidebar (el panel usa Montserrat global vía
   ->font('Montserrat') pero el handoff usa Inter para el shell). */
.fi-sidebar, .fi-sidebar * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-feature-settings: 'cv11', 'ss01' !important;
}

/* aside.fi-sidebar ≡ .sidebar del handoff: bg blanco, border-right slate-200,
   width 248px (--sidebar-w). Filament default es 256-320px → demasiado ancho. */
aside.fi-sidebar {
    background: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
    width: 248px !important;
}
.dark aside.fi-sidebar {
    background: #111A2E !important;
    border-right-color: #1F2C46 !important;
}
/* Sidebar a 248px (handoff --sidebar-w). Filament default es 16rem (256px)
   aplicado vía lg:w-64 en el aside. Bajamos a 248px. */
@media (min-width: 1024px) {
    aside.fi-sidebar.lg\:w-64,
    aside.fi-sidebar {
        width: 248px !important;
    }
    /* El .fi-main-ctn ya está POSICIONADO después del aside por el flex/grid
       del layout (mainCtn.left = 248px de forma natural). El lg:ps-64 que
       Filament aplica (256px) crea un GAP BLANCO porque DUPLICA el offset
       que ya da el aside. Anulamos el padding-left totalmente. */
    .fi-main-ctn.lg\:ps-64,
    .fi-main-ctn {
        padding-left: 0 !important;
        padding-inline-start: 0 !important;
    }
}

/* nav.fi-sidebar-nav ≡ .sb-scroll: padding 14px 10px.
   Override con selector más específico para vencer las utility classes
   de Tailwind/Filament que aplican p-8 (32px) por default. */
aside.fi-sidebar nav.fi-sidebar-nav,
nav.fi-sidebar-nav {
    padding: 14px 10px !important;
}
/* Filament aplica '-mx-2' al <ul>.fi-sidebar-nav-groups, lo que da
   margin: 0 -8px y empuja los items 8px hacia AFUERA del padding del nav.
   Resultado: iconos a 12px del borde del aside en vez de 20px (handoff).
   Override forzando margin: 0. */
.fi-sidebar-nav-groups,
ul.fi-sidebar-nav-groups {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

/* .fi-sidebar-group-label ≡ .sb-section-title:
   10px, font-weight 700, letter-spacing 0.12em, uppercase, text-faint,
   padding 16px 10px 6px 10px */
.fi-sidebar-group-label {
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #94A3B8 !important;  /* --text-faint = slate-400 */
    padding: 16px 10px 6px 10px !important;
}
.dark .fi-sidebar-group-label { color: #55667F !important; }  /* dark text-faint */

/* .fi-sidebar-item-button ≡ .sb-item:
   gap 10px, padding 7px 10px, border-radius 8px (--r-md), color text-secondary,
   font-size 14px (--fs-md), font-weight 500, transition fast */
.fi-sidebar-item-button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* handoff: contenido alineado al inicio (NO center, Filament default lo centra) */
    gap: 10px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    color: #475569 !important;  /* --text-secondary = slate-600 */
    font-size: 14px !important;  /* --fs-md */
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin: 1px 0 !important;
    position: relative !important;
    transition: background 120ms cubic-bezier(.4,0,.2,1), color 120ms cubic-bezier(.4,0,.2,1) !important;
}
.dark .fi-sidebar-item-button { color: #A5B2C8 !important; }  /* dark text-secondary */

/* hover: bg surface-hover, color text */
.fi-sidebar-item-button:hover {
    background: #F1F5F9 !important;  /* --surface-hover = slate-100 */
    color: #0F172A !important;       /* --text = slate-900 */
}
.dark .fi-sidebar-item-button:hover {
    background: #17223A !important;
    color: #E6ECF5 !important;
}

/* active ≡ .sb-item.active:
   MISMO bg que hover (surface-hover gris), MISMO color que hover (slate-900).
   NO usar coral-50/coral-700 (eso fue mi invención previa).
   El acento coral viene de la barra ::before, no del fill del item. */
.fi-sidebar-item-active .fi-sidebar-item-button,
.fi-sidebar-item-button.fi-active,
[aria-current="page"].fi-sidebar-item-button {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    font-weight: 500 !important;  /* mismo weight que default, no bold */
}
.dark .fi-sidebar-item-active .fi-sidebar-item-button,
.dark .fi-sidebar-item-button.fi-active,
.dark [aria-current="page"].fi-sidebar-item-button {
    background: #17223A !important;
    color: #E6ECF5 !important;
}

/* Barra coral 3px a la izquierda en activo.
   left -10px porque el nav tiene padding 10px (la barra "sale" al borde). */
.fi-sidebar-item-active .fi-sidebar-item-button::before,
.fi-sidebar-item-button.fi-active::before,
[aria-current="page"].fi-sidebar-item-button::before {
    content: '' !important;
    position: absolute !important;
    left: -10px !important;
    top: 6px !important;
    bottom: 6px !important;
    width: 3px !important;
    background: #FF6B4A !important;  /* --coral-500 */
    border-radius: 0 3px 3px 0 !important;
}

/* Iconos ≡ .sb-item .ic: 16px stroke-width 1.6, currentColor */
.fi-sidebar-item-button svg,
.fi-sidebar-item-button .fi-sidebar-item-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    stroke-width: 1.6 !important;
    color: currentColor !important;
}

/* Badge (urgente) ≡ .sb-item .badge:
   bg coral-500, color blanco, fs 10px, fw 700, padding 1px 6px, pill, min-w 16px */
.fi-sidebar-item-badge,
.fi-sidebar-item-button .fi-badge {
    margin-left: auto !important;
    background: #FF6B4A !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    border-radius: 9999px !important;
    min-width: 16px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

/* Brand / header ≡ .sb-brand: altura 56px (--topbar-h),
   gap 10px, padding 0 18px, border-bottom */
header.fi-sidebar-header {
    height: 56px !important;
    padding: 0 18px !important;
    gap: 10px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
}
.dark header.fi-sidebar-header {
    border-bottom-color: #1F2C46 !important;
    background: #111A2E !important;
}

/* ═══ COMPONENTS ═══ */

/* Cards & Sections */
.fi-section { border-radius: 0.75rem !important; box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; border: 1px solid rgba(0,0,0,0.06) !important; transition: box-shadow 0.2s ease; }
.fi-section:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important; }

/* Stats widgets */
.fi-wi-stats-overview-stat { border-radius: 0.75rem !important; border: 1px solid rgba(0,0,0,0.06) !important; transition: transform 0.15s, box-shadow 0.15s; }
.fi-wi-stats-overview-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important; }

/* Tables */
.fi-ta-header-cell { font-size: 0.7rem !important; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600 !important; }
.fi-ta-row { transition: background-color 0.1s; }
.fi-ta-row:hover { background-color: rgba(59,130,246,0.02) !important; }

/* Badges */
.fi-badge { font-weight: 600 !important; letter-spacing: 0.01em; border-radius: 9999px !important; }

/* Buttons */
.fi-btn { border-radius: 0.5rem !important; font-weight: 600 !important; transition: all 0.15s !important; }
.fi-btn:hover { transform: translateY(-1px); }

/* Modals */
.fi-modal-window { border-radius: 1rem !important; box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important; }

/* Tabs */
.fi-tabs-tab { border-radius: 0.5rem !important; transition: all 0.15s !important; font-weight: 500 !important; }
.fi-tabs-tab[aria-selected="true"] { box-shadow: 0 1px 3px rgba(59,130,246,0.15) !important; }

/* Inputs (Filament) — borde siempre visible + focus coral.
   Pablo (03/05/2026): los inputs sin foco eran prácticamente invisibles
   (border-color heredado tirando a blanco). Subimos el contraste a slate-300
   y unificamos el focus al coral del design system para que matchee con
   el resto de la UI Vivvo. */
.fi-input,
.fi-select-input,
.fi-fo-text-input input,
.fi-fo-textarea textarea,
.fi-fo-select select,
.fi-input-wrp { border-radius: 0.5rem !important; border-color: #CBD5E1 !important; transition: border-color 0.15s, box-shadow 0.15s !important; }
.dark .fi-input,
.dark .fi-select-input,
.dark .fi-fo-text-input input,
.dark .fi-fo-textarea textarea,
.dark .fi-fo-select select,
.dark .fi-input-wrp { border-color: rgba(255,255,255,0.18) !important; }
.fi-input:focus,
.fi-input:focus-within,
.fi-select-input:focus,
.fi-fo-text-input input:focus,
.fi-fo-textarea textarea:focus,
.fi-fo-select select:focus,
.fi-input-wrp:focus-within { border-color: #FF6B4A !important; box-shadow: 0 0 0 3px rgba(255,107,74,0.15) !important; outline: none !important; }

/* Kanban cards */
.record { transition: transform 0.15s, box-shadow 0.15s !important; }
.record:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; }
.record:active { transform: scale(0.98); cursor: grabbing !important; }

/* Notification, Pagination */
.fi-no { border-radius: 0.75rem !important; }
.fi-pagination-item { border-radius: 0.375rem !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.4); }

/* ═══ DARK MODE ═══ */
.dark .fi-section { border-color: rgba(255,255,255,0.06) !important; }
.dark .fi-ta-row:hover { background-color: rgba(59,130,246,0.04) !important; }
.dark .fi-wi-stats-overview-stat { border-color: rgba(255,255,255,0.06) !important; }
.dark .fi-wi-stats-overview-stat:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important; }
.dark .fi-modal-window { box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important; }
.dark .record:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important; }
.dark ::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.2); }
.dark ::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.35); }

/* ═══ FILE UPLOAD compacto (solo para PropiedadResource) ═══ */
.vivvo-compact-upload .filepond--item {
    width: calc(12.5% - 0.25em) !important;
    margin: 0.125em !important;
}
@media (max-width: 1280px) {
    .vivvo-compact-upload .filepond--item { width: calc(16.66% - 0.25em) !important; }
}
@media (max-width: 900px) {
    .vivvo-compact-upload .filepond--item { width: calc(25% - 0.25em) !important; }
}
@media (max-width: 600px) {
    .vivvo-compact-upload .filepond--item { width: calc(33.33% - 0.25em) !important; }
}
/* Reducir espaciado entre items en la lista */
.vivvo-compact-upload .filepond--list { padding: 0 !important; }
/* Ocultar fondo negro del preview de imagen (lo que se ve arriba/abajo en fotos landscape) */
.vivvo-compact-upload .filepond--image-preview { background: transparent !important; background-color: transparent !important; }
.vivvo-compact-upload .filepond--image-preview-wrapper { background: transparent !important; background-color: transparent !important; }
/* Aspect ratio del thumbnail acorde a foto landscape — elimina espacio vacío arriba/abajo */
.vivvo-compact-upload .filepond--image-preview-wrapper,
.vivvo-compact-upload .filepond--image-preview { aspect-ratio: 4/3 !important; height: auto !important; }
/* Fondo del item transparente también */
.vivvo-compact-upload .filepond--panel,
.vivvo-compact-upload .filepond--item-panel,
.vivvo-compact-upload .filepond--panel-root { display: none !important; }
.vivvo-compact-upload .filepond--image-preview-overlay-idle,
.vivvo-compact-upload .filepond--image-preview-overlay-success,
.vivvo-compact-upload .filepond--image-preview-overlay-failure { background: transparent !important; background-color: transparent !important; color: transparent !important; }
.vivvo-compact-upload .filepond--item,
.vivvo-compact-upload .filepond--file,
.vivvo-compact-upload .filepond--file-wrapper { background: transparent !important; background-color: transparent !important; box-shadow: none !important; }
/* Ocultar nombre de archivo, tamaño, estado */
.vivvo-compact-upload .filepond--file-info,
.vivvo-compact-upload .filepond--file-status { display: none !important; }
/* Quitar padding que deja espacio negro arriba/abajo */
.vivvo-compact-upload .filepond--file { padding: 0 !important; }
/* Que la imagen ocupe todo el thumbnail */
.vivvo-compact-upload .filepond--image-preview-wrapper,
.vivvo-compact-upload .filepond--image-preview { border-radius: 0.375rem !important; }

/* Botón X de eliminar imagen: en light mode se pierde sobre fondos blancos
   (fotos verticales con padding blanco en el thumbnail). Agregamos drop-shadow
   oscuro para que siempre se vea. En dark mode no aplica (ya se ve bien). */
html:not(.dark) .vivvo-compact-upload .filepond--file-action-button {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Toggles con mejor contraste en LIGHT MODE
   Filament por default usa slate-200 para el fondo apagado, que
   casi no se distingue del fondo blanco. Oscurecemos y agregamos
   borde para que se note siempre.
   ═══════════════════════════════════════════════════════════════ */
html:not(.dark) button[role="switch"][aria-checked="false"],
html:not(.dark) .fi-toggle[aria-checked="false"] {
    background-color: #cbd5e1 !important;   /* slate-300 en vez de slate-200 */
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

/* El círculo blanco del toggle (knob) con borde sutil para que no se pierda */
html:not(.dark) button[role="switch"] > span,
html:not(.dark) [role="switch"] > span:first-child {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25),
                0 0 0 0.5px rgba(15, 23, 42, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Logo MercadoLibre en acciones de tabla — preservar colores
   originales del SVG (amarillo + azul) sin que Filament los pise.
   ═══════════════════════════════════════════════════════════════ */
.vivvo-ml-action svg,
.vivvo-ml-action svg * {
    color: unset !important;
}
.vivvo-ml-action {
    background: transparent !important;
}
.vivvo-ml-action svg {
    width: 22px !important;
    height: 22px !important;
}

/* ───── Visitas canceladas en tablas ─────
   Solo las CANCELADAS se distinguen visualmente: tachadas + opacity +
   fondo rojo claro. Las realizadas se ven normales — son la mayoría
   del histórico, no tiene sentido atenuarlas (Pablo: "todas las
   actividades se ven más claras, no solo la cancelada").
*/
tr.visita-cancelada td,
tr.visita-cancelada th {
    text-decoration: line-through !important;
    text-decoration-color: rgba(239, 68, 68, 0.55) !important;
    color: rgba(100, 116, 139, 0.85) !important;
    background-color: rgba(254, 242, 242, 0.45) !important;
}
tr.visita-cancelada {
    opacity: 0.7;
}
