.board {
    display: flex;
    gap: var(--gap-md, 16px);
    overflow-x: auto;
    padding: var(--padding-sm, 8px) 0 var(--padding-md, 16px);
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.boardDefault {
    /* mantém aparência legada */
}

.boardCrmShell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.boardTopScroll {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 12px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.boardTopScrollInner {
    height: 1px;
}

.boardCrm {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: var(--gap-md, 12px);
    padding: 0 0 var(--padding-lg, 20px);
    box-sizing: border-box;
}

.column {
    min-width: 300px;
    max-width: 300px;
    background-color: var(--surface-muted, #f5f5f5);
    border-radius: var(--radius-lg, 8px);
    padding: var(--padding-md, 16px);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.columnDefault {
    /* valores legados preservados via composição */
}

.columnCrm {
    /* Distribui etapas pela largura do board (≥100%); mín. 340px → scroll horizontal se exceder. */
    flex: 1 0 340px;
    min-width: 340px;
    max-width: none;
    width: auto;
    background: var(--surface, #fff);
    border: 1px solid var(--border-subtle, #eef0f3);
    border-radius: var(--radius-xl, 12px);
    padding: 0;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
    display: flex;
    flex-direction: column;
    min-height: 120px;
    overflow: hidden;

    &.columnOver {
        background: rgba(24, 144, 255, 0.04);
        border-color: rgba(24, 144, 255, 0.35);
        box-shadow: 0 0 0 1px rgba(24, 144, 255, 0.12);
    }
}

.columnHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-sm, 8px);
    margin-bottom: var(--margin-md, 16px);
}

.columnHeaderCrm {
    margin-bottom: 0;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-subtle, #eef0f3);
    background: var(--surface, #fff);
}

.columnHeaderLeft {
    display: flex;
    align-items: center;
    gap: var(--gap-sm, 8px);
    min-width: 0;
    flex: 1;
}

.stageDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stageDotDefault {
    width: 12px;
    height: 12px;
}

.columnTitle {
    font-weight: 600;
    color: var(--text-default, var(--text-primary));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.columnSummary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px 10px;
    border-bottom: 1px solid var(--border-subtle, #eef0f3);
    background: var(--surface, #fff);
}

.columnSummaryRow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.columnSummaryLabel {
    font-size: 11px;
    line-height: 1.3;
    flex-shrink: 0;
}

.columnSummaryValue {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.countBadge {
    flex-shrink: 0;
}

.countBadgeDefault {
    /* Tag Ant Design padrão */
}

.countBadgeCrm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
}

.addButton {
    flex-shrink: 0;
}

.columnBody {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm, 8px);
}

.columnBodyCrm {
    gap: 10px;
    padding: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 360px);
}

.emptyState {
    padding: 20px 0;
}

.emptyStateCrm {
    padding: 28px 12px;
    margin: 0;

    :global(.ant-empty-description) {
        font-size: 12px;
        color: var(--text-subtle, var(--text-secondary));
        line-height: 1.45;
        max-width: 220px;
        margin-inline: auto;
    }
}

.loadMoreButton {
    display: block;
    width: 100%;
    flex-shrink: 0;
    margin-top: 8px;
    min-height: 40px;
    padding: 8px 0 !important;
    font-size: 12px !important;
    text-align: center;
}

.loadMoreExhausted {
    display: block;
    flex-shrink: 0;
    margin-top: 6px;
    padding: 4px 0;
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
}

.columnBodyVirtualized {
    overflow: hidden !important;
}

.columnVirtualHost {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.columnBodyVirtualCrm,
.columnBodyVirtualDefault {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.dragGhost {
    border: 2px dashed rgba(24, 144, 255, 0.45);
    border-radius: var(--radius-lg, 8px);
    background: rgba(24, 144, 255, 0.06);
    min-height: 64px;
    box-sizing: border-box;
    pointer-events: none;
}

.dragGhostCrm {
    min-height: 88px;
    border-radius: var(--radius-xl, 12px);
    background: rgba(24, 144, 255, 0.05);
}

@media (min-width: 1440px) {
    .columnBodyCrm {
        max-height: calc(100vh - 340px);
    }
}

@media (max-width: 992px) {
    .columnBodyCrm {
        max-height: calc(100vh - 320px);
    }
}

@media (max-width: 768px) {
    .boardSingleColumn {
        overflow-x: hidden;

        .columnCrm {
            flex: 1 1 auto;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }
    }
}

@media (max-width: 576px) {
    .boardCrm {
        gap: 10px;
        padding-bottom: var(--padding-md, 12px);
    }

    .boardSingleColumn {
        overflow-x: hidden;
        padding-inline: 0;

        .columnCrm {
            flex: 1 1 auto;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }
    }

    .columnBodyCrm {
        max-height: calc(100vh - 300px);
    }
}
