/* ============================================
   CRM - ClinicaSysExpert
   ============================================ */

.pipeline-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pipeline-stage {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pipeline-stage-header {
    padding: 12px 16px;
    border-bottom: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.pipeline-stage-header .stage-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--secondary);
}

.pipeline-stage-header .stage-count {
    background: var(--gray-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-dark);
}

.pipeline-stage-body {
    padding: 12px 16px;
    min-height: 80px;
}

.pipeline-stage-body .stage-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
}

.pipeline-stage-body .stage-lead {
    font-size: 13px;
    color: var(--gray-dark);
    padding: 4px 0;
    border-bottom: 1px solid #f0f2f5;
}

.pipeline-stage-body .stage-empty {
    color: var(--gray);
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
}

.pipeline-stage-body .stage-more {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .pipeline-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pipeline-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pipeline-container {
        grid-template-columns: 1fr;
    }
}