/* ===============================================
   CUSTOMER CARD COMPONENT
   Customer cards with RFM scoring for wholesale platform
   =============================================== */

.customer-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);  /* 12px */
    box-shadow: none;
    border: 1px solid var(--border-light);
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
}

.customer-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
    border-color: var(--color-primary);
}

.customer-card.interactive {
    cursor: pointer;
}

.customer-card-row-1 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.customer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

.customer-name {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.customer-rfm {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-shrink: 0;
}

.rfm-score {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: white;
    flex-shrink: 0;
}

.rfm-score.score-5 {
    background: #dcfce7;
    color: #15803d;
}

.rfm-score.score-4 {
    background: #bbf7d0;
    color: #166534;
}

.rfm-score.score-3 {
    background: #fde68a;
    color: #92400e;
}

.rfm-score.score-2 {
    background: #fed7aa;
    color: #9a3412;
}

.rfm-score.score-1 {
    background: #fecaca;
    color: #b91c1c;
}

.customer-card-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.customer-segment {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

.customer-metrics {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
    text-align: right;
}

.customer-card-separator {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-sm) 0;
}

.customer-card-row-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.customer-last-order,
.customer-lifetime-value {
    font-size: var(--text-sm);
    color: var(--text-body);
    margin: 0;
}

.customer-last-order {
    flex: 1;
}

.customer-lifetime-value {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* ===============================================
   ALERT COMPONENTS
   =============================================== */

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.alert.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.alert.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-icon {
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--text-sm);
}

.alert-message {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
}