/* /Components/Kanban/ProspectingRail.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════════════════
   ProspectingRail — Tokens da rampa roxa
   50:  #EEEDFE  |  100: #CECBF6  |  400: #7F77DD
   600: #534AB7  |  800: #3C3489  |  900: #26215C
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper externo — governa a transição de largura ───────────────────── */
.prail-wrapper[b-bahdm3z40g] {
    width: 44px;
    flex-shrink: 0;
    transition: width 200ms ease-out;
    position: relative;
}
.prail-wrapper--expanded[b-bahdm3z40g] {
    width: 300px;
}

/* ── Base do painel ─────────────────────────────────────────────────────── */
.prail[b-bahdm3z40g] {
    background: #EEEDFE;
    border: 0.5px solid #7F77DD;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* ════════════════════════════════════════════════════════════════════════════
   ESTADO RECOLHIDO
   ════════════════════════════════════════════════════════════════════════════ */
.prail--collapsed[b-bahdm3z40g] {
    width: 44px;
    min-height: 160px;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 0;
    gap: 10px;
    cursor: pointer;
    background: #EEEDFE;
    border: 0.5px solid #7F77DD;
    border-radius: 8px;
    font: inherit;
    color: inherit;
    text-align: unset;
    transition: background 150ms ease-out;
}
.prail--collapsed:hover[b-bahdm3z40g]       { background: #CECBF6; }
.prail--collapsed:focus-visible[b-bahdm3z40g] {
    outline: 2px solid #7F77DD;
    outline-offset: 2px;
}

.prail__plus-circle[b-bahdm3z40g] {
    width: 28px;
    height: 28px;
    background: #7F77DD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prail__vertical-label[b-bahdm3z40g] {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #3C3489;
    user-select: none;
}

/* Badge numérico no estado recolhido */
.prail__badge[b-bahdm3z40g] {
    background: #7F77DD;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════════════════
   ESTADO EXPANDIDO
   ════════════════════════════════════════════════════════════════════════════ */
.prail--expanded[b-bahdm3z40g] {
    width: 300px;
    height: 100%;
    padding: 12px;
    gap: 0;
    overflow: visible;
}

/* Fade-in do conteúdo com 50ms delay */
.prail--expanded > *[b-bahdm3z40g] {
    opacity: 0;
    transition: opacity 150ms ease-out 50ms;
}
.prail--content-visible > *[b-bahdm3z40g] { opacity: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.prail__header[b-bahdm3z40g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.prail__title[b-bahdm3z40g] {
    font-size: 13px;
    font-weight: 500;
    color: #3C3489;
}
.prail__collapse-btn[b-bahdm3z40g] {
    width: 18px;
    height: 18px;
    background: #7F77DD;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 150ms;
}
.prail__collapse-btn:hover[b-bahdm3z40g]        { background: #534AB7; }
.prail__collapse-btn:focus-visible[b-bahdm3z40g] {
    outline: 2px solid #3C3489;
    outline-offset: 2px;
}

/* ── Campos genéricos ───────────────────────────────────────────────────── */
.prail__field[b-bahdm3z40g] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.prail__field-label[b-bahdm3z40g] {
    font-size: 11px;
    font-weight: 500;
    color: #534AB7;
}
.prail__select-wrap[b-bahdm3z40g] {
    position: relative;
}
.prail__select-wrap--disabled[b-bahdm3z40g] {
    opacity: 0.5;
}
.prail__select[b-bahdm3z40g] {
    width: 100%;
    font-size: 12px;
    padding: 6px 24px 6px 8px;
    background: white;
    border: 0.5px solid #AFA9EC;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    color: #26215C;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}
.prail__select:focus[b-bahdm3z40g]         { border-color: #7F77DD; }
.prail__select:disabled[b-bahdm3z40g]      { cursor: not-allowed; background: #F5F3FF; }
.prail__chevron[b-bahdm3z40g] {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ── UF + Cidade em 2 colunas ───────────────────────────────────────────── */
.prail__geo-row[b-bahdm3z40g] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
}

/* ── Prévia de resultados ───────────────────────────────────────────────── */
.prail__preview-header[b-bahdm3z40g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-top: 4px;
}
.prail__preview-count[b-bahdm3z40g] {
    font-size: 11px;
    font-weight: 500;
    color: #534AB7;
}

.prail__filter-search[b-bahdm3z40g] {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #26215C;
    background: white;
    border: 0.5px solid #AFA9EC;
    border-radius: 6px;
    font-family: inherit;
}
.prail__filter-search:focus[b-bahdm3z40g] {
    outline: none;
    border-color: #7F77DD;
    box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.12);
}

.prail__filters-list[b-bahdm3z40g] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.prail__filter-group[b-bahdm3z40g] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.prail__filter-divider[b-bahdm3z40g] {
    height: 1px;
    margin: 2px 0;
    background: #D9D6FA;
}

.prail__filter-item[b-bahdm3z40g] {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    background: white;
    border: 0.5px solid #D9D6FA;
    border-radius: 6px;
    cursor: pointer;
    transition: background 120ms ease-out, border-color 120ms ease-out;
}
.prail__filter-item:hover[b-bahdm3z40g] {
    background: #F7F5FF;
    border-color: #BEB8F1;
}
.prail__filter-item--checked[b-bahdm3z40g] {
    background: #F1EFFF;
    border-color: #7F77DD;
}

.prail__filter-checkbox[b-bahdm3z40g] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #7F77DD;
}

.prail__filter-label[b-bahdm3z40g] {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #26215C;
    overflow-wrap: anywhere;
}

/* Lista de leads */
.prail__preview-list[b-bahdm3z40g] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: calc(100vh - 340px);
    overflow-y: auto;
    border: 0.5px solid #AFA9EC;
    border-radius: 6px;
    background: white;
    margin-bottom: 10px;
}
.prail__preview-item[b-bahdm3z40g] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background 100ms;
    border-bottom: 0.5px solid #F0EEFF;
}
.prail__preview-item:last-child[b-bahdm3z40g]    { border-bottom: none; }
.prail__preview-item:hover[b-bahdm3z40g]         { background: #F5F3FF; }
.prail__preview-item--checked[b-bahdm3z40g]      { background: #F5F3FF; }

.prail__preview-checkbox[b-bahdm3z40g] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #7F77DD;
}
.prail__preview-text[b-bahdm3z40g] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.prail__preview-name[b-bahdm3z40g] {
    font-size: 11px;
    font-weight: 500;
    color: #26215C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prail__preview-cnpj[b-bahdm3z40g] {
    font-size: 10px;
    color: #7F77DD;
    white-space: nowrap;
}

/* ── Footer sticky ──────────────────────────────────────────────────────── */
.prail__footer[b-bahdm3z40g] {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    border-top: 0.5px solid #CECBF6;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: #EEEDFE;
    flex-shrink: 0;
}

/* Botão primário "Mover X leads para a fila →" */
.prail__move-btn[b-bahdm3z40g] {
    flex: 1;
    background: #534AB7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: background 150ms;
    white-space: nowrap;
}
.prail__move-btn:hover:not(:disabled)[b-bahdm3z40g] { background: #3C3489; }
.prail__move-btn:disabled[b-bahdm3z40g]             { opacity: 0.6; cursor: not-allowed; }

/* Botão "Buscar" — muda de primário para secundário quando a prévia já está carregada */
.prail__search-btn[b-bahdm3z40g] {
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: inherit;
    transition: background 150ms;
}
.prail__search-btn--primary[b-bahdm3z40g] {
    flex: 1;
    background: #534AB7;
    color: white;
    border: none;
}
.prail__search-btn--primary:hover:not(:disabled)[b-bahdm3z40g] { background: #3C3489; }

.prail__search-btn--secondary[b-bahdm3z40g] {
    background: white;
    color: #534AB7;
    border: 0.5px solid #AFA9EC;
    white-space: nowrap;
}
.prail__search-btn--secondary:hover:not(:disabled)[b-bahdm3z40g] { background: #F5F3FF; }
.prail__search-btn:disabled[b-bahdm3z40g] { opacity: 0.6; cursor: not-allowed; }

/* ── Estados informativos ───────────────────────────────────────────────── */
.prail__state-msg[b-bahdm3z40g] {
    padding: 16px 8px;
    font-size: 12px;
    color: #534AB7;
    text-align: center;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.prail__state-msg--error[b-bahdm3z40g] { color: #C0392B; }

/* ── Spinners ───────────────────────────────────────────────────────────── */
.prail__spinner[b-bahdm3z40g] {
    width: 18px;
    height: 18px;
    border: 2px solid #CECBF6;
    border-top-color: #7F77DD;
    border-radius: 50%;
    animation: prail-spin-b-bahdm3z40g 0.7s linear infinite;
}
.prail__spinner--btn[b-bahdm3z40g] {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: prail-spin-b-bahdm3z40g 0.7s linear infinite;
}
@keyframes prail-spin-b-bahdm3z40g { to { transform: rotate(360deg); } }

/* ── Link buttons ───────────────────────────────────────────────────────── */
.prail__link-btn[b-bahdm3z40g] {
    background: none;
    border: none;
    color: #534AB7;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font-family: inherit;
}
.prail__link-btn:hover[b-bahdm3z40g]        { color: #3C3489; text-decoration: underline; }
.prail__link-btn--right[b-bahdm3z40g]       { margin-left: auto; }

/* ── Acessibilidade ─────────────────────────────────────────────────────── */
.sr-only[b-bahdm3z40g] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/* /Components/Pages/KanbanGestor.razor.rz.scp.css */
.kanban-page[b-vhzkebzfr6] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #F5F7FA;
    min-height: 100%;
}

.kanban-toolbar[b-vhzkebzfr6] {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #EEF0F3;
    border-radius: 12px;
    padding: 16px 20px;
}

.kanban-toolbar__title h1[b-vhzkebzfr6] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
}

.kanban-toolbar__subtitle[b-vhzkebzfr6] {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #64748B;
}

.kanban-toolbar__updated[b-vhzkebzfr6] {
    font-size: 12px;
    color: #94A3B8;
    margin-left: 8px;
}

.kanban-filters[b-vhzkebzfr6] {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kanban-toolbar__actions[b-vhzkebzfr6] {
    display: flex;
    gap: 8px;
}

.input[b-vhzkebzfr6] {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13px;
    min-width: 160px;
    background: #fff;
    font-family: inherit;
}

.input--xs[b-vhzkebzfr6] {
    min-width: 48px;
    width: 56px;
    height: 28px;
    font-size: 12px;
    padding: 0 4px;
}

.input:focus[b-vhzkebzfr6] {
    outline: 2px solid #2563EB33;
    border-color: #2563EB;
}

.btn[b-vhzkebzfr6] {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    font-family: inherit;
}

.btn--primary[b-vhzkebzfr6] {
    background: #2563EB;
    color: #fff;
}

.btn--primary:hover:not(:disabled)[b-vhzkebzfr6] {
    background: #1D4ED8;
}

.btn--ghost[b-vhzkebzfr6] {
    background: #fff;
    border-color: #E2E8F0;
    color: #334155;
}

.btn--ghost:hover:not(:disabled)[b-vhzkebzfr6] {
    background: #F1F5F9;
}

.btn--xs[b-vhzkebzfr6] {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.btn:disabled[b-vhzkebzfr6] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wrapper externo: rail + grade de colunas lado a lado */
.kanban-board-wrapper[b-vhzkebzfr6] {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    align-items: flex-start;
}

/* Grade das colunas (sem scroll próprio — o wrapper cuida disso) */
.kanban-board[b-vhzkebzfr6] {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.kcol[b-vhzkebzfr6] {
    flex: 0 0 320px;
    background: #F8FAFC;
    border: 1px solid #EEF0F3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    will-change: background-color;
}

.kcol--drag-over[b-vhzkebzfr6] {
    background: #EFF6FF;
    box-shadow: inset 0 0 0 2px #2563EB;
}

/* Destaque da 1ª coluna quando o trilho de prospecção está expandido */
.kcol--destination[b-vhzkebzfr6] {
    border: 2px solid #7F77DD;
    position: relative;
    transition: border-color 200ms ease-out;
}

.kcol--destination[b-vhzkebzfr6]::before {
    content: 'DESTINO';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #7F77DD;
    color: white;
    font-size: 9px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    z-index: 1;
}

.kcol__header[b-vhzkebzfr6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #EEF0F3;
}

.kcol__title[b-vhzkebzfr6] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kcol__dot[b-vhzkebzfr6] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.kcol__name[b-vhzkebzfr6] {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.kcol__count[b-vhzkebzfr6] {
    background: #fff;
    font-size: 12px;
    color: #64748B;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #EEF0F3;
}

.iconbtn[b-vhzkebzfr6] {
    background: none;
    border: 0;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748B;
    border-radius: 4px;
}

.iconbtn:hover:not(:disabled)[b-vhzkebzfr6] {
    background: #E2E8F0;
}

.kcol__pager[b-vhzkebzfr6] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #EEF0F3;
    background: #fff;
    font-size: 12px;
    color: #64748B;
}

.kcol__range[b-vhzkebzfr6] {
    flex: 1;
    color: #94A3B8;
}

.kcol__nav[b-vhzkebzfr6] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kcol__page[b-vhzkebzfr6] {
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.kcol__body[b-vhzkebzfr6] {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcard[b-vhzkebzfr6] {
    background: #fff;
    border: 1px solid #EEF0F3;
    border-radius: 10px;
    padding: 12px;
    cursor: grab;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.lcard:hover[b-vhzkebzfr6] {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.lcard:active[b-vhzkebzfr6] {
    cursor: grabbing;
    opacity: 0.7;
    transform: translateY(0) scale(0.98) translateZ(0);
}

.lcard--dragging[b-vhzkebzfr6] {
    opacity: 0.3;
    pointer-events: none;
}

.lcard__head[b-vhzkebzfr6] {
    margin-bottom: 8px;
}

.lcard__name[b-vhzkebzfr6] {
    font-weight: 600;
    font-size: 13px;
    color: #1E293B;
}

.lcard__cnpj[b-vhzkebzfr6] {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 2px;
}

.lcard__kv[b-vhzkebzfr6] {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
}

.lcard__k[b-vhzkebzfr6] {
    color: #94A3B8;
}

.lcard__v[b-vhzkebzfr6] {
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lcard__tags[b-vhzkebzfr6] {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tag[b-vhzkebzfr6] {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.tag--warn[b-vhzkebzfr6] {
    background: #FEF3C7;
    color: #92400E;
}

.tag--danger[b-vhzkebzfr6] {
    background: #FEE2E2;
    color: #991B1B;
}

.skeleton[b-vhzkebzfr6] {
    background: linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);
    background-size: 200% 100%;
    animation: shimmer-b-vhzkebzfr6 1.2s infinite;
    padding: 14px;
    border-radius: 8px;
    color: #94A3B8;
    font-size: 12px;
}

@keyframes shimmer-b-vhzkebzfr6 {
    0% { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}

.emptybox[b-vhzkebzfr6] {
    font-size: 12px;
    color: #94A3B8;
    padding: 14px;
    text-align: center;
    border: 1px dashed #E2E8F0;
    border-radius: 8px;
}

/* Placeholder especial quando o trilho está expandido e a 1ª coluna está vazia */
.emptybox--destination[b-vhzkebzfr6] {
    background: #EEEDFE;
    border: 1px dashed #7F77DD;
    color: #3C3489;
    font-weight: 500;
}

.errorbox[b-vhzkebzfr6] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    border-radius: 8px;
    font-size: 12px;
}

.errorbox button[b-vhzkebzfr6] {
    align-self: flex-start;
}
