/* ============================================
   pipeline.css — vue tableau du pipeline
   ============================================ */

.pipeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.onglet-tabs {
    display: flex;
    gap: 6px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 4px;
}

.onglet-tab {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.onglet-tab.active {
    background: var(--color-accent);
    color: white;
}

.onglet-count {
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 12px;
}

.onglet-tab.active .onglet-count {
    background: rgba(255,255,255,0.25);
}

/* ----- Barre de recherche ----- */
.recherche-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.recherche-bar input[type="text"] {
    max-width: 360px;
}

/* ----- Tableau ----- */
.table-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow-x: auto;
}

.prospects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.prospects-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    color: #999;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.prospects-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.prospects-table tbody tr:hover {
    background: var(--color-bg);
}

.prospects-table tbody tr:last-child td {
    border-bottom: none;
}

.td-date {
    color: #999;
    font-size: 12px;
}

.lead-name {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    display: block;
}

.lead-name:hover {
    color: var(--color-accent);
}

.lead-email {
    font-size: 12px;
    color: #999;
}

.td-phone a {
    color: var(--color-text);
    text-decoration: none;
}

.td-phone a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.td-center {
    text-align: center;
}

.inline-action {
    display: inline-block;
}

.appel-badge {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 999px;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
}

.appel-badge:hover {
    border-color: var(--color-accent);
}

.joint-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    padding: 0;
}

.joint-dot.on {
    background: #22C55E;
    border-color: #22C55E;
}

.statut-select {
    border: none;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-width: 150px;
}

.td-setter {
    font-size: 12px;
}

.tags-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 200px;
}

.tag-chip {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #2B2826;
    white-space: nowrap;
}

.td-rdv {
    font-size: 12px;
    color: var(--color-accent-dark);
}

.th-actions, .td-actions {
    text-align: right;
}

.td-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .prospects-table {
        font-size: 12px;
    }
}
