/* Kanban SLA - position relative no card para o ícone absolute funcionar */
.lead-item {
    position: relative !important;
}


/* Sidebar Fixada - mantém expandida quando pinned */
html.flowinner-pinned .sidebar-collapsed {
    /* Remove o estado colapsado do container pai */
}

html.flowinner-pinned [ref="sidebar"],
html.flowinner-pinned .group\/container > div:first-child {
    width: 200px !important;
    overflow: visible !important;
}

/* Oculta labels do menu quando colapsado — reverte quando pinned */
html.flowinner-pinned .group\/container .group-\[\.sidebar-collapsed\]\/container\:hidden {
    display: flex !important;
}

html.flowinner-pinned .group\/container .group-\[\.sidebar-collapsed\]\/container\:w-\[70px\] {
    width: 200px !important;
}

/* Empurra o conteúdo principal */
html.flowinner-pinned .group\/container > div:nth-child(2) {
    padding-left: 215px !important;
}


/* Heroicons - SVG icons via CSS mask-image */
.icon-heroicon-document-duplicate:before,
.icon-heroicon-check-circle:before,
.icon-heroicon-x-circle:before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-heroicon-document-duplicate:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75'/%3E%3C/svg%3E");
}

.icon-heroicon-check-circle:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.icon-heroicon-x-circle:before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.icon-heroicon-circle-stack:before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125'/%3E%3C/svg%3E");
}

/* Campaign icon — Heroicons megaphone */
.icon-campaign {
    font-family: inherit !important;
    speak: auto !important;
    display: inline-block !important;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 1 8.835-2.535m0 0A23.74 23.74 0 0 1 18.795 3c1.167 0 2.315.102 3.435.3m-3.435-.3a23.74 23.74 0 0 0-3.435.3m6.87 0a23.847 23.847 0 0 1 2.535 8.835m-2.535-8.835A23.848 23.848 0 0 1 21.3 12c0 3.266-.659 6.373-1.845 9.195'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 1 8.835-2.535m0 0A23.74 23.74 0 0 1 18.795 3c1.167 0 2.315.102 3.435.3m-3.435-.3a23.74 23.74 0 0 0-3.435.3m6.87 0a23.847 23.847 0 0 1 2.535 8.835m-2.535-8.835A23.848 23.848 0 0 1 21.3 12c0 3.266-.659 6.373-1.845 9.195'/%3E%3C/svg%3E");
}

/* Override icomoon for icon-campaign */
.icon-campaign {
    font-family: inherit !important;
    speak: auto !important;
    display: inline-block !important;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 1 8.835-2.535m0 0A23.74 23.74 0 0 1 18.795 3c1.167 0 2.315.102 3.435.3m-3.435-.3a23.74 23.74 0 0 0-3.435.3m6.87 0a23.847 23.847 0 0 1 2.535 8.835m-2.535-8.835A23.848 23.848 0 0 1 21.3 12c0 3.266-.659 6.373-1.845 9.195'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 1 8.835-2.535m0 0A23.74 23.74 0 0 1 18.795 3c1.167 0 2.315.102 3.435.3m-3.435-.3a23.74 23.74 0 0 0-3.435.3m6.87 0a23.847 23.847 0 0 1 2.535 8.835m-2.535-8.835A23.848 23.848 0 0 1 21.3 12c0 3.266-.659 6.373-1.845 9.195'/%3E%3C/svg%3E");
}

/* fi-campaign — uses fi- prefix to avoid icomoon [class^="icon-"] conflict */
.fi-campaign {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 1 8.835-2.535m0 0A23.74 23.74 0 0 1 18.795 3c1.167 0 2.315.102 3.435.3m-3.435-.3a23.74 23.74 0 0 0-3.435.3m6.87 0a23.847 23.847 0 0 1 2.535 8.835m-2.535-8.835A23.848 23.848 0 0 1 21.3 12c0 3.266-.659 6.373-1.845 9.195'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 1 8.835-2.535m0 0A23.74 23.74 0 0 1 18.795 3c1.167 0 2.315.102 3.435.3m-3.435-.3a23.74 23.74 0 0 0-3.435.3m6.87 0a23.847 23.847 0 0 1 2.535 8.835m-2.535-8.835A23.848 23.848 0 0 1 21.3 12c0 3.266-.659 6.373-1.845 9.195'/%3E%3C/svg%3E");
}

.icon-heroicon-megaphone:before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46'/%3E%3C/svg%3E");
}

/* ── Multiselect options — tema Flowinner ──────────────────────────── */
select[multiple] option {
    padding: 8px 12px !important;
    line-height: 1.5 !important;
    font-size: 13px !important;
    color: #374151 !important;
    background: #fff !important;
    border-radius: 0 !important;
}

select[multiple] option + option {
    border-top: 1px solid #f3f4f6 !important;
}

select[multiple] option:checked {
    background: #0E90D9 !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
}

.dark select[multiple] option {
    background: #1f2937 !important;
    color: #d1d5db !important;
}

.dark select[multiple] option + option {
    border-top-color: #374151 !important;
}

.dark select[multiple] option:checked {
    background: #0E90D9 !important;
    color: #fff !important;
    border-radius: 5px !important;
}


/* ══════════════════════════════════════════════════════════════════════
   FLOWINNER DESIGN SYSTEM — PHASE 1: FOUNDATION CSS
   Escopo: todas as ~104 páginas autenticadas do admin
   Método: CSS global carregado via flowinner-theme.css
   Zero-Touch Core: zero modificação em packages/Webkul/
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Global Typography ────────────────────────────────────────── */

#app {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── 2. Button System ────────────────────────────────────────────── */

.primary-button {
    border-radius: 0.5rem !important;
    padding: 0.55rem 1.125rem !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
}

