/*
 * Vue Kanban du CRM.
 *
 * Le CSS compilé de Filament ne contient que ses propres classes : tout ce
 * qui est propre au Kanban vit ici. Le mode sombre est porté par la classe
 * `.dark` que Filament pose sur <html>.
 */

.crm-kanban-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.crm-kanban-filters > * {
    min-width: 14rem;
}

.crm-kanban {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.crm-col {
    flex: 0 0 17rem;
    min-width: 17rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.5rem;
}

.dark .crm-col {
    background: rgba(255, 255, 255, 0.05);
}

.crm-col__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.crm-col__count {
    min-width: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 9999px;
    text-align: center;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.08);
}

.dark .crm-col__count {
    background: rgba(255, 255, 255, 0.12);
}

/* Zone de dépôt : garde une hauteur même vide, sinon on ne peut pas y déposer. */
.crm-col__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 6rem;
}

.crm-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    cursor: grab;
}

.dark .crm-card {
    background: #1f1f23;
    border-color: rgba(255, 255, 255, 0.1);
}

.crm-card:active {
    cursor: grabbing;
}

.crm-card__top {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.crm-card__name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
}

.crm-card__name:hover {
    text-decoration: underline;
}

.crm-card__meta {
    font-size: 0.75rem;
    opacity: 0.65;
}

.crm-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.crm-card__age--stale {
    color: #dc2626;
    font-weight: 700;
}

.crm-card__advance {
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}

/* Pendant le glissement. */
.crm-card--ghost {
    opacity: 0.4;
}

.crm-kanban-empty {
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
}

.crm-kanban-more {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem;
    font-size: 0.75rem;
    cursor: pointer;
    background: none;
    border: 0;
    text-decoration: underline;
    color: inherit;
}

.crm-kanban-footer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
