/* infiHRM Kanban Pipeline — standalone (works even if crm-theme.css is outdated on server) */
body.crm-theme .crm-kanban-board-wrap {
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

body.crm-theme .crm-kanban-board {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 420px;
    align-items: flex-start;
}

body.crm-theme .crm-kanban-loading,
body.crm-theme .crm-kanban-empty {
    width: 100%;
    text-align: center;
    padding: 48px 16px;
    color: #8b85a8;
    font-size: 15px;
}

body.crm-theme .crm-kanban-column {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 280px;
    background: #f8f6fc;
    border: 1px solid #e8e4f3;
    border-radius: 12px;
    overflow: hidden;
}

body.crm-theme .crm-kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

body.crm-theme .crm-kanban-column-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.crm-theme .crm-kanban-column-head--0 { background: linear-gradient(135deg, #9333ea, #7c3aed); }
body.crm-theme .crm-kanban-column-head--1 { background: linear-gradient(135deg, #059669, #047857); }
body.crm-theme .crm-kanban-column-head--2 { background: linear-gradient(135deg, #d97706, #b45309); }
body.crm-theme .crm-kanban-column-head--3 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
body.crm-theme .crm-kanban-column-head--4 { background: linear-gradient(135deg, #db2777, #be185d); }
body.crm-theme .crm-kanban-column-head--5 { background: linear-gradient(135deg, #0891b2, #0e7490); }
body.crm-theme .crm-kanban-column-head--6 { background: linear-gradient(135deg, #4f46e5, #4338ca); }
body.crm-theme .crm-kanban-column-head--7 { background: linear-gradient(135deg, #64748b, #475569); }

body.crm-theme .crm-kanban-column-count {
    flex-shrink: 0;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

body.crm-theme .crm-kanban-column-body {
    min-height: 120px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.crm-theme .crm-kanban-card {
    background: #ffffff;
    border: 1px solid #e8e4f3;
    border-radius: 10px;
    padding: 12px;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(30, 27, 75, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.crm-theme .crm-kanban-card:hover {
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.1);
}

body.crm-theme .crm-kanban-card-ghost { opacity: 0.45; }
body.crm-theme .crm-kanban-card-drag { cursor: grabbing; transform: rotate(1deg); }

body.crm-theme .crm-kanban-card--high { border-left: 3px solid #dc2626; }
body.crm-theme .crm-kanban-card--medium { border-left: 3px solid #d97706; }
body.crm-theme .crm-kanban-card--low { border-left: 3px solid #059669; }

body.crm-theme .crm-kanban-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 4px;
}

body.crm-theme .crm-kanban-card-sub {
    font-size: 12px;
    color: #4c4585;
    margin-bottom: 8px;
}

body.crm-theme .crm-kanban-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #8b85a8;
    margin-bottom: 8px;
}

body.crm-theme .crm-kanban-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

body.crm-theme .crm-kanban-card-priority {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f5f0fe;
    color: #9333ea;
}

body.crm-theme .crm-kanban-card-assignee {
    margin-top: 8px;
    font-size: 11px;
    color: #8b85a8;
}

@media (max-width: 767.98px) {
    body.crm-theme .crm-kanban-column {
        flex: 0 0 260px;
        max-width: 260px;
        min-width: 260px;
    }
}