.primary-button:hover {
    opacity: 0.91 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.primary-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.secondary-button {
    border-radius: 0.5rem !important;
    padding: 0.5rem 1.125rem !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.01em !important;
    transition: all 0.2s ease !important;
}

.secondary-button:hover {
    transform: translateY(-1px) !important;
}

.secondary-button:active {
    transform: translateY(0) !important;
}

.transparent-button {
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

/* ── 3. Card / Panel System ─────────────────────────────────────── */

/* .box-shadow é usado em cards, DataGrids e painéis em todo o admin */
/* .box-shadow {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06) !important;
} */

/* ── 4. Form Inputs Global ──────────────────────────────────────── */

/* Krayin renderiza inputs com class="...rounded border border-gray-200..." */
input[class*="border-gray-200"],
textarea[class*="border-gray-200"] {
    border-radius: 0.5rem !important;
    border-color: #e2e8f0 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

input[class*="border-gray-200"]:hover,
textarea[class*="border-gray-200"]:hover {
    border-color: #cbd5e1 !important;
}

input[class*="border-gray-200"]:focus,
textarea[class*="border-gray-200"]:focus {
    border-color: var(--brand-color, #0E90D9) !important;
    box-shadow: 0 0 0 3px rgba(14, 144, 217, 0.12) !important;
    outline: none !important;
}

/* Selects */
select[class*="border-gray-200"],
select[class*="rounded-md"],
select[class*="rounded border"] {
    border-radius: 0.5rem !important;
    transition: border-color 0.2s !important;
}

select[class*="border-gray-200"]:focus,
select[class*="rounded-md"]:focus {
    border-color: var(--brand-color, #0E90D9) !important;
    box-shadow: 0 0 0 3px rgba(14, 144, 217, 0.12) !important;
    outline: none !important;
}

/* Inputs com erro (Krayin adiciona border-red-600) */
input[class*="border-red-600"],
input.border[class*="border-red-600"] {
    border-radius: 0.5rem !important;
}

/* Container de input de preço (flex wrapper) */
div[class*="rounded-md border"][class*="focus-within"] {
    border-radius: 0.5rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

div[class*="rounded-md border"]:focus-within {
    border-color: var(--brand-color, #0E90D9) !important;
    box-shadow: 0 0 0 3px rgba(14, 144, 217, 0.12) !important;
}

/* ── 5. DataGrid / Table ─────────────────────────────────────────── */

/* Container principal da tabela */
.table-responsive {
    border-bottom-right-radius: 0.75rem !important;
    border-bottom-left-radius: 0.75rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
}

/* Borda da tabela interna */
.table-responsive table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Header row da tabela */
.table-responsive thead tr {
    background: #f8fafc !important;
}

.table-responsive thead th {
    border-bottom-color: #f1f5f9 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    color: #64748b !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
}

/* Linhas do corpo da tabela */
.table-responsive tbody tr {
    transition: background 0.12s ease !important;
}

.table-responsive tbody tr:hover {
    background: #f8fafc !important;
}

.table-responsive tbody td {
    border-bottom-color: #f8fafc !important;
    font-size: 0.875rem !important;
}

/* Célula de última linha sem borda */
.table-responsive tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── 6. Scrollbar Polish ─────────────────────────────────────────── */

/* Scrollbar global — de 12px para 8px, mais refinado */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Scrollbar do sidebar (journal-scroll) — ultra sutil */
.journal-scroll::-webkit-scrollbar {
    width: 4px !important;
}

.journal-scroll::-webkit-scrollbar-track {
    background: transparent !important;
}

.journal-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12) !important;
    border-radius: 4px !important;
}

.journal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22) !important;
}

/* ── 7. Badges / Pills ───────────────────────────────────────────── */

/* Krayin usa max-w-max rounded-md bg-emerald-200 para badges de status */
.max-w-max.rounded-md.bg-emerald-200,
.max-w-max.rounded-md.bg-red-200,
.max-w-max.rounded-md.bg-yellow-200,
.max-w-max.rounded-md.bg-blue-200,
.max-w-max.rounded-md.bg-orange-200,
.max-w-max.rounded-md.bg-gray-200 {
    border-radius: 9999px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    padding: 0.25rem 0.65rem !important;
}

/* ── 8. Dropdown Menus ───────────────────────────────────────────── */

/* Dropdowns e menus contextuais do admin */
.z-10.mt-2.rounded-md.border.bg-white.shadow-md,
.z-\[1000\].rounded-md.border.bg-white.shadow-lg {
    border-radius: 0.75rem !important;
    border-color: #f1f5f9 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 0.375rem !important;
}

/* ── 9. Tabs ─────────────────────────────────────────────────────── */

/* Abas de navegação (leads, contacts, etc.) */
[class*="rounded-t-lg"][class*="border-b-2"][class*="text-brandColor"] {
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* ── 10. Accordion / Sections ────────────────────────────────────── */

/* Painéis internos de seção */
[class*="rounded-lg"][class*="border"][class*="border-gray-200"][class*="bg-white"] {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ── Login Page — Split-screen redesign ────────────────────────────── */

.fl-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 28px 28px;
}

.fl-login-wrap {
    width: 100%;
    max-width: 920px;
    display: flex;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ─── Brand Panel (esquerda) ─── */
.fl-brand {
    width: 43%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
    background: var(--brand-color, #0E90D9);
}

.fl-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(255,255,255,0.10) 0%, rgba(5, 25, 65, 0.72) 100%);
    pointer-events: none;
    z-index: 0;
}

.fl-brand-deco-1 {
    position: absolute;
    top: -110px;
    right: -110px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
    z-index: 0;
}

.fl-brand-deco-2 {
    position: absolute;
    bottom: -90px;
    left: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 0;
}

.fl-brand-deco-3 {
    position: absolute;
    bottom: 30%;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 0;
}

.fl-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    flex: 1;
}

.fl-brand-illustration {
    display: flex;
    justify-content: center;
}

.fl-brand-headline h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.fl-brand-headline p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.fl-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fl-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.fl-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-feature-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: rgba(255, 255, 255, 0.92);
}

.fl-feature-title {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: #ffffff;
}

.fl-feature-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.58);
    margin-top: 0.1rem;
    line-height: 1.4;
}

.fl-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.38);
}

