/* EF WA CRM - Right Panel Layout */

.ef-wa-crm-main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background-secondary);
    overflow: hidden;
}

.ef-wa-crm-main-panel-header {
    padding: 15px 20px;
    /*background: var(--surface-color); */
    border-bottom: 1px solid #333335;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ef-wa-crm-header-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ef-wa-crm-main-panel-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ef-wa-crm-main-panel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.ef-wa-crm-main-panel-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ef-wa-crm-main-panel-details p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.ef-wa-crm-main-panel-actions {
    display: flex;
    gap: 10px;
}

.ef-wa-crm-header-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ef-wa-crm-main-panel-action {
    padding: 8px;
    background: #1e1e1e;
    border: 1px solod #333;
    border-radius: 5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-wa-crm-main-panel-action:hover {
    background: #3a3c3c;
    transform: translateY(-1px);
}

.ef-wa-crm-main-panel-action.active {
    background: #3a3c3c;
    border-radius: 5px;
}

.ef-wa-crm-action-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.ef-wa-crm-main-panel-content {
    flex: 1;
    overflow-y: auto;
    background: var(--background-secondary);
    height: 0; /* Force flex item to respect parent height */
}