﻿

.crm-kpi-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.crm-kpi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: all .2s ease;
}

    .crm-kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

.crm-kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.crm-kpi-content {
    display: flex;
    flex-direction: column;
}

.crm-kpi-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}

.crm-kpi-value {
    font-size: 42px;
    line-height: 42px;
    font-weight: 700;
    color: #0f172a;
}

.crm-kpi-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    display:none;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.crm-title {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
}

.crm-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 15px;
}

.crm-btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
}

    .crm-btn-primary:hover {
        background: #1d4ed8;
    }

.crm-kpi-blue {
    background: #e8f0ff;
    color: #2563eb;
}

.crm-kpi-green {
    background: #dcfce7;
    color: #16a34a;
}

.crm-kpi-orange {
    background: #fef3c7;
    color: #d97706;
}

.crm-kpi-purple {
    background: #ede9fe;
    color: #7c3aed;
}
.crm-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .crm-btn-create .oi {
        font-size: 15px;
    }

.crm-grid-container {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    overflow: auto;
    max-height: calc(100vh - 440px);
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
}

    .crm-table th {
        position: sticky;
        top: 0;
        z-index: 20;
        background: #f8fafc;
        color: #1e3a8a;
        font-weight: 600;
        padding: 15px;
        text-align: center;
        border-right: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .crm-table td {
        padding: 12px;
        border-right: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

        .crm-table th:last-child,
        .crm-table td:last-child {
            border-right: none;
        }
.crm-sticky-col {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
    min-width: 320px;
    color: black;
}

.crm-table thead .crm-sticky-col {
    z-index: 30;
    background: #f8fafc;
}
.crm-table th{
    background-color:lightgray !important;
}
.highlighted {
    background-color: yellow !important;
}
@media (max-width: 1200px) {

    .crm-kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .crm-kpi-container {
        grid-template-columns: 1fr;
    }
}