/* ─── Form Panel (direita) ─── */
.fl-form-panel {
    flex: 1;
    background: #ffffff;
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fl-form-logo {
    margin-bottom: 2rem;
}

.fl-form-logo img {
    height: 2.25rem;
}

.fl-form-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.fl-form-subheading {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.fl-form-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 1.75rem;
}

.fl-form-panel input[type="email"],
.fl-form-panel input[type="password"],
.fl-form-panel input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.65rem 0.875rem !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.fl-form-panel input:focus {
    border-color: var(--brand-color, #0E90D9) !important;
    border-width: 2px !important;
    background: #ffffff !important;
    outline: none !important;
}

.fl-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.fl-forgot {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-color, #0E90D9);
    text-decoration: none;
    transition: opacity 0.2s;
}

.fl-forgot:hover {
    opacity: 0.72;
}

.fl-btn {
    padding: 0.65rem 1.75rem;
    background: var(--brand-color, #0E90D9);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: opacity 0.2s, transform 0.15s;
}

.fl-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.fl-btn:active {
    transform: translateY(0);
}

/* ─── Responsivo ─── */
@media (max-width: 620px) {
    .fl-login-wrap {
        flex-direction: column;
        border-radius: 1rem;
        max-width: 440px;
    }

    .fl-brand {
        width: 100%;
        padding: 2rem 1.75rem;
        gap: 1.25rem;
    }

    .fl-brand-illustration,
    .fl-features {
        display: none;
    }

    .fl-brand-headline h2 {
        font-size: 1.2rem;
    }

    .fl-form-panel {
        padding: 2rem 1.5rem;
    }
}


/* ── Auth Card (Esqueci senha / Redefinir senha) ─────────────────── */

.fl-auth-wrap {
    width: 100%;
    max-width: 460px;
}

.fl-auth-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.fl-auth-bar {
    height: 4px;
    background: var(--brand-color, #0E90D9);
}

.fl-auth-body {
    padding: 2.5rem 2.5rem 2.25rem;
}

.fl-auth-logo {
    margin-bottom: 2rem;
}

.fl-auth-logo img {
    height: 2rem;
}

.fl-auth-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    background: #e8f4fd;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.fl-auth-icon-wrap svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke: var(--brand-color, #0E90D9);
}

.fl-auth-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
}

.fl-auth-subtext {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    font-family: 'Poppins', sans-serif;
}

.fl-auth-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

/* Inputs dentro do auth card */
.fl-auth-card input[type="email"],
.fl-auth-card input[type="password"],
.fl-auth-card input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.65rem 0.875rem !important;
    font-size: 0.875rem !important;
    color: #0f172a !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.fl-auth-card input:focus {
    border-color: var(--brand-color, #0E90D9) !important;
    border-width: 2px !important;
    background: #ffffff !important;
    outline: none !important;
}

.fl-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.fl-auth-actions--end {
    justify-content: flex-end;
}

.fl-btn--full {
    width: 100%;
    justify-content: center;
}

.fl-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-color, #0E90D9);
    text-decoration: none;
    transition: opacity 0.2s;
}

.fl-auth-back:hover {
    opacity: 0.72;
}

.fl-auth-back svg {
    width: 0.85rem;
    height: 0.85rem;
    stroke: var(--brand-color, #0E90D9);
}

.fl-auth-footer {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 1rem 2.5rem 1.5rem;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 480px) {
    .fl-auth-body {
        padding: 2rem 1.5rem 1.75rem;
    }

    .fl-auth-footer {
        padding: 0.75rem 1.5rem 1.25rem;
    }
}

/* =========================================================
   FASE 2 — Layout Shell
   Header · Sidebar · Content Area · Tipografia global
   ========================================================= */

/* ── Tipografia global (Poppins) ─────────────────────────── */
/* body.font-inter {
    font-family: 'Poppins', 'Inter', ui-sans-serif, sans-serif !important;
} */

/* ── Header ──────────────────────────────────────────────── */
.fl-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border-bottom-color: #eef0f4 !important;
}

/* Logo — tamanho refinado */
.fl-header img[alt="Flowinner"] {
    width: auto !important;
}

/* Botão pin/recolher sidebar */
.fl-header button[title="Fixar/Recolher Menu"] {
    color: #94a3b8 !important;
    border-radius: 0.5rem !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.fl-header button[title="Fixar/Recolher Menu"]:hover {
    color: var(--brand-color, #0E90D9) !important;
    background-color: rgba(14, 144, 217, 0.08) !important;
}

/* Avatar fallback — brand color no lugar do pink */
.fl-header button.bg-pink-400 {
    background-color: var(--brand-color, #0E90D9) !important;
}

/* Toggle dark mode */
.fl-header .icon-dark,
.fl-header .icon-light {
    color: #64748b !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.fl-header .icon-dark:hover,
.fl-header .icon-light:hover {
    color: var(--brand-color, #0E90D9) !important;
    background-color: rgba(14, 144, 217, 0.08) !important;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.fl-sidebar {
    border-right-color: #eef0f4 !important;
}

/* Item ativo — sombra suave da brand color */
.fl-sidebar .active > a {
    box-shadow: 0 4px 14px rgba(14, 144, 217, 0.24) !important;
}

/* Item inativo — hover com tint da brand */
.fl-sidebar .inactive > a:hover {
    background-color: rgba(14, 144, 217, 0.07) !important;
    border-radius: 0.5rem !important;
}

/* Ícone no hover */
.fl-sidebar .inactive > a:hover span[class*="icon-"] {
    color: var(--brand-color, #0E90D9) !important;
}

/* Label no hover */
.fl-sidebar .inactive > a:hover .text-gray-600 {
    color: var(--brand-color, #0E90D9) !important;
}

/* Borda lateral do submenu */
.fl-sidebar .border-l-2 {
    border-left-color: var(--brand-color, #0E90D9) !important;
    opacity: 0.55 !important;
}

/* Items do submenu — hover tintado */
.fl-sidebar .border-l-2 a:hover {
    background-color: rgba(14, 144, 217, 0.07) !important;
    color: var(--brand-color, #0E90D9) !important;
}

/* ── Content area ─────────────────────────────────────────── */
.fl-main-content {
    background-color: #f4f7fb !important;
}

/* Footer do layout */
.fl-footer {
    border-top-color: #eef0f4 !important;
}

/* =========================================================
   DARK MODE CORRECTIONS — Fases 1 e 2
   Restaura dark:* classes Tailwind sobrescritas por !important
   ========================================================= */

/* ── Fase 1: Inputs dark ─────────────────────────────────── */
.dark input[class*="border-gray-200"],
.dark textarea[class*="border-gray-200"] {
    border-color: #374151 !important;
}

.dark input[class*="border-gray-200"]:hover,
.dark textarea[class*="border-gray-200"]:hover {
    border-color: #4b5563 !important;
}

.dark input[class*="border-gray-200"]:focus,
.dark textarea[class*="border-gray-200"]:focus {
    border-color: var(--brand-color, #0E90D9) !important;
    box-shadow: 0 0 0 3px rgba(14, 144, 217, 0.18) !important;
}

.dark select[class*="border-gray-200"]:focus,
.dark select[class*="rounded-md"]:focus {
    border-color: var(--brand-color, #0E90D9) !important;
    box-shadow: 0 0 0 3px rgba(14, 144, 217, 0.18) !important;
}

/* ── Fase 1: DataGrid dark ───────────────────────────────── */
.dark .table-responsive thead tr {
    background: #111827 !important;
}

.dark .table-responsive thead th {
    border-bottom-color: #374151 !important;
    color: #9ca3af !important;
}

.dark .table-responsive tbody tr:hover {
    background: #1f2937 !important;
}

.dark .table-responsive tbody td {
    border-bottom-color: #1f2937 !important;
}

/* ── Fase 1: Cards/box-shadow dark ──────────────────────── */
/* .dark .box-shadow {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.25) !important;
} */

/* ── Fase 1: Scrollbar dark ──────────────────────────────── */
.dark ::-webkit-scrollbar-thumb {
    background: #374151 !important;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #4b5563 !important;
}

.dark .journal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12) !important;
}

.dark .journal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

/* ── Fase 1: Dropdowns dark ──────────────────────────────── */
.dark .z-10.mt-2.rounded-md.border.bg-white.shadow-md,
.dark .z-\[1000\].rounded-md.border.bg-white.shadow-lg {
    border-color: #374151 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ── Fase 2: Header dark ─────────────────────────────────── */
.dark .fl-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    border-bottom-color: #1f2937 !important;
}

.dark .fl-header .icon-dark,
.dark .fl-header .icon-light {
    color: #9ca3af !important;
}

.dark .fl-header .icon-dark:hover,
.dark .fl-header .icon-light:hover {
    color: var(--brand-color, #0E90D9) !important;
    background-color: rgba(14, 144, 217, 0.15) !important;
}

.dark .fl-header button[title="Fixar/Recolher Menu"]:hover {
    color: var(--brand-color, #0E90D9) !important;
    background-color: rgba(14, 144, 217, 0.15) !important;
}

/* ── Fase 2: Sidebar dark ────────────────────────────────── */
.dark .fl-sidebar {
    border-right-color: #1f2937 !important;
}

.dark .fl-sidebar .inactive > a:hover {
    background-color: rgba(14, 144, 217, 0.10) !important;
}

.dark .fl-sidebar .border-l-2 {
    border-left-color: var(--brand-color, #0E90D9) !important;
    opacity: 0.35 !important;
}

/* ── Fase 2: Content area e footer dark ──────────────────── */
.dark .fl-main-content {
    background-color: #030712 !important;
}

.dark .fl-footer {
    border-top-color: #1f2937 !important;
}

/* =========================================================
   FASE 3 — Dashboard
   Header · Widget Cards · KPI Stats · Dark mode incluído
   ========================================================= */

/* ── Dashboard Header ─────────────────────────────────────── */
.fl-dashboard-header {
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 1.25rem !important;
}

.dark .fl-dashboard-header {
    border-bottom-color: #1f2937 !important;
}

/* Título da página */
.fl-dashboard-title {
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.dark .fl-dashboard-title {
    color: #f1f5f9 !important;
}

/* ── Dashboard Widget Cards ───────────────────────────────── */
/* Cards principais (com box-shadow) recebem borda top brand */
.fl-dashboard .box-shadow {
    border-top: 2px solid var(--brand-color, #0E90D9) !important;
    border-radius: 0.75rem !important;
}

/* Cards do painel lateral (open-leads, revenue-by-types etc.) */
.fl-dashboard .grid.gap-4.rounded-lg.border {
    border-top: 2px solid var(--brand-color, #0E90D9) !important;
    border-radius: 0.75rem !important;
}

.dark .fl-dashboard .grid.gap-4.rounded-lg.border {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* ── KPI Stat Cards ───────────────────────────────────────── */
/* Número principal do KPI — maior, mais impactante */
.fl-dashboard .text-xl.font-bold {
    font-size: 1.5rem !important;
    letter-spacing: -0.025em !important;
}

/* Label de KPI — caixa alta, menor */
.fl-dashboard .text-xs.font-medium.text-gray-600 {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    font-weight: 700 !important;
}

.dark .fl-dashboard .text-xs.font-medium.text-gray-600 {
    color: #9ca3af !important;
}

/* Receita ganha */
.fl-dashboard .text-xl.font-bold.text-green-600 {
    color: #15803d !important;
}

.dark .fl-dashboard .text-xl.font-bold.text-green-600 {
    color: #4ade80 !important;
}

/* Receita perdida */
.fl-dashboard .text-xl.font-bold.text-red-500 {
    color: #dc2626 !important;
}

.dark .fl-dashboard .text-xl.font-bold.text-red-500 {
    color: #f87171 !important;
}

/* Títulos dos widgets (ex: "Open Leads by States") */
.fl-dashboard .text-base.font-semibold {
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

.dark .fl-dashboard .text-base.font-semibold {
    color: #f1f5f9 !important;
}

/* ── Date Filter inputs ───────────────────────────────────── */
.fl-dashboard-header input[class*="rounded-md"] {
    border-radius: 0.5rem !important;
    font-size: 0.8rem !important;
}

/* =========================================================
   FASE 4 — Módulo de Leads
   Page header · Kanban stages · Lead cards · View panel
   ========================================================= */

/* ── Leads: Page Header Bar ───────────────────────────────── */
.fl-leads-page-header {
    border-color: #eef0f4 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 0.875rem 1.25rem !important;
}

.dark .fl-leads-page-header {
    border-color: #1f2937 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
}

.fl-leads-page-header .text-xl.font-bold {
    letter-spacing: -0.015em !important;
    font-weight: 700 !important;
}

/* ── Kanban: Stage Columns ────────────────────────────────── */
.fl-leads-index [class*="min-w-[275px]"] {
    border-color: #eef0f4 !important;
    border-radius: 0.875rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.dark .fl-leads-index [class*="min-w-[275px]"] {
    border-color: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Stage header padding */
.fl-leads-index [class*="min-w-[275px]"] .flex.flex-col.px-2.py-3 {
    padding: 0.75rem 0.875rem !important;
}

/* Stage name — uppercase */
.fl-leads-index [class*="min-w-[275px]"] .flex.flex-col.px-2.py-3 .text-xs.font-medium {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
}

.dark .fl-leads-index [class*="min-w-[275px]"] .flex.flex-col.px-2.py-3 .text-xs.font-medium {
    color: #9ca3af !important;
}

/* Stage amount value */
.fl-leads-index .flex.items-center.justify-between.gap-2 .text-xs.font-medium {
    color: #0f172a !important;
    font-weight: 600 !important;
}

.dark .fl-leads-index .flex.items-center.justify-between.gap-2 .text-xs.font-medium {
    color: #f1f5f9 !important;
}

/* ── Kanban: Lead Cards ───────────────────────────────────── */
/*
 * border-color sem !important: o inline style do SLA (borderTop: '5px solid X')
 * precisa ter precedência via especificidade de inline style, o que não é possível
 * quando o CSS usa !important (author !important > inline style na cascata CSS).
 */
.lead-item {
    border-color: #d1dbe5;
    background: #f9fcff !important;
    border-radius: 0.625rem !important;
    padding: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.lead-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10) !important;
    border-color: var(--brand-color, #0E90D9);
}

.dark .lead-item {
    border-color: #374151;
    background: #1f2937 !important;
}

.dark .lead-item:hover {
    border-color: var(--brand-color, #0E90D9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Lead card: lead title */
.lead-item p.text-xs.font-medium {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
}

.dark .lead-item p.text-xs.font-medium {
    color: #f8fafc !important;
}

/* Lead card: organization name */
.lead-item .text-\[10px\] {
    color: #94a3b8 !important;
    font-size: 0.65rem !important;
}

/* Lead card: user/tag badges */
.lead-item .rounded-xl.bg-gray-200 {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 0.68rem !important;
}

.dark .lead-item .rounded-xl.bg-gray-200 {
    background-color: #374151 !important;
    color: #9ca3af !important;
}

/* SLA border-top — via classe CSS (não inline style) para garantir !important em dark mode */
.lead-item.sla-green  { border-top: 5px solid #22C55E !important; }
.lead-item.sla-yellow { border-top: 5px solid #EAB308 !important; }
.lead-item.sla-red    { border-top: 5px solid #EF4444 !important; }

/* Drag ghost placeholder */
.draggable-ghost {
    opacity: 0.35 !important;
    border: 2px dashed var(--brand-color, #0E90D9) !important;
    background: rgba(14, 144, 217, 0.04) !important;
    border-radius: 0.625rem !important;
}

/* ── Lead View: Pipeline Stage Bar ───────────────────────── */
/* .stage {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    height: 2rem !important;
    transition: background-color 0.15s ease !important;
} */

/* ── Lead View: Left Panel ────────────────────────────────── */
.min-w-\[394px\].max-w-\[394px\] {
    border-color: #eef0f4 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.dark .min-w-\[394px\].max-w-\[394px\] {
    border-color: #1f2937 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.min-w-\[394px\].max-w-\[394px\] h1.text-lg.font-bold {
    font-size: 1.2rem !important;
    letter-spacing: -0.015em !important;
    font-weight: 700 !important;
}

.dark .min-w-\[394px\].max-w-\[394px\] h1.text-lg.font-bold {
    color: #f1f5f9 !important;
}

/* =========================================================
   FASE 5 — Módulo de Contacts
   Persons index · Organizations index · Person view panel
   ========================================================= */

/* ── Contacts: Page Header Bar ───────────────────────────── */
.fl-contacts-page-header {
    border-color: #eef0f4 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 0.875rem 1.25rem !important;
}

.dark .fl-contacts-page-header {
    border-color: #1f2937 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
}

.fl-contacts-page-header .text-xl.font-bold {
    letter-spacing: -0.015em !important;
    font-weight: 700 !important;
}

/* ── Contacts: Index — DataGrid wrapper ──────────────────── */
.fl-contacts-index {
    gap: 1rem !important;
}

/* ── Contacts: Person View — left panel title ────────────── */
.fl-contacts-view .min-w-\[394px\].max-w-\[394px\] h3.text-lg.font-bold {
    font-size: 1.2rem !important;
    letter-spacing: -0.015em !important;
    font-weight: 700 !important;
}

.dark .fl-contacts-view .min-w-\[394px\].max-w-\[394px\] h3.text-lg.font-bold {
    color: #f1f5f9 !important;
}

/* Person job title */
.fl-contacts-view .min-w-\[394px\].max-w-\[394px\] p.dark\:text-white {
    color: #64748b !important;
    font-size: 0.825rem !important;
}

.dark .fl-contacts-view .min-w-\[394px\].max-w-\[394px\] p.dark\:text-white {
    color: #94a3b8 !important;
}

/* ── DARK MODE — Contacts ────────────────────────────────── */
.dark .fl-contacts-page-header .text-xl.font-bold {
    color: #f1f5f9 !important;
}

/* =========================================================
   FASE 6 — Mail & Activities
   CSS-only (sem Blade overrides): seletores estruturais
   cobrem módulos de 700+ linhas sem risco de manutenção.
   ========================================================= */

/* ── Shared: header bar de qualquer módulo sem fl-* class ──
   Selector: descendente de fl-main-content dentro de flex-col,
   sendo filho direto do container. Cobre mail + activities.
   ──────────────────────────────────────────────────────── */
.fl-main-content .flex.flex-col.gap-4 > .flex.items-center.justify-between.rounded-lg.border.bg-white.px-4.py-2 {
    border-color: #eef0f4 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 0.875rem 1.25rem !important;
}

.dark .fl-main-content .flex.flex-col.gap-4 > .flex.items-center.justify-between.rounded-lg.border.bg-white.px-4.py-2 {
    border-color: #1f2937 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Título nos header bars genéricos */
.fl-main-content .flex.flex-col.gap-4 > .flex.items-center.justify-between .text-xl.font-bold {
    letter-spacing: -0.015em !important;
    font-weight: 700 !important;
}

.dark .fl-main-content .flex.flex-col.gap-4 > .flex.items-center.justify-between .text-xl.font-bold {
    color: #f1f5f9 !important;
}

/* ── Mail: Indicador de não lido → brand-color ───────────── */
.fl-main-content .bg-sky-600 {
    background-color: var(--brand-color, #0E90D9) !important;
}

/* ── Mail: Linha da lista — hover sutil ──────────────────── */
.fl-main-content .cursor-pointer.border-b.hover\:bg-gray-50:hover {
    background-color: #f8faff !important;
}

.dark .fl-main-content .cursor-pointer.border-b.hover\:bg-gray-50:hover {
    background-color: #111827 !important;
}

/* ── Activities: Calendar container ──────────────────────── */
.vuecal {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
}

.vuecal__cell--today .vuecal__cell-date {
    color: var(--brand-color, #0E90D9) !important;
    font-weight: 600 !important;
}

.vuecal__arrow,
.vuecal__view-btn.vuecal__view-btn--active {
    color: var(--brand-color, #0E90D9) !important;
}

/* ── DARK MODE — Mail & Activities ──────────────────────── */
.dark .vuecal {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

.dark .vuecal__cell--today .vuecal__cell-date {
    color: var(--brand-color, #0E90D9) !important;
}

/* =========================================================
   FASE 7 — Settings
   Hub principal · Cards de grupo · Itens do menu
   ========================================================= */

/* ── Settings: Page title ────────────────────────────────── */
.fl-settings-header .text-xl.font-bold {
    font-size: 1.35rem !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.dark .fl-settings-header .text-xl.font-bold {
    color: #f1f5f9 !important;
}

/* Section group label */
.fl-settings-index > div > .grid.gap-1 p.font-semibold {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
}

.dark .fl-settings-index > div > .grid.gap-1 p.font-semibold {
    color: #94a3b8 !important;
}

/* Section group description */
.fl-settings-index > div > .grid.gap-1 p:not(.font-semibold) {
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

/* ── Settings: Cards (group containers) ──────────────────── */
.fl-settings-card {
    border-radius: 0.875rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 1.25rem !important;
    gap: 0.75rem 2rem !important;
}

.dark .fl-settings-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ── Settings: Individual menu items ─────────────────────── */
.fl-settings-item {
    border-radius: 0.75rem !important;
    padding: 0.625rem 0.75rem !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.fl-settings-item:hover {
    background-color: #f0f7ff !important;
}

.dark .fl-settings-item:hover {
    background-color: rgba(14, 144, 217, 0.08) !important;
}

/* Item title */
.fl-settings-item .text-base.font-semibold {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.fl-settings-item:hover .text-base.font-semibold {
    color: var(--brand-color, #0E90D9) !important;
}

/* ── Settings: Icon containers ───────────────────────────── */
.fl-settings-icon {
    background-color: #f0f7ff !important;
    border-radius: 0.625rem !important;
    transition: background-color 0.15s ease !important;
}

.fl-settings-icon i {
    color: var(--brand-color, #0E90D9) !important;
}

.fl-settings-icon svg {
    stroke: var(--brand-color, #0E90D9) !important;
    color: var(--brand-color, #0E90D9) !important;
}

.dark .fl-settings-icon {
    background-color: rgba(14, 144, 217, 0.12) !important;
}

/* ── Settings sub-pages: Header bars ───────────────────────
   A maioria das sub-páginas de settings (users, pipelines,
   roles) herda o seletor global da Fase 6.
   ──────────────────────────────────────────────────────── */

/* =========================================================
   FASE 9 — Configuration & Polish
   Error pages · Account edit · Global link colors · Polish
   ========================================================= */

/* ── Error page: links → brand-color ────────────────────── */
.text-blue-600 {
    color: var(--brand-color, #0E90D9) !important;
}

/* Error page: error code number */
.text-\[38px\].font-bold {
    font-size: 3.5rem !important;
    letter-spacing: -0.04em !important;
    background: linear-gradient(135deg, var(--brand-color, #0E90D9) 0%, #6366f1 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.dark .text-\[38px\].font-bold {
    background: linear-gradient(135deg, var(--brand-color, #0E90D9) 0%, #818cf8 100%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* ── Account Edit: form card ─────────────────────────────── */
/* Covered by global Fase 6 selector for header bars */

/* ── Global Polish: focus rings ──────────────────────────── */
*:focus-visible {
    outline-color: var(--brand-color, #0E90D9) !important;
    outline-offset: 2px !important;
}

/* ── Global Polish: selection color ──────────────────────── */
::selection {
    background-color: rgba(14, 144, 217, 0.15) !important;
    color: inherit !important;
}

/* ── Global Polish: smooth scrolling ────────────────────── */
html {
    scroll-behavior: smooth !important;
}

/* ── Global Polish: image rendering ─────────────────────── */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* ── DARK MODE — Phase 9 ─────────────────────────────────── */
.dark .text-blue-600 {
    color: #60b3e8 !important;
}

/* =========================================================
   FASE META — Meta Integration Dashboard
   fl-meta-* prefix · Zero-Touch Core
   ========================================================= */

/* ── KPI Cards ──────────────────────────────────────────── */
.fl-meta-kpi-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    transition: box-shadow 0.15s ease !important;
}

.fl-meta-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
}

.dark .fl-meta-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.30) !important;
}

/* ── KPI Icon — brand variant ───────────────────────────── */
.fl-meta-kpi-icon--brand {
    background-color: rgba(14, 144, 217, 0.10) !important;
    color: var(--brand-color, #0E90D9) !important;
}

.dark .fl-meta-kpi-icon--brand {
    background-color: rgba(14, 144, 217, 0.15) !important;
    color: var(--brand-color, #0E90D9) !important;
}

/* ── Stat Cards — left-border accent ───────────────────── */
.fl-meta-stat-card {
    border-left: 3px solid var(--brand-color, #0E90D9) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    transition: box-shadow 0.15s ease !important;
}

.fl-meta-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
}

.dark .fl-meta-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.30) !important;
}

/* ── Chart Card ─────────────────────────────────────────── */
.fl-meta-chart-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

.fl-meta-chart-badge {
    background-color: rgba(14, 144, 217, 0.10) !important;
    color: var(--brand-color, #0E90D9) !important;
}

.dark .fl-meta-chart-badge {
    background-color: rgba(14, 144, 217, 0.15) !important;
}

/* ── Tables ─────────────────────────────────────────────── */
.fl-meta-table-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

.fl-meta-table thead tr {
    background-color: #f8fafc !important;
}

.dark .fl-meta-table thead tr {
    background-color: rgba(255,255,255,0.04) !important;
}

.fl-meta-table th {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #64748b !important;
    text-align: left !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.dark .fl-meta-table th {
    color: #94a3b8 !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
}

.fl-meta-table td {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.8125rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.dark .fl-meta-table td {
    border-bottom-color: rgba(255,255,255,0.04) !important;
}

.fl-meta-table tbody tr:hover td {
    background-color: rgba(14, 144, 217, 0.04) !important;
}

.dark .fl-meta-table tbody tr:hover td {
    background-color: rgba(14, 144, 217, 0.06) !important;
}

.fl-meta-table tbody tr:last-child td {
    border-bottom: none !important;
}

.fl-meta-table-link {
    color: var(--brand-color, #0E90D9) !important;
    font-size: 0.8125rem !important;
    transition: opacity 0.1s ease !important;
}

.fl-meta-table-link:hover {
    opacity: 0.75 !important;
}

/* ── Empty State ────────────────────────────────────────── */
.fl-meta-empty-icon {
    background-color: rgba(14, 144, 217, 0.08) !important;
    color: var(--brand-color, #0E90D9) !important;
}

.dark .fl-meta-empty-icon {
    background-color: rgba(14, 144, 217, 0.12) !important;
}

/* ── Campaign Badges ────────────────────────────────────── */
.fl-meta-badge {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 9999px !important;
    padding: 0.2rem 0.625rem !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.fl-meta-badge--active {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}

.dark .fl-meta-badge--active {
    background-color: rgba(21,128,61,0.2) !important;
    color: #86efac !important;
}

.fl-meta-badge--paused {
    background-color: #fef9c3 !important;
    color: #a16207 !important;
}

.dark .fl-meta-badge--paused {
    background-color: rgba(161,98,7,0.2) !important;
    color: #fde047 !important;
}

.fl-meta-badge--archived,
.fl-meta-badge--default {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

.dark .fl-meta-badge--archived,
.dark .fl-meta-badge--default {
    background-color: rgba(255,255,255,0.06) !important;
    color: #94a3b8 !important;
}

/* ═══════════════════════════════════════════════════════════════
   User Dropdown — fl-user-* Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Avatar Button (trigger) ─────────────────────────────────── */
.fl-user-avatar-btn {
    display: flex !important;
    height: 2.25rem !important;
    width: 2.25rem !important;
    cursor: pointer !important;
    overflow: hidden !important;
    border-radius: 9999px !important;
    border: none !important;
    transition: opacity 0.15s, ring 0.15s !important;
    padding: 0 !important;
}

.fl-user-avatar-btn:hover {
    opacity: 0.85 !important;
}

.fl-user-avatar-initials {
    align-items: center !important;
    justify-content: center !important;
    background: var(--brand-color, #0E90D9) !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

.fl-user-avatar-placeholder {
    align-items: center !important;
    justify-content: center !important;
    background: #9ca3af !important;
    color: #ffffff !important;
}

/* ── Dropdown Header (user card) ─────────────────────────────── */
.fl-user-dropdown-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 1rem 0.875rem !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.dark .fl-user-dropdown-header {
    background: #1f2937 !important;
    border-bottom-color: #374151 !important;
}

.fl-user-dropdown-avatar {
    flex-shrink: 0 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    background: var(--brand-color, #0E90D9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fl-user-dropdown-avatar--initials {
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
}

/* ── Dropdown Menu Items ─────────────────────────────────────── */
.fl-user-dropdown-menu {
    padding: 0.375rem 0 !important;
}

.fl-user-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: background 0.12s !important;
    text-decoration: none !important;
}

.fl-user-dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.dark .fl-user-dropdown-item {
    color: #d1d5db !important;
}

.dark .fl-user-dropdown-item:hover {
    background: #374151 !important;
    color: #f9fafb !important;
}

.fl-user-dropdown-item--danger {
    color: #dc2626 !important;
}

.fl-user-dropdown-item--danger:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.dark .fl-user-dropdown-item--danger {
    color: #f87171 !important;
}

.dark .fl-user-dropdown-item--danger:hover {
    background: rgba(220,38,38,0.15) !important;
    color: #fca5a5 !important;
}

.fl-user-dropdown-item-icon {
    font-size: 1rem !important;
    color: #9ca3af !important;
    flex-shrink: 0 !important;
}

.fl-user-dropdown-item:hover .fl-user-dropdown-item-icon {
    color: #6b7280 !important;
}

.fl-user-dropdown-item--danger .fl-user-dropdown-item-icon,
.fl-user-dropdown-item--danger:hover .fl-user-dropdown-item-icon {
    color: currentColor !important;
}

/* ── Dropdown Footer (version) ───────────────────────────────── */
.fl-user-dropdown-footer {
    padding: 0.5rem 1rem !important;
    font-size: 0.6875rem !important;
    color: #9ca3af !important;
    border-top: 1px solid #f1f5f9 !important;
}

.dark .fl-user-dropdown-footer {
    color: #6b7280 !important;
    border-top-color: #374151 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Profile Page — fl-profile-* Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Profile Hero Card ───────────────────────────────────────── */
.fl-profile-hero {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    padding: 1.5rem !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.dark .fl-profile-hero {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

.fl-profile-hero-avatar {
    flex-shrink: 0 !important;
    width: 5rem !important;
    height: 5rem !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    background: var(--brand-color, #0E90D9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 0 4px rgba(14,144,217,0.12) !important;
}

.fl-profile-hero-initials {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
}

.fl-profile-hero-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    min-width: 0 !important;
}

.fl-profile-hero-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.dark .fl-profile-hero-name {
    color: #f9fafb !important;
}

.fl-profile-hero-email {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

.dark .fl-profile-hero-email {
    color: #9ca3af !important;
}

.fl-profile-hero-role {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.2rem 0.625rem !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: rgba(14,144,217,0.1) !important;
    color: var(--brand-color, #0E90D9) !important;
    margin-top: 0.25rem !important;
    width: fit-content !important;
}

.dark .fl-profile-hero-role {
    background: rgba(14,144,217,0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Activities Calendar — fl-cal-* Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Calendar Wrapper ─────────────────────────────────────────── */
.fl-cal-wrapper {
    position: relative;
}

/* ── View Toggle Buttons ─────────────────────────────────────── */
.fl-cal-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
    background: transparent !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.fl-cal-toggle-btn:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.fl-cal-toggle-btn--active {
    background: var(--brand-color, #0E90D9) !important;
    color: #ffffff !important;
    border-color: var(--brand-color, #0E90D9) !important;
}

.dark .fl-cal-toggle-btn {
    border-color: #374151 !important;
    color: #9ca3af !important;
}

.dark .fl-cal-toggle-btn:hover {
    background: #1f2937 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

/* ── Event Pills ─────────────────────────────────────────────── */
.fl-cal-event-inner {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.2rem 0.375rem;
    overflow: hidden;
}

.fl-cal-event-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.fl-cal-event-time {
    font-size: 0.65rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

/* ── VueCal Modern Overrides ─────────────────────────────────── */
.vuecal {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    font-family: inherit;
}

.dark .vuecal {
    border-color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
}

.vuecal__header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
}

.dark .vuecal__header {
    background: #111827;
    border-bottom-color: #374151;
}

.vuecal__title-bar {
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    padding: 0.5rem 1rem;
}

.dark .vuecal__title-bar {
    color: #f9fafb;
}

.vuecal__arrow {
    background: transparent;
    border-radius: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    color: #6b7280;
}

.vuecal__arrow:hover {
    background: #f3f4f6;
    color: #111827;
}

.dark .vuecal__arrow:hover {
    background: #1f2937;
    color: #f9fafb;
}

.vuecal__view-btn {
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s;
}

.vuecal__view-btn--active,
.vuecal__view-btn:hover {
    background: var(--brand-color, #0E90D9);
    color: #ffffff !important;
}

.vuecal__weekdays-headings {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.dark .vuecal__weekdays-headings {
    background: #1f2937;
    border-bottom-color: #374151;
    color: #9ca3af;
}

.vuecal__cell {
    border-color: #f1f5f9;
    transition: background 0.1s;
}

.dark .vuecal__cell {
    border-color: #1f2937;
}

.vuecal__cell--today {
    background: rgba(14, 144, 217, 0.05) !important;
}

.dark .vuecal__cell--today {
    background: rgba(14, 144, 217, 0.08) !important;
}

.vuecal__cell--selected {
    background: rgba(14, 144, 217, 0.08) !important;
}

.dark .vuecal__cell--selected {
    background: rgba(14, 144, 217, 0.12) !important;
}

.vuecal__event {
    border-radius: 0.375rem !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.15s, transform 0.15s !important;
    overflow: hidden !important;
}

.vuecal__event:hover {
    opacity: 0.9 !important;
    transform: scale(1.01) !important;
}

.vuecal__event.done {
    opacity: 0.55 !important;
}

.vuecal__time-cell {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}

.dark .vuecal__time-cell {
    color: #6b7280;
}

/* ── Modal Backdrop ──────────────────────────────────────────── */
.fl-cal-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(2px) !important;
}

/* ── Modal Container ─────────────────────────────────────────── */
.fl-cal-modal {
    background: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 28rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.dark .fl-cal-modal {
    background: #1f2937 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* ── Modal Header ────────────────────────────────────────────── */
.fl-cal-modal-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 1.25rem 1.25rem 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.dark .fl-cal-modal-header {
    border-bottom-color: #374151 !important;
}

.fl-cal-modal-icon {
    flex-shrink: 0 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.625rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}

.fl-cal-modal-icon svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
}

.fl-cal-modal-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
    margin: 0 0 0.3rem !important;
}

.dark .fl-cal-modal-title {
    color: #f9fafb !important;
}

.fl-cal-modal-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 9999px !important;
}

.fl-cal-modal-status--done {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.dark .fl-cal-modal-status--done {
    background: rgba(21,128,61,0.2) !important;
    color: #86efac !important;
}

.fl-cal-modal-status--pending {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

.dark .fl-cal-modal-status--pending {
    background: rgba(180,83,9,0.2) !important;
    color: #fcd34d !important;
}

.fl-cal-status-dot {
    width: 0.4375rem !important;
    height: 0.4375rem !important;
    border-radius: 50% !important;
    background: currentColor !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.fl-cal-modal-close {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    background: transparent !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.fl-cal-modal-close:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.dark .fl-cal-modal-close:hover {
    background: #374151 !important;
    color: #f9fafb !important;
}

/* ── Modal Body ──────────────────────────────────────────────── */
.fl-cal-modal-body {
    padding: 1rem 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    flex: 1 !important;
}

.fl-cal-modal-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
}

.fl-cal-modal-row-icon {
    flex-shrink: 0 !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.5rem !important;
    background: #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6b7280 !important;
    margin-top: 0.1rem !important;
}

.dark .fl-cal-modal-row-icon {
    background: #374151 !important;
    color: #9ca3af !important;
}

.fl-cal-modal-row-label {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #9ca3af !important;
    margin: 0 0 0.2rem !important;
}

.dark .fl-cal-modal-row-label {
    color: #6b7280 !important;
}

.fl-cal-modal-row-value {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 0 !important;
}

.dark .fl-cal-modal-row-value {
    color: #d1d5db !important;
}

/* ── Modal Footer ────────────────────────────────────────────── */
.fl-cal-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f9fafb !important;
    border-radius: 0 0 1rem 1rem !important;
}

.dark .fl-cal-modal-footer {
    border-top-color: #374151 !important;
    background: #111827 !important;
}

/* ── Action Buttons ──────────────────────────────────────────── */
.fl-cal-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.15s !important;
    text-decoration: none !important;
}

.fl-cal-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.fl-cal-btn--success {
    background: #16a34a !important;
    color: #ffffff !important;
}

.fl-cal-btn--success:hover:not(:disabled) {
    background: #15803d !important;
}

.dark .fl-cal-btn--success {
    background: #166534 !important;
    color: #bbf7d0 !important;
}

.fl-cal-btn--edit {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.fl-cal-btn--edit:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.dark .fl-cal-btn--edit {
    background: #374151 !important;
    color: #e5e7eb !important;
}

.dark .fl-cal-btn--edit:hover {
    background: #4b5563 !important;
    color: #f9fafb !important;
}

.fl-cal-btn--delete {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.fl-cal-btn--delete:hover:not(:disabled) {
    background: #fecaca !important;
    color: #991b1b !important;
}

.dark .fl-cal-btn--delete {
    background: rgba(185,28,28,0.2) !important;
    color: #fca5a5 !important;
}

.dark .fl-cal-btn--delete:hover:not(:disabled) {
    background: rgba(185,28,28,0.3) !important;
    color: #fecaca !important;
}

/* ── Done Badge ──────────────────────────────────────────────── */
.fl-cal-badge-done {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    background: #dcfce7 !important;
    color: #15803d !important;
}

.dark .fl-cal-badge-done {
    background: rgba(21,128,61,0.2) !important;
    color: #86efac !important;
}

/* ── Vue Transition ──────────────────────────────────────────── */
.fl-cal-fade-enter-active,
.fl-cal-fade-leave-active {
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.fl-cal-fade-enter-from,
.fl-cal-fade-leave-to {
    opacity: 0 !important;
    transform: scale(0.97) !important;
}

/* ════════════════════════════════════════════════════════════════
   PROFILE CARD — identity header inside the form card
   ════════════════════════════════════════════════════════════════ */

/* ── Card header band ────────────────────────────────────────── */
.fl-profile-card-header {
    position: relative;
    padding: 1.5rem;
    background: var(--brand-color, #0E90D9);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.fl-profile-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(0,0,0,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Photo upload (v-media-images inside header) ─────────────── */
.fl-profile-card-photo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Remove margin injected by control-group wrapper */
.fl-profile-card-photo .mb-4 {
    margin-bottom: 0 !important;
}

/* Upload label (no photo) — adapt colors for colored band, keep native dimensions */
.fl-profile-card-photo label {
    border-color: rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

.fl-profile-card-photo label .icon-image,
.fl-profile-card-photo label p,
.fl-profile-card-photo label span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Image item (has photo) — white border on band */
.fl-profile-card-photo .group {
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Actions overlay → dark background, icons white */
.fl-profile-card-photo .group > div {
    background: rgba(0, 0, 0, 0.55) !important;
}

.fl-profile-card-photo .group > div span,
.fl-profile-card-photo .group > div > div > label {
    color: #fff !important;
}

/* ── Identity text ───────────────────────────────────────────── */
.fl-profile-card-identity {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.fl-profile-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}

.fl-profile-card-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
}

.fl-profile-card-role {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
    width: fit-content;
}

