/* ===== CUSTOMER MANAGEMENT STYLES ===== */
/* Customer list and cards */

.customer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.customer-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.customer-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.customer-list .list-group-item {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.customer-list .customer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.customer-list .customer-logo i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.customer-list .customer-info {
    flex: 1;
}

/* Customer status indicators */
.customer-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.customer-status.active {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.customer-status.inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Customer grid layout */
.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.customer-grid-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.customer-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.customer-grid-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.customer-grid-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.customer-grid-info h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.customer-grid-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.customer-grid-details {
    margin-bottom: 1rem;
}

.customer-grid-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.customer-grid-detail i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--gray-400);
}

.customer-grid-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.customer-grid-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Customer filters */
.customer-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    color: var(--text-color);
    min-width: 100px;
}

/* Responsive design for customers */
@media (max-width: 768px) {
    .customers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .customer-grid-card {
        padding: 1rem;
    }
    
    .customer-grid-header {
        flex-direction: column;
        text-align: center;
    }
    
    .customer-grid-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .customer-grid-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .customer-grid-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-label {
        min-width: auto;
    }
    
    /* Mobile header adjustments */
    .d-flex.justify-content-between.flex-wrap.mb-4.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between.flex-wrap.mb-4.align-items-center > div:last-child {
        width: 100%;
    }
    
    .d-flex.justify-content-between.flex-wrap.mb-4.align-items-center .btn {
        width: 100%;
    }
    
    /* Mobile search and filters */
    .row.mb-4 .col-md-6:first-child {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    /* Mobile modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body .row .col-md-6 {
        margin-bottom: 1rem;
    }
} 

[id^="admin-only-"] {
    display: none;
} 